|
Protomatter Software v1.1.8 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.protomatter.jdbc.pool.JdbcConnectionPoolConnection
A java.sql.Connection that's part of a pool of conections. When this connection is closed, it is checked back into the pool, and it's options like transaction isolation level, auto-commit, type map, etc are all reset to defaults.
Connection,
JdbcConnectionPoolDriver,
JdbcConnectionPool| Field Summary | |
protected java.sql.Connection |
connection
The actual connection to the database. |
protected JdbcConnectionPool |
pool
The pool that this connection is associated with. |
| Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Method Summary | |
void |
afterObjectPoolObjectCheckin()
Used by the connection pool. |
void |
beforeObjectPoolObjectCheckout()
Used by the connection pool. |
void |
clearWarnings()
See java.sql.Connection. |
void |
close()
Close the connection. |
void |
commit()
See java.sql.Connection. |
java.sql.Statement |
createStatement()
See java.sql.Connection. |
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
See java.sql.Connection. |
void |
deleteObjectPoolObject()
Used by the connection pool. |
boolean |
getAutoCommit()
See java.sql.Connection. |
java.lang.String |
getCatalog()
See java.sql.Connection. |
java.sql.Connection |
getConnection()
Get the connection that this object wraps. |
JdbcConnectionPool |
getConnectionPool()
Get the pool that this connection is associated with. |
java.sql.DatabaseMetaData |
getMetaData()
See java.sql.Connection. |
java.lang.Object |
getSyslogChannel()
Returns the channel information from the pool this connection is associated with. |
int |
getTransactionIsolation()
See java.sql.Connection. |
java.util.Map |
getTypeMap()
See java.sql.Connection. |
java.sql.SQLWarning |
getWarnings()
See java.sql.Connection. |
void |
invalidate()
Invalidates this connection manually. |
boolean |
isClosed()
See java.sql.Connection. |
boolean |
isObjectPoolObjectValid()
Used by the connection pool. |
boolean |
isReadOnly()
See java.sql.Connection. |
java.lang.String |
nativeSQL(java.lang.String sql)
See java.sql.Connection. |
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
See java.sql.Connection. |
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
See java.sql.Connection. |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
See java.sql.Connection. |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
See java.sql.Connection. |
void |
refresh()
Performs a non-verbose refresh. |
void |
refresh(boolean verbose)
Will check that this connection is working and refresh it if not. |
void |
rollback()
See java.sql.Connection. |
void |
setAutoCommit(boolean autoCommit)
See java.sql.Connection. |
void |
setCatalog(java.lang.String catalog)
See java.sql.Connection. |
void |
setReadOnly(boolean readOnly)
See java.sql.Connection. |
void |
setTransactionIsolation(int level)
See java.sql.Connection. |
void |
setTypeMap(java.util.Map typeMap)
See java.sql.Connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected JdbcConnectionPool pool
protected java.sql.Connection connection
| Method Detail |
public JdbcConnectionPool getConnectionPool()
public java.sql.Connection getConnection()
public java.lang.Object getSyslogChannel()
getSyslogChannel in interface SyslogChannelAwareSyslogChannelAwarepublic void deleteObjectPoolObject()
deleteObjectPoolObject in interface ObjectPoolObjectObjectPoolObject
public void refresh(boolean verbose)
throws java.sql.SQLException
java.sql.SQLException - If the connection needs refreshing and there is
a problem re-opening the connection.
public void refresh()
throws java.sql.SQLException
refresh(boolean)public boolean isObjectPoolObjectValid()
isObjectPoolObjectValid in interface ObjectPoolObjectObjectPoolObjectpublic void invalidate()
public void beforeObjectPoolObjectCheckout()
beforeObjectPoolObjectCheckout in interface ObjectPoolObjectObjectPoolObjectpublic void afterObjectPoolObjectCheckin()
afterObjectPoolObjectCheckin in interface ObjectPoolObjectObjectPoolObject
public java.sql.Statement createStatement()
throws java.sql.SQLException
createStatement in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
prepareStatement in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
prepareCall in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.lang.String nativeSQL(java.lang.String sql)
throws java.sql.SQLException
nativeSQL in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
setAutoCommit in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public boolean getAutoCommit()
throws java.sql.SQLException
getAutoCommit in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public void commit()
throws java.sql.SQLException
commit in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public void rollback()
throws java.sql.SQLException
rollback in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public void close()
throws java.sql.SQLException
This method will call commit() on the connection if auto-commit is turned on, and will call rollback() otherwise.
close in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public boolean isClosed()
throws java.sql.SQLException
isClosed in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
getMetaData in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public void setReadOnly(boolean readOnly)
throws java.sql.SQLException
setReadOnly in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public boolean isReadOnly()
throws java.sql.SQLException
isReadOnly in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public void setCatalog(java.lang.String catalog)
throws java.sql.SQLException
setCatalog in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.lang.String getCatalog()
throws java.sql.SQLException
getCatalog in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public void setTransactionIsolation(int level)
throws java.sql.SQLException
setTransactionIsolation in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public int getTransactionIsolation()
throws java.sql.SQLException
getTransactionIsolation in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
createStatement in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.util.Map getTypeMap()
throws java.sql.SQLException
getTypeMap in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.sql.CallableStatement prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
prepareCall in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
prepareStatement in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
public void setTypeMap(java.util.Map typeMap)
throws java.sql.SQLException
setTypeMap in interface java.sql.Connectionjava.sql.SQLException - Because the underlying connection can throw one.Connection
|
Protomatter Software v1.1.8 Copyright 1998-2002 Nate Sammons |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Protomatter Software v1.1.8 | http://protomatter.sourceforge.net/1.1.8 |