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.ArraycreateArrayOf(java.lang.String typeName, java.lang.Object[] elements)java.sql.BlobcreateBlob()java.sql.ClobcreateClob()java.sql.NClobcreateNClob()java.sql.SQLXMLcreateSQLXML()java.sql.StatementcreateStatement(int rst, int rsc, int rsh)java.util.PropertiesgetClientInfo()java.lang.StringgetClientInfo(java.lang.String name)java.sql.DatabaseMetaDatagetMetaData()booleanisClosed()booleanisValid(int timeout)booleanisWrapperFor(java.lang.Class<?> iface)java.sql.PreparedStatementprepareStatement(java.lang.String sql, int rst, int rsc, int rsh)voidsetClientInfo(java.lang.String name, java.lang.String value)voidsetClientInfo(java.util.Properties properties)<T> Tunwrap(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:
getMetaDatain interfacejava.sql.Connection- Specified by:
getMetaDatain classJDBC3Connection- Throws:
java.sql.SQLException
-
createStatement
public java.sql.Statement createStatement(int rst, int rsc, int rsh) throws java.sql.SQLException- Specified by:
createStatementin interfacejava.sql.Connection- Specified by:
createStatementin 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:
prepareStatementin interfacejava.sql.Connection- Specified by:
prepareStatementin 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:
isClosedin 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:
unwrapin interfacejava.sql.Wrapper- Throws:
java.lang.ClassCastException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)
- Specified by:
isWrapperForin interfacejava.sql.Wrapper
-
createClob
public java.sql.Clob createClob() throws java.sql.SQLException- Specified by:
createClobin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createBlob
public java.sql.Blob createBlob() throws java.sql.SQLException- Specified by:
createBlobin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createNClob
public java.sql.NClob createNClob() throws java.sql.SQLException- Specified by:
createNClobin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createSQLXML
public java.sql.SQLXML createSQLXML() throws java.sql.SQLException- Specified by:
createSQLXMLin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
isValid
public boolean isValid(int timeout) throws java.sql.SQLException- Specified by:
isValidin 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:
setClientInfoin interfacejava.sql.Connection- Throws:
java.sql.SQLClientInfoException
-
setClientInfo
public void setClientInfo(java.util.Properties properties) throws java.sql.SQLClientInfoException- Specified by:
setClientInfoin interfacejava.sql.Connection- Throws:
java.sql.SQLClientInfoException
-
getClientInfo
public java.lang.String getClientInfo(java.lang.String name) throws java.sql.SQLException- Specified by:
getClientInfoin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getClientInfo
public java.util.Properties getClientInfo() throws java.sql.SQLException- Specified by:
getClientInfoin 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:
createArrayOfin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
-