Methods Summary |
---|
public void | clearWarnings()Delegates to the physical connection.
validate();
physical.clearWarnings();
|
public void | close()Notifies the physical connection that this logical connection is
no longer open so that the physical connection may return
to the connection pool. After this method is called, any
further attempts by an application to use this logical connection
will result in an exception.
Iterator it = statements.iterator();
validate();
while( it.hasNext() ) {
PreparedStatement stmt = (PreparedStatement)it.next();
try { stmt.close(); }
catch( SQLException e ) { }
}
statements.clear();
physical.connectionClosed();
physical = null;
|
public void | commit()Delegates to the physical connection.
validate();
physical.commit();
|
public java.sql.Statement | createStatement()Delegates to the physical connection.
validate();
return physical.createStatement();
|
public java.sql.Statement | createStatement(int rst, int rsc)Delegates to the physical connection.
validate();
return physical.createStatement(rst, rsc);
|
public boolean | getAutoCommit()Delegates to the physical connection.
validate();
return physical.getAutoCommit();
|
public java.lang.String | getCatalog()Delegates to the physical connection.
validate();
return physical.getCatalog();
|
public java.sql.DatabaseMetaData | getMetaData()Delegates to the physical connection.
validate();
return physical.getMetaData();
|
public int | getTransactionIsolation()Delegates to the physical connection.
validate();
return physical.getTransactionIsolation();
|
public java.util.Map | getTypeMap()Delegates to the physical connection.
validate();
return physical.getTypeMap();
|
public java.sql.SQLWarning | getWarnings()Delegates to the physical connection.
validate();
return physical.getWarnings();
|
public boolean | isClosed()This method checks to see if it has a valid physical
connection.
return (physical == null);
|
public boolean | isReadOnly()Delegates to the physical connection.
validate();
return physical.isReadOnly();
|
public java.lang.String | nativeSQL(java.lang.String sql)Delegates to the physical connection.
validate();
return physical.nativeSQL(sql);
|
public java.sql.CallableStatement | prepareCall(java.lang.String sql)Delegates to the physical connection.
validate();
return physical.prepareCall(sql);
|
public java.sql.CallableStatement | prepareCall(java.lang.String sql, int rst, int rsc)Delegates to the physical connection.
validate();
return physical.prepareCall(sql, rst, rsc);
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql)Delegates to the physical connection.
PreparedStatement stmt;
validate();
stmt = physical.prepareStatement(sql);
statements.add(stmt);
return stmt;
|
public java.sql.PreparedStatement | prepareStatement(java.lang.String sql, int rst, int rsc)Delegates to the physical connection.
PreparedStatement stmt;
validate();
stmt = physical.prepareStatement(sql, rst, rsc);
statements.add(stmt);
return stmt;
|
public void | rollback()Delegates to the physical connection.
validate();
physical.rollback();
|
public void | setAutoCommit(boolean ac)Delegates to the physical connection.
validate();
physical.setAutoCommit(ac);
|
public void | setCatalog(java.lang.String cat)Delegates to the physical connection.
validate();
physical.setCatalog(cat);
|
public void | setReadOnly(boolean ro)Delegates to the physical connection.
validate();
physical.setReadOnly(ro);
|
public void | setTransactionIsolation(int lvl)Delegates to the physical connection.
validate();
physical.setTransactionIsolation(lvl);
|
public void | setTypeMap(java.util.Map map)Delegates to the physical connection.
validate();
physical.setTypeMap(map);
|
public java.lang.String | toString()
if( physical != null ) {
return super.toString() + "(Physical: " + physical.toString() +")";
}
else {
return super.toString();
}
|
private void | validate()
if( isClosed() ) {
throw new SQLException("Illegal attempt to reuse connection.");
}
|