Package org.sqlite.jdbc4
Class JDBC4Connection
- java.lang.Object
-
- org.sqlite.SQLiteConnection
-
- org.sqlite.jdbc3.JDBC3Connection
-
- org.sqlite.jdbc4.JDBC4Connection
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.sql.Connection,java.sql.Wrapper
public class JDBC4Connection extends JDBC3Connection
-
-
Constructor Summary
Constructors Constructor Description JDBC4Connection(java.lang.String url, java.lang.String fileName, java.util.Properties prop)
-
Method Summary
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)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, 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
-
Methods inherited from class org.sqlite.SQLiteConnection
abort, addCommitListener, addUpdateListener, checkCursor, checkOpen, close, commit, extractPragmasFromFilename, getAutoCommit, getBusyTimeout, getConnectionConfig, getDatabase, getLimit, getMetaData, getNetworkTimeout, getSchema, getSQLiteDatabaseMetaData, getTransactionIsolation, getUrl, libversion, removeCommitListener, removeUpdateListener, rollback, setAutoCommit, setBusyTimeout, setLimit, setNetworkTimeout, setSchema, setTransactionIsolation, setTransactionMode
-
-
-
-
Method Detail
-
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- Overrides:
isClosedin classSQLiteConnection- Throws:
java.sql.SQLException- See Also:
Connection.isClosed()
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.lang.ClassCastException- Throws:
java.lang.ClassCastException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)
-
createClob
public java.sql.Clob createClob() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
createBlob
public java.sql.Blob createBlob() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
createNClob
public java.sql.NClob createNClob() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
createSQLXML
public java.sql.SQLXML createSQLXML() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isValid
public boolean isValid(int timeout) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setClientInfo
public void setClientInfo(java.lang.String name, java.lang.String value) throws java.sql.SQLClientInfoException- Throws:
java.sql.SQLClientInfoException
-
setClientInfo
public void setClientInfo(java.util.Properties properties) throws java.sql.SQLClientInfoException- Throws:
java.sql.SQLClientInfoException
-
getClientInfo
public java.lang.String getClientInfo(java.lang.String name) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getClientInfo
public java.util.Properties getClientInfo() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
createArrayOf
public java.sql.Array createArrayOf(java.lang.String typeName, java.lang.Object[] elements) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-