Package org.sqlite.jdbc4
Class JDBC4Connection
- java.lang.Object
-
- org.sqlite.core.CoreConnection
-
- org.sqlite.jdbc3.JDBC3Connection
-
- org.sqlite.jdbc4.JDBC4Connection
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.sql.Connection
,java.sql.Wrapper
- Direct Known Subclasses:
SQLiteConnection
public abstract class JDBC4Connection extends JDBC3Connection implements java.sql.Connection
-
-
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 JDBC4Connection(java.lang.String url, java.lang.String fileName, java.util.Properties prop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Array
createArrayOf(java.lang.String typeName, java.lang.Object[] elements)
java.sql.Blob
createBlob()
java.sql.Clob
createClob()
java.sql.NClob
createNClob()
java.sql.SQLXML
createSQLXML()
java.sql.Statement
createStatement(int rst, int rsc, int rsh)
java.util.Properties
getClientInfo()
java.lang.String
getClientInfo(java.lang.String name)
java.sql.DatabaseMetaData
getMetaData()
boolean
isClosed()
boolean
isValid(int timeout)
boolean
isWrapperFor(java.lang.Class<?> iface)
java.sql.PreparedStatement
prepareStatement(java.lang.String sql, int rst, int rsc, int rsh)
void
setClientInfo(java.lang.String name, java.lang.String value)
void
setClientInfo(java.util.Properties properties)
<T> T
unwrap(java.lang.Class<T> iface)
-
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
abort, beginRequest, clearWarnings, close, commit, createStatement, createStatement, createStruct, endRequest, getAutoCommit, getCatalog, getHoldability, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid, setTransactionIsolation, setTypeMap
-
-
-
-
Method Detail
-
getMetaData
public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException
- Specified by:
getMetaData
in interfacejava.sql.Connection
- Specified by:
getMetaData
in classJDBC3Connection
- Throws:
java.sql.SQLException
-
createStatement
public java.sql.Statement createStatement(int rst, int rsc, int rsh) throws java.sql.SQLException
- Specified by:
createStatement
in interfacejava.sql.Connection
- Specified by:
createStatement
in classJDBC3Connection
- Throws:
java.sql.SQLException
- See Also:
Connection.createStatement(int, int, int)
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int rst, int rsc, int rsh) throws java.sql.SQLException
- Specified by:
prepareStatement
in interfacejava.sql.Connection
- Specified by:
prepareStatement
in classJDBC3Connection
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareStatement(java.lang.String, int, int, int)
-
isClosed
public boolean isClosed() throws java.sql.SQLException
- Specified by:
isClosed
in interfacejava.sql.Connection
- Throws:
java.sql.SQLException
- See Also:
Connection.isClosed()
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.lang.ClassCastException
- Specified by:
unwrap
in interfacejava.sql.Wrapper
- Throws:
java.lang.ClassCastException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)
- Specified by:
isWrapperFor
in interfacejava.sql.Wrapper
-
createClob
public java.sql.Clob createClob() throws java.sql.SQLException
- Specified by:
createClob
in interfacejava.sql.Connection
- Throws:
java.sql.SQLException
-
createBlob
public java.sql.Blob createBlob() throws java.sql.SQLException
- Specified by:
createBlob
in interfacejava.sql.Connection
- Throws:
java.sql.SQLException
-
createNClob
public java.sql.NClob createNClob() throws java.sql.SQLException
- Specified by:
createNClob
in interfacejava.sql.Connection
- Throws:
java.sql.SQLException
-
createSQLXML
public java.sql.SQLXML createSQLXML() throws java.sql.SQLException
- Specified by:
createSQLXML
in interfacejava.sql.Connection
- Throws:
java.sql.SQLException
-
isValid
public boolean isValid(int timeout) throws java.sql.SQLException
- Specified by:
isValid
in interfacejava.sql.Connection
- Throws:
java.sql.SQLException
-
setClientInfo
public void setClientInfo(java.lang.String name, java.lang.String value) throws java.sql.SQLClientInfoException
- Specified by:
setClientInfo
in interfacejava.sql.Connection
- Throws:
java.sql.SQLClientInfoException
-
setClientInfo
public void setClientInfo(java.util.Properties properties) throws java.sql.SQLClientInfoException
- Specified by:
setClientInfo
in interfacejava.sql.Connection
- Throws:
java.sql.SQLClientInfoException
-
getClientInfo
public java.lang.String getClientInfo(java.lang.String name) throws java.sql.SQLException
- Specified by:
getClientInfo
in interfacejava.sql.Connection
- Throws:
java.sql.SQLException
-
getClientInfo
public java.util.Properties getClientInfo() throws java.sql.SQLException
- Specified by:
getClientInfo
in interfacejava.sql.Connection
- Throws:
java.sql.SQLException
-
createArrayOf
public java.sql.Array createArrayOf(java.lang.String typeName, java.lang.Object[] elements) throws java.sql.SQLException
- Specified by:
createArrayOf
in interfacejava.sql.Connection
- Throws:
java.sql.SQLException
-
-