io.odysz.semantic.DA.drvmnger.StatementOnCall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semantic.DA Show documentation
Show all versions of semantic.DA Show documentation
JDBC Data Access with Semantics Support
package io.odysz.semantic.DA.drvmnger;
import java.sql.Statement;
import java.util.concurrent.locks.ReentrantLock;
/**
* @since 1.4.45
*/
public class StatementOnCall {
/**
* @since 2.0.0
*/
@FunctionalInterface
public interface OnCommit {
void ok(int[] res);
}
Statement statment;
OnCommit onCommit;
// ReentrantLock lock;
Object lock;
public boolean finished;
public StatementOnCall(Statement stmt, OnCommit on) {
this.statment = stmt;
this.onCommit = on;
// lock = new ReentrantLock();
lock = new Object();
finished = false;
}
// public StatementOnCall lock() {
// lock.lock();
// return this;
// }
//
// public void unlock() {
// lock.unlock();
// }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy