public abstract class ConnectionProxy extends Object implements IHikariConnectionProxy
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Modifier and Type | Method and Description |
---|---|
SQLException |
checkException(SQLException sqle)
Check if the provided SQLException contains a SQLSTATE that indicates
a disconnection from the server.
|
void |
close() |
void |
commit() |
Statement |
createStatement() |
Statement |
createStatement(int resultSetType,
int concurrency) |
Statement |
createStatement(int resultSetType,
int concurrency,
int holdability) |
PoolBagEntry |
getPoolBagEntry()
Get the ConcurrentBag entry that is associated in the pool with the underlying connection.
|
boolean |
isClosed() |
boolean |
isWrapperFor(Class<?> iface) |
void |
markCommitStateDirty()
Sets the commit state of the connection to dirty.
|
CallableStatement |
prepareCall(String sql) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int concurrency) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int concurrency,
int holdability) |
PreparedStatement |
prepareStatement(String sql) |
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys) |
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int concurrency) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int concurrency,
int holdability) |
PreparedStatement |
prepareStatement(String sql,
String[] columnNames) |
void |
rollback() |
void |
rollback(Savepoint savepoint) |
void |
setAutoCommit(boolean autoCommit) |
void |
setCatalog(String catalog) |
void |
setReadOnly(boolean readOnly) |
void |
setTransactionIsolation(int level) |
String |
toString() |
void |
untrackStatement(Statement statement)
Called by Statement and its subclasses when they are closed to remove them
from the tracking list.
|
<T> T |
unwrap(Class<T> iface) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
abort, clearWarnings, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, isValid, nativeSQL, releaseSavepoint, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setSavepoint, setSavepoint, setSchema, setTypeMap
public final PoolBagEntry getPoolBagEntry()
getPoolBagEntry
in interface IHikariConnectionProxy
public final SQLException checkException(SQLException sqle)
checkException
in interface IHikariConnectionProxy
sqle
- the SQLException to checkpublic final void untrackStatement(Statement statement)
untrackStatement
in interface IHikariConnectionProxy
statement
- the Statement to remove from trackingpublic final void markCommitStateDirty()
markCommitStateDirty
in interface IHikariConnectionProxy
public final void close() throws SQLException
close
in interface AutoCloseable
close
in interface Connection
SQLException
public boolean isClosed() throws SQLException
isClosed
in interface Connection
SQLException
public Statement createStatement() throws SQLException
createStatement
in interface Connection
SQLException
public Statement createStatement(int resultSetType, int concurrency) throws SQLException
createStatement
in interface Connection
SQLException
public Statement createStatement(int resultSetType, int concurrency, int holdability) throws SQLException
createStatement
in interface Connection
SQLException
public CallableStatement prepareCall(String sql) throws SQLException
prepareCall
in interface Connection
SQLException
public CallableStatement prepareCall(String sql, int resultSetType, int concurrency) throws SQLException
prepareCall
in interface Connection
SQLException
public CallableStatement prepareCall(String sql, int resultSetType, int concurrency, int holdability) throws SQLException
prepareCall
in interface Connection
SQLException
public PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement
in interface Connection
SQLException
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement
in interface Connection
SQLException
public PreparedStatement prepareStatement(String sql, int resultSetType, int concurrency) throws SQLException
prepareStatement
in interface Connection
SQLException
public PreparedStatement prepareStatement(String sql, int resultSetType, int concurrency, int holdability) throws SQLException
prepareStatement
in interface Connection
SQLException
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement
in interface Connection
SQLException
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement
in interface Connection
SQLException
public void commit() throws SQLException
commit
in interface Connection
SQLException
public void rollback() throws SQLException
rollback
in interface Connection
SQLException
public void rollback(Savepoint savepoint) throws SQLException
rollback
in interface Connection
SQLException
public void setAutoCommit(boolean autoCommit) throws SQLException
setAutoCommit
in interface Connection
SQLException
public void setReadOnly(boolean readOnly) throws SQLException
setReadOnly
in interface Connection
SQLException
public void setTransactionIsolation(int level) throws SQLException
setTransactionIsolation
in interface Connection
SQLException
public void setCatalog(String catalog) throws SQLException
setCatalog
in interface Connection
SQLException
public final boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public final <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
Copyright © 2015 Zaxxer.com. All Rights Reserved.