| java.lang.Object org.ow2.easybeans.tests.common.ejbs.base.transaction.ContainerTransaction org.ow2.easybeans.tests.common.ejbs.base.transaction.ContainerTransactionNever
All known Subclasses: org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionNeverRollback, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacNeverApp01, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacNeverApp02, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionNever, org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.transaction.SLSBContainerTransactionNever, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionNeverApp, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacNeverRuntime,
ContainerTransactionNever | public class ContainerTransactionNever extends ContainerTransaction (Code) | | Inserts the table test in two databases using the annotation @TransactionAttribute(NEVER) in all methods.
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
getRollbackOnly | public boolean getRollbackOnly() throws TransactionException(Code) | | Calls the method EJBContext.getRollbackOnly().
true if the rollback only is set, false otherwise. throws: TransactionException - if an IllegalStateException occurs. |
insertCorrectFirstErrorSecond | public void insertCorrectFirstErrorSecond(String db1, String db2) throws Exception(Code) | | Inserts the table test in the first database and makes an incorrect query in the second database.
Parameters: db1 - the name of the first database. Parameters: db2 - the name of the second database. throws: Exception - if an error occurs. |
insertCorrectTableInBothDB | public void insertCorrectTableInBothDB(String db1, String db2) throws Exception(Code) | | Inserts the table test in both database using the never transaction attribute.
Parameters: db1 - the name of the first database. Parameters: db2 - the name of the second database. throws: Exception - if an error occurs. |
setRollbackOnly | public void setRollbackOnly(String dbName1, String dbName2) throws Exception, NamingException(Code) | | Calls the method SessionContext.setRollbackOnly().
Parameters: dbName1 - the first database where the table should be inserted. Parameters: dbName2 - the second database where the table should be inserted. throws: Exception - if an error occurs. |
|
|