| org.ow2.easybeans.tests.common.ejbs.stateless.beanmanaged.transaction.ItfBeanManagedTransaction
All known Subclasses: org.ow2.easybeans.tests.common.ejbs.stateless.beanmanaged.transaction.SLSBBeanManagedTransaction,
ItfBeanManagedTransaction | public interface ItfBeanManagedTransaction (Code) | | Inserts table test in the database using bean-managed transaction. This class
uses differents combination of begin/commit.
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
Field Summary | |
boolean | CALL_TRANSACTION_ONLY Constants used to say that the table must not be created, only the
transaction is called. | boolean | CREATE_TABLE Constants used to say that the table must be created. | String | TABLE Table used during the tests. |
Method Summary | |
void | deleteTableWithBeginCommit(boolean callOnlyTransaction, String dbName) Deletes the table and makes an UserTransaction.begin() before create the
table and an UserTransaction.commit() after create. | void | deleteTableWithoutBegin(boolean callOnlyTransaction, String dbName) Deletes the table and makes an UserTransaction.commit() after create. | public void | getRollbackOnly() Makes a getRollbackOnly that must to throw en exception. | void | insertTableWithBeginCommit(boolean callOnlyTransaction, String dbName) Inserts the table and makes an UserTransaction.begin() before create the
table and an UserTransaction.commit() after create. | void | insertTableWithoutCommit(boolean callOnlyTransaction, String dbName) Inserts the table and makes an UserTransaction.begin() before create the
table. | public void | setRollbackOnly() Makes a setRollbackOnly that must to throw en exception. |
CALL_TRANSACTION_ONLY | boolean CALL_TRANSACTION_ONLY(Code) | | Constants used to say that the table must not be created, only the
transaction is called.
|
CREATE_TABLE | boolean CREATE_TABLE(Code) | | Constants used to say that the table must be created.
|
deleteTableWithBeginCommit | void deleteTableWithBeginCommit(boolean callOnlyTransaction, String dbName) throws SQLException, NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException, HeuristicMixedException, TransactionException(Code) | | Deletes the table and makes an UserTransaction.begin() before create the
table and an UserTransaction.commit() after create.
Parameters: callOnlyTransaction - says if the table must be created or only theUserTransaction.begin() and UserTransaction.commit() must becalled. Parameters: dbName - database where the table must be inserted. throws: SQLException - if a database error occurs. throws: NamingException - if a lookup error occurs. throws: SystemException - if an unexpected error occurs. throws: NotSupportedException - if the resquest cannot be made. throws: HeuristicRollbackException - if a heuristic decision was made andsome relevant update was rolled back. throws: RollbackException - if the transaction was rolled back instead ofcommitted. throws: HeuristicMixedException - if a heuristic decision was made and somerelevant update was commited and others rolled back. throws: TransactionException - if the transaction must to make a rollback. |
deleteTableWithoutBegin | void deleteTableWithoutBegin(boolean callOnlyTransaction, String dbName) throws SQLException, NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException, HeuristicMixedException(Code) | | Deletes the table and makes an UserTransaction.commit() after create.
Parameters: callOnlyTransaction - says if the table must be created or only theUserTransaction.begin() and UserTransaction.commit() must becalled. Parameters: dbName - database where the table must be inserted. throws: SQLException - if a database error occurs. throws: NamingException - if a lookup error occurs. throws: SystemException - if an unexpected error occurs. throws: NotSupportedException - if the resquest cannot be made. throws: HeuristicRollbackException - if a heuristic decision was made andsome relevant update was rolled back. throws: RollbackException - if the transaction was rolled back instead ofcommitted. throws: HeuristicMixedException - if a heuristic decision was made and somerelevant update was commited and others rolled back. |
insertTableWithBeginCommit | void insertTableWithBeginCommit(boolean callOnlyTransaction, String dbName) throws SQLException, NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException, HeuristicMixedException, TransactionException(Code) | | Inserts the table and makes an UserTransaction.begin() before create the
table and an UserTransaction.commit() after create.
Parameters: callOnlyTransaction - says if the table must be created or only theUserTransaction.begin() and UserTransaction.commit() must becalled. Parameters: dbName - database where the table must be inserted. throws: SQLException - if a database error occurs. throws: NamingException - if a lookup error occurs. throws: SystemException - if an unexpected error occurs. throws: NotSupportedException - if the resquest cannot be made. throws: HeuristicRollbackException - if a heuristic decision was made andsome relevant update was rolled back. throws: RollbackException - if the transaction was rolled back instead ofcommitted. throws: HeuristicMixedException - if a heuristic decision was made and somerelevant update was commited and others rolled back. throws: TransactionException - if the transaction must to make a rollback. |
insertTableWithoutCommit | void insertTableWithoutCommit(boolean callOnlyTransaction, String dbName) throws SQLException, NamingException, SystemException, NotSupportedException(Code) | | Inserts the table and makes an UserTransaction.begin() before create the
table.
Parameters: callOnlyTransaction - says if the table must be created or only theUserTransaction.begin() and UserTransaction.commit() must becalled. Parameters: dbName - database where the table must be inserted. throws: SQLException - if a database error occurs. throws: NamingException - if a lookup error occurs. throws: SystemException - if an unexpected error occurs. throws: NotSupportedException - if the resquest cannot be made. |
|
|