Package org.sqlite
Class SQLiteConnection
- java.lang.Object
-
- org.sqlite.core.CoreConnection
-
- org.sqlite.jdbc3.JDBC3Connection
-
- org.sqlite.jdbc4.JDBC4Connection
-
- org.sqlite.SQLiteConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.sql.Connection
,java.sql.Wrapper
public class SQLiteConnection extends JDBC4Connection
-
-
Field Summary
-
Fields inherited from class org.sqlite.core.CoreConnection
autoCommit, beginCommandMap, dateClass, dateFormat, dateMultiplier, datePrecision, dateStringFormat, db, meta, openModeFlags, transactionIsolation, transactionMode
-
-
Constructor Summary
Constructors Constructor Description SQLiteConnection(java.lang.String url, java.lang.String fileName)
Constructor to create a connection to a database at the given location.SQLiteConnection(java.lang.String url, java.lang.String fileName, java.util.Properties prop)
Constructor to create a pre-configured connection to a database at the given location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abort(java.util.concurrent.Executor executor)
int
getNetworkTimeout()
java.lang.String
getSchema()
void
setNetworkTimeout(java.util.concurrent.Executor executor, int milliseconds)
void
setSchema(java.lang.String schema)
-
Methods inherited from class org.sqlite.jdbc4.JDBC4Connection
createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, getClientInfo, getClientInfo, getMetaData, isClosed, isValid, isWrapperFor, prepareStatement, setClientInfo, setClientInfo, unwrap
-
Methods inherited from class org.sqlite.jdbc3.JDBC3Connection
clearWarnings, commit, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getHoldability, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
-
Methods inherited from class org.sqlite.core.CoreConnection
checkCursor, checkOpen, close, db, finalize, getBusyTimeout, getDriverVersion, libversion, setBusyTimeout, setTransactionMode, url
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.sql.Connection
beginRequest, clearWarnings, close, commit, createStatement, createStatement, createStruct, endRequest, getAutoCommit, getCatalog, getHoldability, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid, setTransactionIsolation, setTypeMap
-
-
-
-
Constructor Detail
-
SQLiteConnection
public SQLiteConnection(java.lang.String url, java.lang.String fileName) throws java.sql.SQLException
Constructor to create a connection to a database at the given location.- Parameters:
url
- The location of the database.fileName
- The database.- Throws:
java.sql.SQLException
-
SQLiteConnection
public SQLiteConnection(java.lang.String url, java.lang.String fileName, java.util.Properties prop) throws java.sql.SQLException
Constructor to create a pre-configured connection to a database at the given location.- Parameters:
url
- The location of the database file.fileName
- The database.prop
- The configurations to apply.- Throws:
java.sql.SQLException
-
-
Method Detail
-
setSchema
public void setSchema(java.lang.String schema) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getSchema
public java.lang.String getSchema() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
abort
public void abort(java.util.concurrent.Executor executor) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
setNetworkTimeout
public void setNetworkTimeout(java.util.concurrent.Executor executor, int milliseconds) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getNetworkTimeout
public int getNetworkTimeout() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-