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