| java.lang.Object org.ow2.easybeans.tests.common.ejbs.stateful.beanmanaged.transaction.SFSBBeanManagedException
SFSBBeanManagedException | public class SFSBBeanManagedException implements ItfBeanManagedException(Code) | | Used to test the Exceptions and the bean-managed transaction.
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
Method Summary | |
public void | emptyMethod() Does nothing. | public void | insertTableWithAppException() Begins a transaction, inserts the data in the database, throws an
application exception and tries to commit. | public void | insertTableWithRuntimeException() Begins a transaction, inserts the data in the database, throws a
runtime exception and tries to rollback. | public void | startup(String dbName) Creates an instance of the tableManager. |
emptyMethod | public void emptyMethod()(Code) | | Does nothing.
|
insertTableWithAppException | public void insertTableWithAppException() throws NamingException, SQLException, NotSupportedException, SystemException, IllegalStateException, SecurityException, HeuristicMixedException, HeuristicRollbackException, RollbackException(Code) | | Begins a transaction, inserts the data in the database, throws an
application exception and tries to commit.
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: IllegalStateException - if the bean is not associated with atransaction. throws: SecurityException - if the bean is not allowed to commit. |
insertTableWithRuntimeException | public void insertTableWithRuntimeException() throws NamingException, SQLException, NotSupportedException, SystemException, IllegalStateException, SecurityException, HeuristicMixedException, HeuristicRollbackException, RollbackException(Code) | | Begins a transaction, inserts the data in the database, throws a
runtime exception and tries to rollback.
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: IllegalStateException - if the bean is not associated with atransaction. throws: SecurityException - if the bean is not allowed to commit. |
|
|