|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.server.ejb.SessionBeanImpl oracle.jbo.server.ejb.sb.ServiceBean oracle.jbo.server.ejb.sb.BeanManagedServiceBean
public class BeanManagedServiceBean
BaseClass for deploying an appmodule service methods as stateful bean session bean with bean managed transaction. This class adds convenience method for subclasses to demarcate a transaction.
Field Summary |
---|
Fields inherited from class oracle.jbo.server.ejb.SessionBeanImpl |
---|
mApplicationModule |
Constructor Summary | |
---|---|
BeanManagedServiceBean()
|
Method Summary | |
---|---|
void |
beginTransaction()
Starts the bean transaction using the javax.transaction.UserTransaction interface and acquires the jdbc connection from the datasource. |
void |
commitTransaction()
Posts the changes in bc4j cache, commits the transaction associated with the bean and then releases the jdbc connection. |
protected TransactionHandlerFactory |
createTransactionHandlerFactory()
|
protected boolean |
isTransactionManagedByBean()
|
void |
rollbackTransaction()
Rollbacks the changes in bc4j cache, rollbacks the transaction associated with the bean and then release the jdbc connection. |
Methods inherited from class oracle.jbo.server.ejb.sb.ServiceBean |
---|
createApplicationModule, createApplicationModule, isJboBean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanManagedServiceBean()
Method Detail |
---|
public void beginTransaction() throws javax.transaction.NotSupportedException, javax.transaction.SystemException
javax.transaction.NotSupportedException
javax.transaction.SystemException
SessionBeanImpl.connectToDataSource()
public void commitTransaction() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, javax.transaction.SystemException, java.lang.SecurityException, java.lang.IllegalStateException, JboException
javax.transaction.RollbackException
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
javax.transaction.SystemException
java.lang.SecurityException
java.lang.IllegalStateException
JboException
SessionBeanImpl.disconnectFromDataSource()
public void rollbackTransaction() throws javax.transaction.SystemException, java.lang.SecurityException, java.lang.IllegalStateException, JboException
javax.transaction.SystemException
java.lang.SecurityException
java.lang.IllegalStateException
JboException
SessionBeanImpl.disconnectFromDataSource()
protected TransactionHandlerFactory createTransactionHandlerFactory()
createTransactionHandlerFactory
in class ServiceBean
protected final boolean isTransactionManagedByBean()
isTransactionManagedByBean
in class SessionBeanImpl
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |