com.imaginary.lwp
Class PooledConnection
java.lang.Object
|
+--com.imaginary.lwp.PooledConnection
- public class PooledConnection
- extends java.lang.Object
- implements java.sql.Connection, java.lang.Runnable
Represents a connection from a pool of shared connections.
Last modified $Date: 1999/10/06 21:08:57 $
- Version:
- $Revision: 1.4 $
- Author:
- George Reese (borg@imaginary.com)
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PooledConnection
public PooledConnection()
throws java.sql.SQLException
- Constructs a new pooled connection.
- Throws:
- java.sql.SQLException - an error occurred connecting to the
database
clearWarnings
public void clearWarnings()
throws java.sql.SQLException
- Specified by:
- clearWarnings in interface java.sql.Connection
close
public void close()
throws java.sql.SQLException
- Specified by:
- close in interface java.sql.Connection
commit
public void commit()
throws java.sql.SQLException
- Specified by:
- commit in interface java.sql.Connection
createStatement
public java.sql.Statement createStatement()
throws java.sql.SQLException
- Specified by:
- createStatement in interface java.sql.Connection
getAutoCommit
public boolean getAutoCommit()
throws java.sql.SQLException
- Specified by:
- getAutoCommit in interface java.sql.Connection
getCatalog
public java.lang.String getCatalog()
throws java.sql.SQLException
- Specified by:
- getCatalog in interface java.sql.Connection
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
getMetaData
public java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
- Specified by:
- getMetaData in interface java.sql.Connection
getTransactionIsolation
public int getTransactionIsolation()
throws java.sql.SQLException
- Specified by:
- getTransactionIsolation in interface java.sql.Connection
getWarnings
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
- Specified by:
- getWarnings in interface java.sql.Connection
isClosed
public boolean isClosed()
- Specified by:
- isClosed in interface java.sql.Connection
isReadOnly
public boolean isReadOnly()
throws java.sql.SQLException
- Specified by:
- isReadOnly in interface java.sql.Connection
nativeSQL
public java.lang.String nativeSQL(java.lang.String sql)
throws java.sql.SQLException
- Specified by:
- nativeSQL in interface java.sql.Connection
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
- Specified by:
- prepareCall in interface java.sql.Connection
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
- Specified by:
- prepareStatement in interface java.sql.Connection
rollback
public void rollback()
throws java.sql.SQLException
- Specified by:
- rollback in interface java.sql.Connection
run
public void run()
- Specified by:
- run in interface java.lang.Runnable
setAutoCommit
public void setAutoCommit(boolean ac)
throws java.sql.SQLException
- Specified by:
- setAutoCommit in interface java.sql.Connection
setCatalog
public void setCatalog(java.lang.String cat)
throws java.sql.SQLException
- Specified by:
- setCatalog in interface java.sql.Connection
setReadOnly
public void setReadOnly(boolean ro)
throws java.sql.SQLException
- Specified by:
- setReadOnly in interface java.sql.Connection
setTransactionIsolation
public void setTransactionIsolation(int level)
throws java.sql.SQLException
- Specified by:
- setTransactionIsolation in interface java.sql.Connection