org.jivesoftware.database
Class ConnectionWrapper
java.lang.Object
org.jivesoftware.database.AbstractConnection
org.jivesoftware.database.ConnectionWrapper
- All Implemented Interfaces:
- Connection
public class ConnectionWrapper
- extends AbstractConnection
An implementation of the Connection interface that wraps an underlying
Connection object. It releases the connection back to a connection pool
when Connection.close() is called.
- Author:
- Jive Software
Methods inherited from class org.jivesoftware.database.AbstractConnection |
clearWarnings, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap |
pool
public ConnectionPool pool
checkedout
public boolean checkedout
createTime
public long createTime
lockTime
public long lockTime
checkinTime
public long checkinTime
exception
public Exception exception
hasLoggedException
public boolean hasLoggedException
ConnectionWrapper
public ConnectionWrapper(Connection connection,
ConnectionPool pool)
setConnection
public void setConnection(Connection connection)
close
public void close()
throws SQLException
- Instead of closing the underlying connection, we simply release
it back into the pool.
- Specified by:
close
in interface Connection
- Overrides:
close
in class AbstractConnection
- Throws:
SQLException
toString
public String toString()
- Overrides:
toString
in class Object
isCheckedOut
public boolean isCheckedOut()
Copyright © 1999-2004 Jive Software.