Package org.sqlite.javax
Class SQLitePooledConnection
- java.lang.Object
-
- org.sqlite.jdbc4.JDBC4PooledConnection
-
- org.sqlite.javax.SQLitePooledConnection
-
- All Implemented Interfaces:
PooledConnection
public class SQLitePooledConnection extends JDBC4PooledConnection
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectionhandleConnprotected List<ConnectionEventListener>listenersprotected SQLiteConnectionphysicalConn
-
Constructor Summary
Constructors Modifier Constructor Description protectedSQLitePooledConnection(SQLiteConnection physicalConn)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionEventListener(ConnectionEventListener listener)voidclose()ConnectiongetConnection()List<ConnectionEventListener>getListeners()SQLiteConnectiongetPhysicalConn()voidremoveConnectionEventListener(ConnectionEventListener listener)-
Methods inherited from class org.sqlite.jdbc4.JDBC4PooledConnection
addStatementEventListener, removeStatementEventListener
-
-
-
-
Field Detail
-
physicalConn
protected SQLiteConnection physicalConn
-
handleConn
protected volatile Connection handleConn
-
listeners
protected List<ConnectionEventListener> listeners
-
-
Constructor Detail
-
SQLitePooledConnection
protected SQLitePooledConnection(SQLiteConnection physicalConn)
Constructor.- Parameters:
physicalConn- The physical Connection.
-
-
Method Detail
-
getPhysicalConn
public SQLiteConnection getPhysicalConn()
-
close
public void close() throws SQLException- Throws:
SQLException- See Also:
PooledConnection.close()
-
getConnection
public Connection getConnection() throws SQLException
- Throws:
SQLException- See Also:
PooledConnection.getConnection()
-
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
-
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
-
getListeners
public List<ConnectionEventListener> getListeners()
-
-