Package org.sqlite.jdbc4
Class JDBC4Connection
- java.lang.Object
-
- org.sqlite.SQLiteConnection
-
- org.sqlite.jdbc3.JDBC3Connection
-
- org.sqlite.jdbc4.JDBC4Connection
-
- All Implemented Interfaces:
AutoCloseable,Connection,Wrapper
public class JDBC4Connection extends JDBC3Connection
-
-
Field Summary
-
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
-
Constructor Summary
Constructors Constructor Description JDBC4Connection(String url, String fileName, Properties prop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArraycreateArrayOf(String typeName, Object[] elements)BlobcreateBlob()ClobcreateClob()NClobcreateNClob()SQLXMLcreateSQLXML()StatementcreateStatement(int rst, int rsc, int rsh)PropertiesgetClientInfo()StringgetClientInfo(String name)booleanisClosed()booleanisValid(int timeout)booleanisWrapperFor(Class<?> iface)PreparedStatementprepareStatement(String sql, int rst, int rsc, int rsh)voidsetClientInfo(String name, String value)voidsetClientInfo(Properties properties)<T> Tunwrap(Class<T> iface)-
Methods inherited from class org.sqlite.jdbc3.JDBC3Connection
clearWarnings, createStatement, createStatement, createStruct, getCatalog, getHoldability, getTypeMap, getWarnings, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTypeMap, tryEnforceTransactionMode
-
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, 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, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
-
-
-
Constructor Detail
-
JDBC4Connection
public JDBC4Connection(String url, String fileName, Properties prop) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
createStatement
public Statement createStatement(int rst, int rsc, int rsh) throws SQLException
- Specified by:
createStatementin interfaceConnection- Specified by:
createStatementin classJDBC3Connection- Throws:
SQLException- See Also:
Connection.createStatement(int, int, int)
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int rst, int rsc, int rsh) throws SQLException
- Specified by:
prepareStatementin interfaceConnection- Specified by:
prepareStatementin classJDBC3Connection- Throws:
SQLException- See Also:
Connection.prepareStatement(java.lang.String, int, int, int)
-
isClosed
public boolean isClosed() throws SQLException- Specified by:
isClosedin interfaceConnection- Overrides:
isClosedin classSQLiteConnection- Throws:
SQLException- See Also:
Connection.isClosed()
-
unwrap
public <T> T unwrap(Class<T> iface) throws ClassCastException
- Throws:
ClassCastException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
-
createClob
public Clob createClob() throws SQLException
- Throws:
SQLException
-
createBlob
public Blob createBlob() throws SQLException
- Throws:
SQLException
-
createNClob
public NClob createNClob() throws SQLException
- Throws:
SQLException
-
createSQLXML
public SQLXML createSQLXML() throws SQLException
- Throws:
SQLException
-
isValid
public boolean isValid(int timeout) throws SQLException- Throws:
SQLException
-
setClientInfo
public void setClientInfo(String name, String value) throws SQLClientInfoException
- Throws:
SQLClientInfoException
-
setClientInfo
public void setClientInfo(Properties properties) throws SQLClientInfoException
- Throws:
SQLClientInfoException
-
getClientInfo
public String getClientInfo(String name) throws SQLException
- Throws:
SQLException
-
getClientInfo
public Properties getClientInfo() throws SQLException
- Throws:
SQLException
-
createArrayOf
public Array createArrayOf(String typeName, Object[] elements) throws SQLException
- Throws:
SQLException
-
-