Package org.sqlite.jdbc3
Class JDBC3Connection
java.lang.Object
org.sqlite.SQLiteConnection
org.sqlite.jdbc3.JDBC3Connection
- All Implemented Interfaces:
AutoCloseable,Connection,Wrapper
- Direct Known Subclasses:
JDBC4Connection
-
Field Summary
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJDBC3Connection(String url, String fileName, Properties prop) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateStatement(int rsType, int rsConcurr) abstract StatementcreateStatement(int rst, int rsc, int rsh) createStruct(String t, Object[] attr) intbooleanprepareCall(String sql) prepareCall(String sql, int rst, int rsc) prepareCall(String sql, int rst, int rsc, int rsh) prepareStatement(String sql) prepareStatement(String sql, int autoC) prepareStatement(String sql, int[] colInds) prepareStatement(String sql, int rst, int rsc) abstract PreparedStatementprepareStatement(String sql, int rst, int rsc, int rsh) prepareStatement(String sql, String[] colNames) voidreleaseSavepoint(Savepoint savepoint) voidvoidsetCatalog(String catalog) voidsetHoldability(int h) voidsetReadOnly(boolean ro) setSavepoint(String name) voidsetTypeMap(Map map) voidThis will try to enforce the transaction mode if SQLiteConfig#isExplicitReadOnly is true and auto commit is disabled.Methods inherited from class org.sqlite.SQLiteConnection
abort, addCommitListener, addUpdateListener, checkCursor, checkOpen, close, commit, deserialize, extractPragmasFromFilename, getAutoCommit, getBusyTimeout, getConnectionConfig, getCurrentTransactionMode, getDatabase, getLimit, getMetaData, getNetworkTimeout, getSchema, getSQLiteDatabaseMetaData, getTransactionIsolation, getUrl, isClosed, isFirstStatementExecuted, libversion, removeCommitListener, removeUpdateListener, rollback, serialize, setAutoCommit, setBusyTimeout, setCurrentTransactionMode, setFirstStatementExecuted, setLimit, setNetworkTimeout, setSchema, setTransactionIsolation, setTransactionMode, transactionPrefixMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.Connection
beginRequest, createArrayOf, createBlob, createClob, createNClob, createSQLXML, endRequest, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValidMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
JDBC3Connection
- Throws:
SQLException
-
-
Method Details
-
tryEnforceTransactionMode
This will try to enforce the transaction mode if SQLiteConfig#isExplicitReadOnly is true and auto commit is disabled.- If this connection is read only, the PRAGMA query_only will be set
- If this connection is not read only:
- if no statement has been executed, PRAGMA query_only will be set to false, and an IMMEDIATE transaction will be started
- if a statement has already been executed, an exception is thrown
- Throws:
SQLException- if a statement has already been executed on this connection, then the transaction cannot be upgraded to write
-
getCatalog
- Throws:
SQLException- See Also:
-
setCatalog
- Throws:
SQLException- See Also:
-
getHoldability
- Throws:
SQLException- See Also:
-
setHoldability
- Throws:
SQLException- See Also:
-
getTypeMap
- Throws:
SQLException- See Also:
-
setTypeMap
- Throws:
SQLException- See Also:
-
isReadOnly
public boolean isReadOnly()- See Also:
-
setReadOnly
- Throws:
SQLException- See Also:
-
nativeSQL
- See Also:
-
clearWarnings
- Throws:
SQLException- See Also:
-
getWarnings
- Throws:
SQLException- See Also:
-
createStatement
- Throws:
SQLException- See Also:
-
createStatement
- Throws:
SQLException- See Also:
-
createStatement
- Throws:
SQLException- See Also:
-
prepareCall
- Throws:
SQLException- See Also:
-
prepareCall
- Throws:
SQLException- See Also:
-
prepareCall
- Throws:
SQLException- See Also:
-
prepareStatement
- Throws:
SQLException- See Also:
-
prepareStatement
- Throws:
SQLException- See Also:
-
prepareStatement
- Throws:
SQLException- See Also:
-
prepareStatement
-
prepareStatement
- Throws:
SQLException- See Also:
-
prepareStatement
public abstract PreparedStatement prepareStatement(String sql, int rst, int rsc, int rsh) throws SQLException - Throws:
SQLException- See Also:
-
setSavepoint
- Throws:
SQLException- See Also:
-
setSavepoint
- Throws:
SQLException- See Also:
-
releaseSavepoint
- Throws:
SQLException- See Also:
-
rollback
- Throws:
SQLException- See Also:
-
createStruct
- Throws:
SQLException
-