public class MultiPluginTransaction extends Transaction
COMMITTED, OPENED, ROLLEDBACK| Constructor and Description |
|---|
MultiPluginTransaction()
Constructor
|
MultiPluginTransaction(Plugin plugin)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit the transaction
|
void |
decrementNbTransactionsOpened()
Decrement the number of transactions by one.
|
void |
executeStatement()
Execute the current statement
|
int |
getNbTransactionsOpened()
Get the number of transactions that plugins tried to open simultaneously
on the same pool.
|
void |
incrementNbTransactionsOpened()
Increment the number of transactions by one.
|
PreparedStatement |
prepareStatement(String strSQL)
Gets a prepared statement
|
void |
rollback(Exception e)
Rollback the transaction
|
beginTransaction, finalize, getConnection, getStatement, getStatus, rollbackpublic MultiPluginTransaction()
public MultiPluginTransaction(Plugin plugin)
plugin - The plugin owner of the transactionpublic int getNbTransactionsOpened()
public void incrementNbTransactionsOpened()
getNbTransactionsOpened() for more details.public void decrementNbTransactionsOpened()
getNbTransactionsOpened() for more details.public PreparedStatement prepareStatement(String strSQL) throws SQLException
prepareStatement in class TransactionstrSQL - The SQL statementSQLException - If an SQL error occurspublic void executeStatement()
throws SQLException
executeStatement in class TransactionSQLException - If an SQL error occurspublic void commit()
commit in class Transactionpublic void rollback(Exception e)
rollback in class Transactione - The exception that cause the rollbackCopyright © 2016 City of Paris. All rights reserved.