public interface DatabaseConnection
DatabaseAccessor
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commits all changes made since the previous commit or rollback.
|
Connection |
getJdbcConnection()
Returns the JDBC connection wrapped by this object.
|
void |
rollback()
Undoes all changes made in the current transaction.
|
void |
setAutoCommit(boolean autoCommit)
Convenience method to set autocommit mode on the database connection without the annoying SQLException.
|
Connection getJdbcConnection()
void setAutoCommit(boolean autoCommit)
autoCommit
- true
to enable auto-commit mode, false
to disable itDataAccessException
- a RuntimeException wrapping any underlying SQLException.void commit()
DataAccessException
- a RuntimeException wrapping any underlying SQLException.setAutoCommit(boolean)
void rollback()
DataAccessException
- a RuntimeException wrapping any underlying SQLException.setAutoCommit(boolean)
Copyright © 2002-2019 Atlassian. All Rights Reserved.