All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----bank.storage.JdbcSession
protected String dbLocationdriverKind
protected String driverKindconnection
protected Connection connectionstatement
protected Statement statementpreparedStatement
protected PreparedStatement preparedStatementresultSet
protected ResultSet resultSetisAutoCommit
protected boolean isAutoCommitisVerbose
protected boolean isVerbose
public JdbcSession()
public JdbcSession(String dbUrl)
public JdbcSession(String driverKind, String dbLocation)
public void beAutoCommit(boolean trueOrNot)
public void beVerbose(boolean trueOrNot)
public void commit() throws SQLExceptionend
public void end()
public ResultSet executeQuery() throws SQLExceptionexecuteQuery
public ResultSet executeQuery(String query) throws SQLExceptionexecuteUpdate
public int executeUpdate() throws SQLExceptionexecuteUpdate
public int executeUpdate(String query) throws SQLExceptionfinalize
public void finalize() throws Throwable
public Connection getConnection()getDbLocation
public String getDbLocation()
public String getDriverKind()
public Statement getStatement()reportError
protected void reportError(SQLException e)
public void rollback() throws SQLExceptionsetDbLocation
public void setDbLocation(String dbLocation)
public void setDriverKind(String driverKind)
public void start(String username, String passwd) throws SQLException
All Packages Class Hierarchy This Package Previous Next Index