public abstract class ConnectionWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
con
The wrapped connection
|
| Constructor and Description |
|---|
ConnectionWrapper(Connection c) |
protected Connection con
public ConnectionWrapper(Connection c)
protected void setLastSQL(String sql)
public Statement createStatement() throws SQLException
SQLExceptionConnection.createStatement()public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
SQLExceptionConnection.createStatement(int, int)public Statement createStatement(int type, int concurrency, int holdability) throws SQLException
SQLExceptionConnection.createStatement(int, int, int)public PreparedStatement prepareStatement(String sql) throws SQLException
SQLExceptionConnection.prepareStatement(String)public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionConnection.prepareStatement(String, int)public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
SQLExceptionConnection.prepareStatement(String, int[])public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
SQLExceptionConnection.prepareStatement(String, String[])public PreparedStatement prepareStatement(String sql, int type, int concurrency, int holdability) throws SQLException
SQLExceptionConnection.prepareStatement(String, int, int, int)public CallableStatement prepareCall(String sql) throws SQLException
SQLExceptionConnection.prepareCall(String)public String nativeSQL(String query) throws SQLException
SQLExceptionConnection.nativeSQL(String)public void setAutoCommit(boolean enableAutoCommit)
throws SQLException
SQLExceptionConnection.setAutoCommit(boolean)public boolean getAutoCommit()
throws SQLException
SQLExceptionConnection.getAutoCommit()public void commit()
throws SQLException
SQLExceptionConnection.commit()public void rollback()
throws SQLException
SQLExceptionConnection.rollback()public void close()
throws SQLException
SQLExceptionConnection.close()public boolean isClosed()
throws SQLException
SQLExceptionConnection.isClosed()public DatabaseMetaData getMetaData() throws SQLException
SQLExceptionConnection.getMetaData()public void setReadOnly(boolean readOnly)
throws SQLException
SQLExceptionConnection.setReadOnly(boolean)public boolean isReadOnly()
throws SQLException
SQLExceptionConnection.isReadOnly()public void setCatalog(String catalog) throws SQLException
SQLExceptionConnection.setCatalog(String)public String getCatalog() throws SQLException
SQLExceptionConnection.getCatalog()public void setTransactionIsolation(int level)
throws SQLException
SQLExceptionConnection.setTransactionIsolation(int)public int getTransactionIsolation()
throws SQLException
SQLExceptionConnection.getTransactionIsolation()public SQLWarning getWarnings() throws SQLException
SQLExceptionConnection.getWarnings()public void clearWarnings()
throws SQLException
SQLExceptionConnection.clearWarnings()public CallableStatement prepareCall(String sql, int i, int y) throws SQLException
SQLExceptionConnection.prepareCall(String, int, int)public void setTypeMap(Map<String,Class<?>> mp) throws SQLException
SQLExceptionConnection.setTypeMap(Map)public Map<String,Class<?>> getTypeMap() throws SQLException
SQLExceptionConnection.getTypeMap()public PreparedStatement prepareStatement(String sql, int i, int y) throws SQLException
SQLExceptionConnection.prepareStatement(String, int, int)public void setHoldability(int holdability)
throws SQLException
SQLExceptionConnection.setHoldability(int)public int getHoldability()
throws SQLException
SQLExceptionConnection.getHoldability()public Savepoint setSavepoint() throws SQLException
SQLExceptionConnection.setSavepoint()public Savepoint setSavepoint(String name) throws SQLException
SQLExceptionConnection.setSavepoint(String)public void rollback(Savepoint savepoint) throws SQLException
SQLExceptionConnection.rollback(Savepoint)public void releaseSavepoint(Savepoint savepoint) throws SQLException
SQLExceptionConnection.releaseSavepoint(Savepoint)public CallableStatement prepareCall(String sql, int type, int concurrency, int holdability) throws SQLException
SQLExceptionConnection.prepareCall(String, int, int, int)public boolean isValid(int i)
throws SQLException
SQLExceptionpublic String getClientInfo(String name) throws SQLException
SQLExceptionpublic Properties getClientInfo() throws SQLException
SQLExceptionpublic Array createArrayOf(String typeName, Object[] elements) throws SQLException
SQLExceptionpublic Struct createStruct(String typeName, Object[] attributes) throws SQLException
SQLExceptionpublic <T> T unwrap(Class<T> iface)
public boolean isWrapperFor(Class<?> iface)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}