Package org.sqlite.javax
Class SQLitePooledConnectionHandle
java.lang.Object
org.sqlite.SQLiteConnection
org.sqlite.javax.SQLitePooledConnectionHandle
- All Implemented Interfaces:
AutoCloseable
,Connection
,Wrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicBoolean
private final SQLitePooledConnection
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
close()
void
commit()
createArrayOf
(String typeName, Object[] elements) createStatement
(int resultSetType, int resultSetConcurrency) createStatement
(int resultSetType, int resultSetConcurrency, int resultSetHoldability) createStruct
(String typeName, Object[] attributes) boolean
int
getClientInfo
(String name) int
int
int
boolean
isClosed()
boolean
boolean
isValid
(int timeout) boolean
isWrapperFor
(Class<?> iface) prepareCall
(String sql) prepareCall
(String sql, int resultSetType, int resultSetConcurrency) prepareCall
(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement
(String sql) prepareStatement
(String sql, int autoGeneratedKeys) prepareStatement
(String sql, int[] columnIndexes) prepareStatement
(String sql, int resultSetType, int resultSetConcurrency) prepareStatement
(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement
(String sql, String[] columnNames) void
releaseSavepoint
(Savepoint savepoint) void
rollback()
void
void
setAutoCommit
(boolean autoCommit) void
setBusyTimeout
(int timeoutMillis) Sets the timeout value for the connection.void
setCatalog
(String catalog) void
setClientInfo
(String name, String value) void
setClientInfo
(Properties properties) void
setHoldability
(int holdability) void
setNetworkTimeout
(Executor executor, int milliseconds) void
setReadOnly
(boolean readOnly) setSavepoint
(String name) void
void
setTransactionIsolation
(int level) void
setTypeMap
(Map<String, Class<?>> map) <T> T
Methods inherited from class org.sqlite.SQLiteConnection
addCommitListener, addUpdateListener, checkCursor, checkOpen, deserialize, extractPragmasFromFilename, getConnectionConfig, getCurrentTransactionMode, getLimit, getSQLiteDatabaseMetaData, getUrl, isFirstStatementExecuted, libversion, removeCommitListener, removeUpdateListener, serialize, setCurrentTransactionMode, setFirstStatementExecuted, setLimit, setTransactionMode, transactionPrefix
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
Field Details
-
parent
-
isClosed
-
-
Constructor Details
-
SQLitePooledConnectionHandle
-
-
Method Details
-
createStatement
- Throws:
SQLException
-
prepareStatement
- Throws:
SQLException
-
prepareCall
- Throws:
SQLException
-
nativeSQL
- Throws:
SQLException
-
setAutoCommit
- Specified by:
setAutoCommit
in interfaceConnection
- Overrides:
setAutoCommit
in classSQLiteConnection
- Throws:
SQLException
- See Also:
-
getAutoCommit
- Specified by:
getAutoCommit
in interfaceConnection
- Overrides:
getAutoCommit
in classSQLiteConnection
- Throws:
SQLException
- See Also:
-
commit
- Specified by:
commit
in interfaceConnection
- Overrides:
commit
in classSQLiteConnection
- Throws:
SQLException
- See Also:
-
rollback
- Specified by:
rollback
in interfaceConnection
- Overrides:
rollback
in classSQLiteConnection
- Throws:
SQLException
- See Also:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceConnection
- Overrides:
close
in classSQLiteConnection
- Throws:
SQLException
- See Also:
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceConnection
- Overrides:
isClosed
in classSQLiteConnection
-
getMetaData
- Specified by:
getMetaData
in interfaceConnection
- Overrides:
getMetaData
in classSQLiteConnection
- Throws:
SQLException
-
setReadOnly
- Throws:
SQLException
-
isReadOnly
- Throws:
SQLException
-
setCatalog
- Throws:
SQLException
-
getCatalog
- Throws:
SQLException
-
setTransactionIsolation
- Specified by:
setTransactionIsolation
in interfaceConnection
- Overrides:
setTransactionIsolation
in classSQLiteConnection
- Throws:
SQLException
- See Also:
-
getTransactionIsolation
public int getTransactionIsolation()- Specified by:
getTransactionIsolation
in interfaceConnection
- Overrides:
getTransactionIsolation
in classSQLiteConnection
- See Also:
-
getWarnings
- Throws:
SQLException
-
clearWarnings
- Throws:
SQLException
-
createStatement
- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Throws:
SQLException
-
getTypeMap
- Throws:
SQLException
-
setTypeMap
- Throws:
SQLException
-
setHoldability
- Throws:
SQLException
-
getHoldability
- Throws:
SQLException
-
setSavepoint
- Throws:
SQLException
-
setSavepoint
- Throws:
SQLException
-
rollback
- Throws:
SQLException
-
releaseSavepoint
- Throws:
SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Throws:
SQLException
-
prepareStatement
- Throws:
SQLException
-
prepareStatement
- Throws:
SQLException
-
prepareStatement
- Throws:
SQLException
-
createClob
- Throws:
SQLException
-
createBlob
- Throws:
SQLException
-
createNClob
- Throws:
SQLException
-
createSQLXML
- Throws:
SQLException
-
isValid
- Throws:
SQLException
-
setClientInfo
- Throws:
SQLClientInfoException
-
setClientInfo
- Throws:
SQLClientInfoException
-
getClientInfo
- Throws:
SQLException
-
getClientInfo
- Throws:
SQLException
-
createArrayOf
- Throws:
SQLException
-
createStruct
- Throws:
SQLException
-
setSchema
- Specified by:
setSchema
in interfaceConnection
- Overrides:
setSchema
in classSQLiteConnection
- Throws:
SQLException
-
getSchema
- Specified by:
getSchema
in interfaceConnection
- Overrides:
getSchema
in classSQLiteConnection
- Throws:
SQLException
-
abort
- Specified by:
abort
in interfaceConnection
- Overrides:
abort
in classSQLiteConnection
- Throws:
SQLException
-
setNetworkTimeout
- Specified by:
setNetworkTimeout
in interfaceConnection
- Overrides:
setNetworkTimeout
in classSQLiteConnection
- Throws:
SQLException
-
getNetworkTimeout
- Specified by:
getNetworkTimeout
in interfaceConnection
- Overrides:
getNetworkTimeout
in classSQLiteConnection
- Throws:
SQLException
-
unwrap
- Throws:
SQLException
-
isWrapperFor
- Throws:
SQLException
-
getBusyTimeout
public int getBusyTimeout()- Overrides:
getBusyTimeout
in classSQLiteConnection
- Returns:
- The busy timeout value for the connection.
- See Also:
-
setBusyTimeout
public void setBusyTimeout(int timeoutMillis) Description copied from class:SQLiteConnection
Sets the timeout value for the connection. A timeout value less than or equal to zero turns off all busy handlers.- Overrides:
setBusyTimeout
in classSQLiteConnection
- Parameters:
timeoutMillis
- The timeout value in milliseconds.- See Also:
-
getDatabase
- Overrides:
getDatabase
in classSQLiteConnection
-