| org.apache.ojb.ejb.pb.PBBaseBeanImpl org.apache.ojb.ejb.pb.RollbackBean
RollbackBean | public class RollbackBean extends PBBaseBeanImpl implements SessionBean(Code) | | This is an session bean implementation used for testing different "rollback"
scenarios for the PB-api. The most important directive when using the PB-api within
EJB beans is in any case to close the used PB instance after use within the bean method.
Have a look in
PBBaseBeanImpl .
author: Armin Waibel version: $Id: RollbackBean.java,v 1.1.2.3 2005/12/21 22:21:38 tomdz Exp $ |
RollbackBean | public RollbackBean()(Code) | | |
deleteObjects | public void deleteObjects(List objects)(Code) | | |
getArticleCount | public int getArticleCount()(Code) | | |
getPersonCount | public int getPersonCount()(Code) | | |
rollbackBreakIteration | public void rollbackBreakIteration(List objectsToStore)(Code) | | We use several OJB services, start to iterate a query result and do
an odmg-tx.abort call.
|
rollbackClientWrongInput | public void rollbackClientWrongInput(List articles, List persons)(Code) | | This test method expect an invalid object in the person list,
so that OJB cause an internal error.
|
rollbackOtherBeanUsing | public void rollbackOtherBeanUsing(List articles, List persons)(Code) | | First stores all articles, persons form
the lists using ArticleManager and PersonManager
beans after doing that, a Exception will be thrown.
|
rollbackOtherBeanUsing_2 | public void rollbackOtherBeanUsing_2(ArticleVO article, List persons)(Code) | | First store a list of persons then we
store the article using a failure store
method in ArticleManager.
|
rollbackPassInvalidObject | public void rollbackPassInvalidObject(List objects)(Code) | | One of the objects passed by the client will cause an exception.
|
rollbackSetRollbackAndThrowException | public void rollbackSetRollbackAndThrowException(List objects)(Code) | | We do call ctx.setRollbackOnly and do odmg-tx.abort() call.
|
rollbackSetRollbackOnly | public void rollbackSetRollbackOnly(List objects)(Code) | | We do call ctx.setRollbackOnly and do odmg-tx.abort() call.
|
rollbackThrowException | public void rollbackThrowException(List objects)(Code) | | The bean will throw an exception before the method ends.
|
|
|