Methods Summary |
---|
public void | clearWarnings()
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.clearWarnings();
|
public void | close()Inform the DataSourceWrapper that the ConnectionWrapper
is closed.
isClosed = true;
dsw.returnConnection(realConn);
|
public void | commit()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.commit();
|
public java.sql.Statement | createStatement()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.createStatement();
|
public java.sql.Statement | createStatement(int resultSetType, int resultSetConcurrency)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.createStatement(resultSetType, resultSetConcurrency);
|
public java.sql.Statement | createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.createStatement(resultSetType, resultSetConcurrency,
resultSetHoldability);
|
public boolean | getAutoCommit()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.getAutoCommit();
|
public java.lang.String | getCatalog()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.getCatalog();
|
public int | getHoldability()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.getHoldability();
|
public java.sql.DatabaseMetaData | getMetaData()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.getMetaData();
|
public int | getTransactionIsolation()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.getTransactionIsolation();
|
public java.util.Map | getTypeMap()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.getTypeMap();
|
public java.sql.SQLWarning | getWarnings()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.getWarnings();
|
public boolean | isClosed()Returns true if the ConnectionWrapper is closed, false
otherwise.
return isClosed;
|
public boolean | isReadOnly()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.isReadOnly();
|
public java.lang.String | nativeSQL(java.lang.String sql)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.nativeSQL(sql);
|
public java.sql.CallableStatement | prepareCall(java.lang.String sql)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.prepareCall(sql);
|
public java.sql.CallableStatement | prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.prepareCall(sql, resultSetType, resultSetConcurrency);
|
public java.sql.CallableStatement | prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.prepareCall(sql, resultSetType, resultSetConcurrency,
resultSetHoldability);
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.prepareStatement(sql);
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql, int autoGeneratedKeys)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.prepareStatement(sql, autoGeneratedKeys);
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql, int[] columnIndexes)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.prepareStatement(sql, columnIndexes);
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql, java.lang.String[] columnNames)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.prepareStatement(sql, columnNames);
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.prepareStatement(sql, resultSetType,
resultSetConcurrency);
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.prepareStatement(sql, resultSetType,
resultSetConcurrency, resultSetHoldability);
|
public void | releaseSavepoint(java.sql.Savepoint savepoint)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.releaseSavepoint(savepoint);
|
public void | rollback()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.rollback();
|
public void | rollback(java.sql.Savepoint savepoint)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.rollback(savepoint);
|
public void | setAutoCommit(boolean autoCommit)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.setAutoCommit(autoCommit);
|
public void | setCatalog(java.lang.String catalog)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.setCatalog(catalog);
|
public void | setHoldability(int holdability)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.setHoldability(holdability);
|
public void | setReadOnly(boolean readOnly)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.setReadOnly(readOnly);
|
public java.sql.Savepoint | setSavepoint()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.setSavepoint();
|
public java.sql.Savepoint | setSavepoint(java.lang.String name)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
return realConn.setSavepoint(name);
|
public void | setTransactionIsolation(int level)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.setTransactionIsolation(level);
|
public void | setTypeMap(java.util.Map map)
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.setTypeMap(map);
|