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.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)
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, 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:
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
- Overrides:
isClosed
in 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
-
-