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 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 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.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 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 void | rollback()Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.rollback();
|
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 | setReadOnly(boolean readOnly)Calls the corresponding method on the wrapped Connection.
if (isClosed) {
throw new SQLException("Pooled connection is closed");
}
realConn.setReadOnly(readOnly);
|
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);
|