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 Connectionjava.sql.SQLExceptionpublic PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
prepareStatement in interface Connectionjava.sql.SQLExceptionpublic java.lang.String nativeSQL(java.lang.String sql)
nativeSQL in interface Connectionpublic void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
setAutoCommit in interface Connectionjava.sql.SQLExceptionpublic boolean getAutoCommit()
throws java.sql.SQLException
getAutoCommit in interface Connectionjava.sql.SQLExceptionpublic void commit()
throws java.sql.SQLException
commit in interface Connectionjava.sql.SQLExceptionpublic void rollback()
throws java.sql.SQLException
rollback in interface Connectionjava.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
close in interface java.lang.AutoCloseableclose in interface Connectionjava.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
isClosed in interface Connectionjava.sql.SQLExceptionpublic void setReadOnly(boolean readOnly)
throws java.sql.SQLException
setReadOnly in interface Connectionjava.sql.SQLExceptionpublic boolean isReadOnly()
throws java.sql.SQLException
isReadOnly in interface Connectionjava.sql.SQLExceptionpublic void setCatalog(java.lang.String catalog)
throws java.sql.SQLException
setCatalog in interface Connectionjava.sql.SQLExceptionpublic java.lang.String getCatalog()
throws java.sql.SQLException
getCatalog in interface Connectionjava.sql.SQLExceptionpublic void setTransactionIsolation(int level)
throws java.sql.SQLException
setTransactionIsolation in interface Connectionjava.sql.SQLExceptionpublic int getTransactionIsolation()
throws java.sql.SQLException
getTransactionIsolation in interface Connectionjava.sql.SQLExceptionpublic java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface Connectionjava.sql.SQLExceptionpublic void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface Connectionjava.sql.SQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
createStatement in interface Connectionjava.sql.SQLExceptionpublic PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
prepareStatement in interface Connectionjava.sql.SQLExceptionpublic DatabaseMetaData getMetaData() throws java.sql.SQLException
getMetaData in interface Connectionjava.sql.SQLException