|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.util.sql.Transaction
fr.paris.lutece.util.sql.MultiPluginTransaction
public class MultiPluginTransaction
Class to represents transactions that are shared between plugins. Such transactions will be shared by each plugin using the same pool than the one that created the transaction.
| Field Summary |
|---|
| Fields inherited from class fr.paris.lutece.util.sql.Transaction |
|---|
COMMITTED, OPENED, ROLLEDBACK |
| Constructor Summary | |
|---|---|
MultiPluginTransaction()
Constructor |
|
MultiPluginTransaction(Plugin plugin)
Constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class fr.paris.lutece.util.sql.Transaction |
|---|
beginTransaction, finalize, getConnection, getStatement, getStatus, rollback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiPluginTransaction()
public MultiPluginTransaction(Plugin plugin)
plugin - The plugin owner of the transaction| Method Detail |
|---|
public 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 statement
SQLException - If an SQL error occurs
public 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 rollback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||