| java.lang.Object craftsman.spy.SpyConnection
SpyConnection | public class SpyConnection implements Connection(Code) | | This classe represents the JDBC connection to the database.
author: Sébastien LECACHEUR |
Field Summary | |
protected Log | log Internal used logger. |
Method Summary | |
public void | clearWarnings() | public void | close() | 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() | protected int | getId() Returns the used JDBC connection identifier. | public DatabaseMetaData | getMetaData() | public int | getTransactionIsolation() | public Map | 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 autoGeneratedKeys) | 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[] columnIndexes) | public PreparedStatement | prepareStatement(String sql, String[] columnNames) | public void | releaseSavepoint(Savepoint savepoint) | public void | rollback() | public void | rollback(Savepoint savepoint) | 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(Map map) |
log | protected Log log(Code) | | Internal used logger.
|
SpyConnection | protected SpyConnection(Connection con, String conIdSql)(Code) | | Constructs a new Spy JDBC connection.
Parameters: con - Connection The real JDBC connection. Parameters: conIdSql - String The SQL string to executein order to retrieve the real JDBC connection ID. |
getId | protected int getId()(Code) | | Returns the used JDBC connection identifier.
int The JDBC connection SPID or hash codeotherwise 0 . |
|
|