| java.lang.Object org.ow2.easybeans.tests.common.ejbs.base.transaction.ContainerTransaction org.ow2.easybeans.tests.common.ejbs.base.transaction.ContainerTransactionSupports
All known Subclasses: org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionSupportsRollback, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionSupports, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionSupportsRuntime, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacSupportsApp02, org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.transaction.SLSBContainerTransactionSupports, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionSupportsApp, org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacSupportsApp01,
ContainerTransactionSupports | public class ContainerTransactionSupports extends ContainerTransaction (Code) | | Inserts the table test in two databases using the annotation @TransactionAttribute(SUPPORTS) 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.
The behavior depends of if the client has or does not has a transaction.
if the client has a transaction, this method will makes a roll back.
If the client does not have a transaction, this method will not do a roll back.
Parameters: db1 - the first database name. Parameters: db2 - the second database name. 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 supports transaction.
Parameters: db1 - the first database name. Parameters: db2 - the second database name. 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. |
|
|