All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sqlg3.runtime.SessionContext Maven / Gradle / Ivy

Go to download

SQLG is a preprocessor and a library that uses code generation to simplify writing JDBC code

There is a newer version: 3.1
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy