public class SQLiteJDBCConnection extends JDBCConnectionBase
JDBCConnectionBase.DataSQLException
conn, connectionProvider, id, LOGGER, transaction
Constructor and Description |
---|
SQLiteJDBCConnection(DataTransactionServices transaction,
java.sql.Connection conn,
java.lang.String id) |
SQLiteJDBCConnection(DataTransactionServices transaction,
java.sql.Connection conn,
java.lang.String id,
ConnectionProvider connectionProvider) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
begin() |
void |
close() |
void |
commit() |
static JDBCConnection |
create(SQLiteHelper helper) |
java.sql.Statement |
createStatement() |
java.sql.Statement |
createStatement(java.lang.String sql) |
void |
execute(java.lang.String sql) |
void |
finish() |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql) |
void |
rollback() |
closeQuietly, dispose, get, getId, getMetaData, isInDataTransaction, isInTransaction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeQuietly
public SQLiteJDBCConnection(DataTransactionServices transaction, java.sql.Connection conn, java.lang.String id)
public SQLiteJDBCConnection(DataTransactionServices transaction, java.sql.Connection conn, java.lang.String id, ConnectionProvider connectionProvider)
public static JDBCConnection create(SQLiteHelper helper) throws java.sql.SQLException
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface JDBCConnection
close
in class JDBCConnectionBase
java.sql.SQLException
public void begin() throws java.sql.SQLException
begin
in interface JDBCConnection
begin
in class JDBCConnectionBase
java.sql.SQLException
public void commit() throws java.sql.SQLException
commit
in interface JDBCConnection
commit
in class JDBCConnectionBase
java.sql.SQLException
public void abort() throws DataException
abort
in interface DataTransactionServices.ConnectionService<java.sql.Connection>
abort
in class JDBCConnectionBase
DataException
public void finish() throws DataException
finish
in interface DataTransactionServices.ConnectionService<java.sql.Connection>
finish
in class JDBCConnectionBase
DataException
public void execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface JDBCConnection
execute
in class JDBCConnectionBase
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
prepareStatement
in interface JDBCConnection
prepareStatement
in class JDBCConnectionBase
java.sql.SQLException
public void rollback() throws java.sql.SQLException
rollback
in interface JDBCConnection
rollback
in class JDBCConnectionBase
java.sql.SQLException
public java.sql.Statement createStatement() throws java.sql.SQLException
createStatement
in interface JDBCConnection
createStatement
in class JDBCConnectionBase
java.sql.SQLException
public java.sql.Statement createStatement(java.lang.String sql) throws java.sql.SQLException
createStatement
in interface JDBCConnection
createStatement
in class JDBCConnectionBase
java.sql.SQLException