| org.ow2.easybeans.tests.common.ejbs.stateful.beanmanaged.transaction.ItfBeanManagedTransaction
All known Subclasses: org.ow2.easybeans.tests.common.ejbs.stateful.beanmanaged.transaction.SFSBBeanManagedTransaction,
ItfBeanManagedTransaction | public interface ItfBeanManagedTransaction (Code) | | Inserts a table called Test in the database.Creates differents combinations
of transaction 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. |
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.
|
dropTableWithBeginCommitTransaction | void dropTableWithBeginCommitTransaction() throws SQLException, NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException, HeuristicMixedException, TransactionException(Code) | | Deletes the table called test. The bean transaction is started and
commited in this method.
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. |
dropTableWithoutBeginTransaction | void dropTableWithoutBeginTransaction() throws SQLException, NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException, HeuristicMixedException, TransactionException(Code) | | Deletes the table called test. The transaction is not open, but it is
commited in this method.
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. |
getTransactionStatus | int getTransactionStatus() throws SystemException(Code) | | Obtains the bean transaction status.
the bean transaction status. throws: SystemException - if an unexpected error occurs. |
insertTableWithBeginCommitTransaction | void insertTableWithBeginCommitTransaction() throws SQLException, NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException, HeuristicMixedException, TransactionException(Code) | | Inserts the table called test. The transaction is open and commited in
this method.
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 a rollback was made. |
insertTableWithBeginRollback | void insertTableWithBeginRollback() throws SQLException, NamingException, SystemException, NotSupportedException(Code) | | Inserts the table called test. The transaction is openned and after
insert the table, an rollback is called.
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. |
insertTableWithNestedTrans | void insertTableWithNestedTrans() throws SQLException, NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException, HeuristicMixedException, TransactionException(Code) | | Creates the table called test.The bean transaction is started and
commited in this method and, also, there is a nested transaction.
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. |
insertTableWithNewTransaction | void insertTableWithNewTransaction() throws SQLException, NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException, HeuristicMixedException, TransactionException(Code) | | Creates the table called test.A new transaction is created and it makes
the begin and commit transaction. The bean transaction is not started or
commited in this method.
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. |
insertTableWithoutCommitTransaction | void insertTableWithoutCommitTransaction() throws SQLException, NamingException, SystemException, NotSupportedException(Code) | | Inserts the table called test. The transaction is open, but it is not
commited in this method.
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. |
startup | void startup(boolean callOnlyTransaction, String dbName) throws NamingException, SQLException(Code) | | Gets the transaction.
Parameters: callOnlyTransaction - if only the transactions must be called. Parameters: dbName - the database where the table is inserted. throws: SQLException - if a database error occurs. throws: NamingException - if a lookup error occurs. |
|
|