public class TransactionState extends Object
| Constructor and Description |
|---|
TransactionState(com.j256.ormlite.support.ConnectionSource connectionSource)
Construct a TransactionState instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
doCommit()
Commit
|
void |
doRollback()
Rollback
|
com.j256.ormlite.support.DatabaseConnection |
getDatabaseConnection() |
void |
release()
Reset everything to initial state
|
public TransactionState(com.j256.ormlite.support.ConnectionSource connectionSource)
throws SQLException
connectionSource - ConnectionSource to be used for database operationsSQLException - if ConnectionSource error occurspublic com.j256.ormlite.support.DatabaseConnection getDatabaseConnection()
public void release()
public void doCommit()
throws SQLException
SQLExceptionpublic void doRollback()
throws SQLException
SQLExceptionThis documentation is licensed by Andrew Bowley under the GPLv3 License.