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
ConstructorsModifierConstructorDescriptionprotected
JDBC3Connection
(String url, String fileName, Properties prop) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createStatement
(int rsType, int rsConcurr) abstract Statement
createStatement
(int rst, int rsc, int rsh) createStruct
(String t, Object[] attr) int
boolean
prepareCall
(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 PreparedStatement
prepareStatement
(String sql, int rst, int rsc, int rsh) prepareStatement
(String sql, String[] colNames) void
releaseSavepoint
(Savepoint savepoint) void
void
setCatalog
(String catalog) void
setHoldability
(int h) void
setReadOnly
(boolean ro) setSavepoint
(String name) void
setTypeMap
(Map map) void
This 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, 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, createArrayOf, createBlob, createClob, createNClob, createSQLXML, endRequest, getClientInfo, getClientInfo, isValid, setClientInfo, setClientInfo, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
Methods 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
-