| java.lang.Object uk.org.primrose.pool.core.PoolConnection
Method Summary | |
public void | clearWarnings() | public void | close() | protected void | closePhysical() | public void | commit() | public Statement | createStatement() | public Statement | createStatement(int resultSetType, int resultSetConcurrency) | public Statement | createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public boolean | getAutoCommit() | public String | getCatalog() | public int | getHoldability() | public DatabaseMetaData | getMetaData() | public Connection | getRealConnection() Get the real underlying connection (as created by your driver).
Only ever use this if you are using a non-JDBC standard driver method.
And be very careful when using it. | public int | getTransactionIsolation() | public java.util.Map<String, Class<?>> | getTypeMap() | public SQLWarning | getWarnings() | public boolean | isClosed() | public boolean | isReadOnly() | public String | nativeSQL(String sql) | public CallableStatement | prepareCall(String sql) | public CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency) | public CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public PreparedStatement | prepareStatement(String sql) | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public PreparedStatement | prepareStatement(String sql, int autoGeneratedKeys) | public PreparedStatement | prepareStatement(String sql, int columnIndexes) | public PreparedStatement | prepareStatement(String sql, String columnNames) | public void | releaseSavepoint(Savepoint savepoint) | public void | rollback() | public void | rollback(Savepoint savepoint) | protected boolean | runCheckSQL(String checkSQL) | public void | setAutoCommit(boolean autoCommit) | public void | setCatalog(String catalog) | public void | setHoldability(int holdability) | public void | setReadOnly(boolean readOnly) | public Savepoint | setSavepoint() | public Savepoint | setSavepoint(String name) | public void | setTransactionIsolation(int level) | public void | setTypeMap(java.util.Map<String, Class<?>> map) |
close | public void close()(Code) | | |
createStatement | public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code) | | |
getRealConnection | public Connection getRealConnection()(Code) | | Get the real underlying connection (as created by your driver).
Only ever use this if you are using a non-JDBC standard driver method.
And be very careful when using it. Make sure you close the pool connection - not the real one
Eg :
// Get a pooled connection from primrose
Connection poolconn = getConnection(Constants.DB_POOL_NAME);
// Get a real connection from it
// Do NOT close the real connection - close the pooled one (c)
Connection rc = ((uk.org.primrose.pool.core.PoolConnection)poolconn).getRealConnection();
// Do some stuff
// Close the pooled connection
poolconn.close();
|
isClosed | public boolean isClosed()(Code) | | |
runCheckSQL | protected boolean runCheckSQL(String checkSQL)(Code) | | Execute some SQL to check if the connection is OK (if user configured pool to do this)
Parameters: checkSQL - true for OK, false for broken |
setTransactionIsolation | public void setTransactionIsolation(int level) throws SQLException(Code) | | |
|
|