Package totalcross.sql.sqlite4j
Class SQLite4JConnection
- java.lang.Object
-
- totalcross.sql.sqlite4j.SQLite4JConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable,Connection
public class SQLite4JConnection extends java.lang.Object implements Connection
-
-
Field Summary
Fields Modifier and Type Field Description org.sqlite.SQLiteConnectioncon-
Fields inherited from interface totalcross.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
-
Constructor Summary
Constructors Constructor Description SQLite4JConnection(org.sqlite.SQLiteConnection con)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearWarnings()voidclose()voidcommit()StatementcreateStatement()StatementcreateStatement(int resultSetType, int resultSetConcurrency)booleangetAutoCommit()java.lang.StringgetCatalog()DatabaseMetaDatagetMetaData()intgetTransactionIsolation()java.sql.SQLWarninggetWarnings()booleanisClosed()booleanisReadOnly()java.lang.StringnativeSQL(java.lang.String sql)PreparedStatementprepareStatement(java.lang.String sql)PreparedStatementprepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency)voidrollback()voidsetAutoCommit(boolean autoCommit)voidsetCatalog(java.lang.String catalog)voidsetReadOnly(boolean readOnly)voidsetTransactionIsolation(int level)
-
-
-
Method Detail
-
createStatement
public Statement createStatement() throws java.sql.SQLException
- Specified by:
createStatementin interfaceConnection- Throws:
java.sql.SQLException
-
prepareStatement
public PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
- Specified by:
prepareStatementin interfaceConnection- Throws:
java.sql.SQLException
-
nativeSQL
public java.lang.String nativeSQL(java.lang.String sql) throws java.sql.SQLException- Specified by:
nativeSQLin interfaceConnection- Throws:
java.sql.SQLException
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException- Specified by:
setAutoCommitin interfaceConnection- Throws:
java.sql.SQLException
-
getAutoCommit
public boolean getAutoCommit() throws java.sql.SQLException- Specified by:
getAutoCommitin interfaceConnection- Throws:
java.sql.SQLException
-
commit
public void commit() throws java.sql.SQLException- Specified by:
commitin interfaceConnection- Throws:
java.sql.SQLException
-
rollback
public void rollback() throws java.sql.SQLException- Specified by:
rollbackin interfaceConnection- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceConnection- Throws:
java.sql.SQLException
-
isClosed
public boolean isClosed() throws java.sql.SQLException- Specified by:
isClosedin interfaceConnection- Throws:
java.sql.SQLException
-
setReadOnly
public void setReadOnly(boolean readOnly) throws java.sql.SQLException- Specified by:
setReadOnlyin interfaceConnection- Throws:
java.sql.SQLException
-
isReadOnly
public boolean isReadOnly() throws java.sql.SQLException- Specified by:
isReadOnlyin interfaceConnection- Throws:
java.sql.SQLException
-
setCatalog
public void setCatalog(java.lang.String catalog) throws java.sql.SQLException- Specified by:
setCatalogin interfaceConnection- Throws:
java.sql.SQLException
-
getCatalog
public java.lang.String getCatalog() throws java.sql.SQLException- Specified by:
getCatalogin interfaceConnection- Throws:
java.sql.SQLException
-
setTransactionIsolation
public void setTransactionIsolation(int level) throws java.sql.SQLException- Specified by:
setTransactionIsolationin interfaceConnection- Throws:
java.sql.SQLException
-
getTransactionIsolation
public int getTransactionIsolation() throws java.sql.SQLException- Specified by:
getTransactionIsolationin interfaceConnection- Throws:
java.sql.SQLException
-
getWarnings
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException- Specified by:
getWarningsin interfaceConnection- Throws:
java.sql.SQLException
-
clearWarnings
public void clearWarnings() throws java.sql.SQLException- Specified by:
clearWarningsin interfaceConnection- Throws:
java.sql.SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
- Specified by:
createStatementin interfaceConnection- Throws:
java.sql.SQLException
-
prepareStatement
public PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
- Specified by:
prepareStatementin interfaceConnection- Throws:
java.sql.SQLException
-
getMetaData
public DatabaseMetaData getMetaData() throws java.sql.SQLException
- Specified by:
getMetaDatain interfaceConnection- Throws:
java.sql.SQLException
-
-