public class SQLitePooledConnection extends JDBC4PooledConnection implements PooledConnection
Modifier and Type | Field and Description |
---|---|
protected Connection |
handleConn |
protected List<ConnectionEventListener> |
listeners |
protected Connection |
physicalConn |
Modifier | Constructor and Description |
---|---|
protected |
SQLitePooledConnection(Connection physicalConn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
close() |
Connection |
getConnection() |
void |
removeConnectionEventListener(ConnectionEventListener listener) |
addStatementEventListener, removeStatementEventListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatementEventListener, removeStatementEventListener
protected Connection physicalConn
protected volatile Connection handleConn
protected List<ConnectionEventListener> listeners
protected SQLitePooledConnection(Connection physicalConn)
physicalConn
- The physical Connection.public void close() throws SQLException
close
in interface PooledConnection
SQLException
PooledConnection.close()
public Connection getConnection() throws SQLException
getConnection
in interface PooledConnection
SQLException
PooledConnection.getConnection()
public void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener
in interface PooledConnection
PooledConnection.addConnectionEventListener(javax.sql.ConnectionEventListener)
public void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener
in interface PooledConnection
PooledConnection.removeConnectionEventListener(javax.sql.ConnectionEventListener)
Copyright © 2017. All rights reserved.