com.atlassian.jira.database.DatabaseConnection |
A handle to a Database Connection obtained from JIRA's connection pool.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Commits all changes made since the previous commit or rollback.
| |||||||||||
Returns the JDBC connection wrapped by this object.
| |||||||||||
Undoes all changes made in the current transaction.
| |||||||||||
Convenience method to set autocommit mode on the database connection without the annoying SQLException.
|
Commits all changes made since the previous commit or rollback. This method should be used only when auto-commit mode has been disabled.
DataAccessException | a RuntimeException wrapping any underlying SQLException. |
---|
Returns the JDBC connection wrapped by this object.
Undoes all changes made in the current transaction. This method should be used only when auto-commit mode has been disabled. You normally don't need to call this explicitly - instead throwing a RuntimeException will indicate to DatabaseAccessor that you want to rollback.
DataAccessException | a RuntimeException wrapping any underlying SQLException. |
---|
Convenience method to set autocommit mode on the database connection without the annoying SQLException.
autoCommit | true to enable auto-commit mode, false to disable it |
---|
DataAccessException | a RuntimeException wrapping any underlying SQLException. |
---|