| java.lang.Object org.mmbase.module.database.ConnectionWrapper
All known Subclasses: org.mmbase.module.database.MultiConnectionImplementation,
ConnectionWrapper | abstract public class ConnectionWrapper (Code) | | Wraps a java.sql.Connection object. Extending this makes it possible to intercept calls.
author: Michiel Meeuwissen version: $Id: ConnectionWrapper.java,v 1.3 2007/06/11 12:29:03 michiel Exp $ since: MMBase-1.8 |
Method Summary | |
public void | clearWarnings() | public void | close() | public void | commit() | public Array | createArrayOf(String typeName, Object[] elements) | public Statement | createStatement() | public Statement | createStatement(int resultSetType, int resultSetConcurrency) | public Statement | createStatement(int type, int concurrency, int holdability) | public Struct | createStruct(String typeName, Object[] attributes) | public boolean | getAutoCommit() | public String | getCatalog() | public String | getClientInfo(String name) | public Properties | getClientInfo() | public int | getHoldability() | public DatabaseMetaData | getMetaData() | public int | getTransactionIsolation() | public Map | getTypeMap() | public SQLWarning | getWarnings() | public boolean | isClosed() | public boolean | isReadOnly() | public boolean | isValid(int i) | public boolean | isWrapperFor(Class> iface) | public String | nativeSQL(String query) | public CallableStatement | prepareCall(String sql) | public CallableStatement | prepareCall(String sql, int i, int y) | public CallableStatement | prepareCall(String sql, int type, int concurrency, int holdability) | public PreparedStatement | prepareStatement(String sql) | public PreparedStatement | prepareStatement(String sql, int autoGeneratedKeys) | public PreparedStatement | prepareStatement(String sql, int[] columnIndexes) | public PreparedStatement | prepareStatement(String sql, String[] columnNames) | public PreparedStatement | prepareStatement(String sql, int type, int concurrency, int holdability) | public PreparedStatement | prepareStatement(String sql, int i, int y) | public void | releaseSavepoint(Savepoint savepoint) | public void | rollback() | public void | rollback(Savepoint savepoint) | public void | setAutoCommit(boolean enableAutoCommit) | public void | setCatalog(String catalog) | public void | setHoldability(int holdability) | protected void | setLastSQL(String sql) Called just before every prepare statement. | public void | setReadOnly(boolean readOnly) | public Savepoint | setSavepoint() | public Savepoint | setSavepoint(String name) | public void | setTransactionIsolation(int level) | public void | setTypeMap(Map mp) | public T | unwrap(Class<T> iface) |
isWrapperFor | public boolean isWrapperFor(Class> iface)(Code) | | |
setAutoCommit | public void setAutoCommit(boolean enableAutoCommit) throws SQLException(Code) | | |
setLastSQL | protected void setLastSQL(String sql)(Code) | | Called just before every prepare statement. Can be overridden, because this default implementation is empty.
|
setTransactionIsolation | public void setTransactionIsolation(int level) throws SQLException(Code) | | |
|
|