Uses of Class
org.sql2o.Connection
-
Uses of Connection in org.sql2o
Modifier and TypeMethodDescriptionSql2o.beginTransaction()
Begins a transaction with isolation levelConnection.TRANSACTION_READ_COMMITTED
.Sql2o.beginTransaction
(int isolationLevel) Begins a transaction with the given isolation level.Sql2o.beginTransaction
(ConnectionSource connectionSource) Begins a transaction with isolation levelConnection.TRANSACTION_READ_COMMITTED
.Sql2o.beginTransaction
(ConnectionSource connectionSource, int isolationLevel) Begins a transaction with the given isolation level.Connection.commit
(boolean closeConnection) Query.executeBatch()
Query.executeUpdate()
Query.getConnection()
Sql2o.open()
Opens a connection to the databaseSql2o.open
(ConnectionSource connectionSource) Opens a connection to the databaseConnection.rollback
(boolean closeConnection) Connection.setRollbackOnClose
(boolean rollbackOnClose) Connection.setRollbackOnException
(boolean rollbackOnException) Modifier and TypeMethodDescriptionvoid
StatementRunnable.run
(Connection connection, Object argument) StatementRunnableWithResult.run
(Connection connection, Object argument) ModifierConstructorDescriptionQuery
(Connection connection, String queryText, boolean returnGeneratedKeys) Query
(Connection connection, String queryText, String[] columnNames)