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.Connection
handleConn
protected java.util.List<javax.sql.ConnectionEventListener>
listeners
protected SQLiteConnection
physicalConn
-
Constructor Summary
Constructors Modifier Constructor Description protected
SQLitePooledConnection(SQLiteConnection physicalConn)
Constructor.
-
Method Summary
Modifier and Type Method Description void
addConnectionEventListener(javax.sql.ConnectionEventListener listener)
void
close()
java.sql.Connection
getConnection()
java.util.List<javax.sql.ConnectionEventListener>
getListeners()
SQLiteConnection
getPhysicalConn()
void
removeConnectionEventListener(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()
-
-