Package org.sqlite.jdbc3
Class JDBC3Connection
- java.lang.Object
-
- org.sqlite.core.CoreConnection
-
- org.sqlite.jdbc3.JDBC3Connection
-
- Direct Known Subclasses:
JDBC4Connection
public abstract class JDBC3Connection extends CoreConnection
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicInteger
savePoint
-
Fields inherited from class org.sqlite.core.CoreConnection
autoCommit, beginCommandMap, dateClass, dateFormat, dateMultiplier, datePrecision, dateStringFormat, db, meta, openModeFlags, transactionIsolation, transactionMode
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JDBC3Connection(java.lang.String url, java.lang.String fileName, java.util.Properties prop)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clearWarnings()
void
commit()
java.sql.Statement
createStatement()
java.sql.Statement
createStatement(int rsType, int rsConcurr)
abstract java.sql.Statement
createStatement(int rst, int rsc, int rsh)
java.sql.Struct
createStruct(java.lang.String t, java.lang.Object[] attr)
boolean
getAutoCommit()
java.lang.String
getCatalog()
int
getHoldability()
abstract java.sql.DatabaseMetaData
getMetaData()
int
getTransactionIsolation()
java.util.Map<java.lang.String,java.lang.Class<?>>
getTypeMap()
java.sql.SQLWarning
getWarnings()
boolean
isReadOnly()
java.lang.String
nativeSQL(java.lang.String sql)
java.sql.CallableStatement
prepareCall(java.lang.String sql)
java.sql.CallableStatement
prepareCall(java.lang.String sql, int rst, int rsc)
java.sql.CallableStatement
prepareCall(java.lang.String sql, int rst, int rsc, int rsh)
java.sql.PreparedStatement
prepareStatement(java.lang.String sql)
java.sql.PreparedStatement
prepareStatement(java.lang.String sql, int autoC)
java.sql.PreparedStatement
prepareStatement(java.lang.String sql, int[] colInds)
java.sql.PreparedStatement
prepareStatement(java.lang.String sql, int rst, int rsc)
abstract java.sql.PreparedStatement
prepareStatement(java.lang.String sql, int rst, int rsc, int rsh)
java.sql.PreparedStatement
prepareStatement(java.lang.String sql, java.lang.String[] colNames)
void
releaseSavepoint(java.sql.Savepoint savepoint)
void
rollback()
void
rollback(java.sql.Savepoint savepoint)
void
setAutoCommit(boolean ac)
void
setCatalog(java.lang.String catalog)
void
setHoldability(int h)
void
setReadOnly(boolean ro)
java.sql.Savepoint
setSavepoint()
java.sql.Savepoint
setSavepoint(java.lang.String name)
void
setTransactionIsolation(int level)
void
setTypeMap(java.util.Map map)
-
Methods inherited from class org.sqlite.core.CoreConnection
checkCursor, checkOpen, close, db, finalize, getBusyTimeout, getDriverVersion, libversion, setBusyTimeout, setTransactionMode, url
-
-
-
-
Method Detail
-
getCatalog
public java.lang.String getCatalog() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.getCatalog()
-
setCatalog
public void setCatalog(java.lang.String catalog) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.setCatalog(java.lang.String)
-
getHoldability
public int getHoldability() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.getHoldability()
-
setHoldability
public void setHoldability(int h) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.setHoldability(int)
-
getTransactionIsolation
public int getTransactionIsolation()
- See Also:
Connection.getTransactionIsolation()
-
setTransactionIsolation
public void setTransactionIsolation(int level) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.setTransactionIsolation(int)
-
getTypeMap
public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.getTypeMap()
-
setTypeMap
public void setTypeMap(java.util.Map map) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.setTypeMap(java.util.Map)
-
isReadOnly
public boolean isReadOnly() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.isReadOnly()
-
setReadOnly
public void setReadOnly(boolean ro) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.setReadOnly(boolean)
-
getMetaData
public abstract java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
nativeSQL
public java.lang.String nativeSQL(java.lang.String sql)
- See Also:
Connection.nativeSQL(java.lang.String)
-
clearWarnings
public void clearWarnings() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.clearWarnings()
-
getWarnings
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.getWarnings()
-
getAutoCommit
public boolean getAutoCommit() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.getAutoCommit()
-
setAutoCommit
public void setAutoCommit(boolean ac) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.setAutoCommit(boolean)
-
commit
public void commit() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.commit()
-
rollback
public void rollback() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.rollback()
-
createStatement
public java.sql.Statement createStatement() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.createStatement()
-
createStatement
public java.sql.Statement createStatement(int rsType, int rsConcurr) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.createStatement(int, int)
-
createStatement
public abstract java.sql.Statement createStatement(int rst, int rsc, int rsh) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.createStatement(int, int, int)
-
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String sql) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareCall(java.lang.String)
-
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String sql, int rst, int rsc) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareCall(java.lang.String, int, int)
-
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String sql, int rst, int rsc, int rsh) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareCall(java.lang.String, int, int, int)
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareStatement(java.lang.String)
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoC) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareStatement(java.lang.String, int)
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int[] colInds) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareStatement(java.lang.String, int[])
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] colNames) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareStatement(java.lang.String, java.lang.String[])
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int rst, int rsc) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareStatement(java.lang.String, int, int)
-
prepareStatement
public abstract java.sql.PreparedStatement prepareStatement(java.lang.String sql, int rst, int rsc, int rsh) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.prepareStatement(java.lang.String, int, int, int)
-
setSavepoint
public java.sql.Savepoint setSavepoint() throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.setSavepoint()
-
setSavepoint
public java.sql.Savepoint setSavepoint(java.lang.String name) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.setSavepoint(java.lang.String)
-
releaseSavepoint
public void releaseSavepoint(java.sql.Savepoint savepoint) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.releaseSavepoint(java.sql.Savepoint)
-
rollback
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException
- Throws:
java.sql.SQLException
- See Also:
Connection.rollback(java.sql.Savepoint)
-
createStruct
public java.sql.Struct createStruct(java.lang.String t, java.lang.Object[] attr) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-