sqlg3.runtime.SessionContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlg3-runtime Show documentation
Show all versions of sqlg3-runtime Show documentation
SQLG is a preprocessor and a library that uses code generation to simplify writing JDBC code
package sqlg3.runtime;
import java.sql.SQLException;
public final class SessionContext {
final ConnectionManager cman;
private final Object userObject;
final PreCallCheck beforeCall;
public SessionContext(ConnectionManager cman, Object userObject, PreCallCheck beforeCall) {
this.cman = cman;
this.userObject = userObject;
this.beforeCall = beforeCall;
}
public void close() throws SQLException {
cman.close();
}
public Object getUserObject() {
return userObject;
}
}