|
Openfire 3.4.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.database.AbstractConnection org.jivesoftware.database.ConnectionWrapper
public class ConnectionWrapper
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.
Field Summary | |
---|---|
boolean |
checkedout
|
long |
checkinTime
|
long |
createTime
|
Exception |
exception
|
boolean |
hasLoggedException
|
long |
lockTime
|
ConnectionPool |
pool
|
Fields inherited from class org.jivesoftware.database.AbstractConnection |
---|
connection |
Fields inherited from interface java.sql.Connection |
---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
---|---|
ConnectionWrapper(Connection connection,
ConnectionPool pool)
|
Method Summary | |
---|---|
void |
close()
Instead of closing the underlying connection, we simply release it back into the pool. |
boolean |
isCheckedOut()
|
void |
setConnection(Connection connection)
|
String |
toString()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ConnectionPool pool
public boolean checkedout
public long createTime
public long lockTime
public long checkinTime
public Exception exception
public boolean hasLoggedException
Constructor Detail |
---|
public ConnectionWrapper(Connection connection, ConnectionPool pool)
Method Detail |
---|
public void setConnection(Connection connection)
public void close() throws SQLException
close
in interface Connection
close
in class org.jivesoftware.database.AbstractConnection
SQLException
public String toString()
toString
in class Object
public boolean isCheckedOut()
|
Openfire 3.4.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |