Class SQLitePooledConnectionHandle
java.lang.Object
org.sqlite.SQLiteConnection
org.sqlite.javax.SQLitePooledConnectionHandle
- All Implemented Interfaces:
AutoCloseable, Connection, Wrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicBooleanprivate final SQLitePooledConnectionFields inherited from interface Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()voidcommit()createArrayOf(String typeName, Object[] elements) createStatement(int resultSetType, int resultSetConcurrency) createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) createStruct(String typeName, Object[] attributes) booleanintgetClientInfo(String name) intintintbooleanisClosed()booleanbooleanisValid(int timeout) booleanisWrapperFor(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) voidreleaseSavepoint(Savepoint savepoint) voidrollback()voidvoidsetAutoCommit(boolean autoCommit) voidsetBusyTimeout(int timeoutMillis) Sets the timeout value for the connection.voidsetCatalog(String catalog) voidsetClientInfo(String name, String value) voidsetClientInfo(Properties properties) voidsetHoldability(int holdability) voidsetNetworkTimeout(Executor executor, int milliseconds) voidsetReadOnly(boolean readOnly) setSavepoint(String name) voidvoidsetTransactionIsolation(int level) voidsetTypeMap(Map<String, Class<?>> map) <T> TMethods inherited from class SQLiteConnection
addCommitListener, addUpdateListener, checkCursor, checkOpen, deserialize, extractPragmasFromFilename, getConnectionConfig, getCurrentTransactionMode, getLimit, getSQLiteDatabaseMetaData, getUrl, isFirstStatementExecuted, libversion, removeCommitListener, removeUpdateListener, serialize, setCurrentTransactionMode, setFirstStatementExecuted, setLimit, setTransactionMode, transactionPrefixMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
setAutoCommitin interfaceConnection- Overrides:
setAutoCommitin classSQLiteConnection- Throws:
SQLException- See Also:
-
getAutoCommit
- Specified by:
getAutoCommitin interfaceConnection- Overrides:
getAutoCommitin classSQLiteConnection- Throws:
SQLException- See Also:
-
commit
- Specified by:
commitin interfaceConnection- Overrides:
commitin classSQLiteConnection- Throws:
SQLException- See Also:
-
rollback
- Specified by:
rollbackin interfaceConnection- Overrides:
rollbackin classSQLiteConnection- Throws:
SQLException- See Also:
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnection- Overrides:
closein classSQLiteConnection- Throws:
SQLException- See Also:
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceConnection- Overrides:
isClosedin classSQLiteConnection
-
getMetaData
- Specified by:
getMetaDatain interfaceConnection- Overrides:
getMetaDatain classSQLiteConnection- Throws:
SQLException
-
setReadOnly
- Throws:
SQLException
-
isReadOnly
- Throws:
SQLException
-
setCatalog
- Throws:
SQLException
-
getCatalog
- Throws:
SQLException
-
setTransactionIsolation
- Specified by:
setTransactionIsolationin interfaceConnection- Overrides:
setTransactionIsolationin classSQLiteConnection- Throws:
SQLException- See Also:
-
getTransactionIsolation
public int getTransactionIsolation()- Specified by:
getTransactionIsolationin interfaceConnection- Overrides:
getTransactionIsolationin 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:
setSchemain interfaceConnection- Overrides:
setSchemain classSQLiteConnection- Throws:
SQLException
-
getSchema
- Specified by:
getSchemain interfaceConnection- Overrides:
getSchemain classSQLiteConnection- Throws:
SQLException
-
abort
- Specified by:
abortin interfaceConnection- Overrides:
abortin classSQLiteConnection- Throws:
SQLException
-
setNetworkTimeout
- Specified by:
setNetworkTimeoutin interfaceConnection- Overrides:
setNetworkTimeoutin classSQLiteConnection- Throws:
SQLException
-
getNetworkTimeout
- Specified by:
getNetworkTimeoutin interfaceConnection- Overrides:
getNetworkTimeoutin classSQLiteConnection- Throws:
SQLException
-
unwrap
- Throws:
SQLException
-
isWrapperFor
- Throws:
SQLException
-
getBusyTimeout
public int getBusyTimeout()- Overrides:
getBusyTimeoutin classSQLiteConnection- Returns:
- The busy timeout value for the connection.
- See Also:
-
setBusyTimeout
public void setBusyTimeout(int timeoutMillis) Description copied from class:SQLiteConnectionSets the timeout value for the connection. A timeout value less than or equal to zero turns off all busy handlers.- Overrides:
setBusyTimeoutin classSQLiteConnection- Parameters:
timeoutMillis- The timeout value in milliseconds.- See Also:
-
getDatabase
- Overrides:
getDatabasein classSQLiteConnection
-