public class SQLite4JConnection extends java.lang.Object implements Connection
Modifier and Type | Field and Description |
---|---|
org.sqlite.SQLiteConnection |
con |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Constructor and Description |
---|
SQLite4JConnection(org.sqlite.SQLiteConnection con) |
Modifier and Type | Method and Description |
---|---|
void |
clearWarnings() |
void |
close() |
void |
commit() |
Statement |
createStatement() |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency) |
boolean |
getAutoCommit() |
java.lang.String |
getCatalog() |
DatabaseMetaData |
getMetaData() |
int |
getTransactionIsolation() |
java.sql.SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isReadOnly() |
java.lang.String |
nativeSQL(java.lang.String sql) |
PreparedStatement |
prepareStatement(java.lang.String sql) |
PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
void |
setCatalog(java.lang.String catalog) |
void |
setReadOnly(boolean readOnly) |
void |
setTransactionIsolation(int level) |
public Statement createStatement() throws java.sql.SQLException
createStatement
in interface Connection
java.sql.SQLException
public PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
prepareStatement
in interface Connection
java.sql.SQLException
public java.lang.String nativeSQL(java.lang.String sql)
nativeSQL
in interface Connection
public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException
setAutoCommit
in interface Connection
java.sql.SQLException
public boolean getAutoCommit() throws java.sql.SQLException
getAutoCommit
in interface Connection
java.sql.SQLException
public void commit() throws java.sql.SQLException
commit
in interface Connection
java.sql.SQLException
public void rollback() throws java.sql.SQLException
rollback
in interface Connection
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
close
in interface Connection
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
isClosed
in interface Connection
java.sql.SQLException
public void setReadOnly(boolean readOnly) throws java.sql.SQLException
setReadOnly
in interface Connection
java.sql.SQLException
public boolean isReadOnly() throws java.sql.SQLException
isReadOnly
in interface Connection
java.sql.SQLException
public void setCatalog(java.lang.String catalog) throws java.sql.SQLException
setCatalog
in interface Connection
java.sql.SQLException
public java.lang.String getCatalog() throws java.sql.SQLException
getCatalog
in interface Connection
java.sql.SQLException
public void setTransactionIsolation(int level) throws java.sql.SQLException
setTransactionIsolation
in interface Connection
java.sql.SQLException
public int getTransactionIsolation() throws java.sql.SQLException
getTransactionIsolation
in interface Connection
java.sql.SQLException
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface Connection
java.sql.SQLException
public void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface Connection
java.sql.SQLException
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
createStatement
in interface Connection
java.sql.SQLException
public PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
prepareStatement
in interface Connection
java.sql.SQLException
public DatabaseMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface Connection
java.sql.SQLException