|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| 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.StatefulSessionBeanImpl
public abstract class StatefulSessionBeanImpl
| Field Summary |
|---|
| Fields inherited from class oracle.jbo.server.ejb.SessionBeanImpl |
|---|
mApplicationModule |
| Constructor Summary | |
|---|---|
StatefulSessionBeanImpl() |
|
| Method Summary | |
|---|---|
void |
afterBegin()Implementation of the SessionSynchronization interface. |
void |
afterCompletion(boolean committed)Implementation of the SessionSynchronization interface. |
void |
beforeCompletion()Implementation of the SessionSynchronization interface. |
void |
beginTransaction()If the bean is managing the transaction, 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() |
void |
resume() |
void |
rollbackTransaction()Rollbacks the changes in bc4j cache, rollbacks the transaction associated with the bean and then release the jdbc connection. |
void |
suspend() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatefulSessionBeanImpl()
| Method Detail |
|---|
public void afterBegin()
throws javax.ejb.EJBException
connectToDataSource for acquiring the jdbc connection.javax.ejb.EJBException
public void beforeCompletion()
throws javax.ejb.EJBException
postChanges. If a JboException is thrown by postChanges the transaction is marked for rollback and the exception is wrapped in java.rmi.RemoteException. The RemoteException is then thrown back to the container.javax.ejb.EJBExceptionTransaction.postChanges()
public void afterCompletion(boolean committed)
throws javax.ejb.EJBException
disconnectFromDataSource for releasing the jdbc connection.javax.ejb.EJBExceptionprotected TransactionHandlerFactory createTransactionHandlerFactory()
createTransactionHandlerFactory in class SessionBeanImplpublic void suspend()
public void resume()
public void beginTransaction()
throws javax.transaction.NotSupportedException,
javax.transaction.SystemException,
JboException
javax.transaction.NotSupportedExceptionjavax.transaction.SystemExceptionJboExceptionSessionBeanImpl.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.RollbackExceptionjavax.transaction.HeuristicMixedExceptionjavax.transaction.HeuristicRollbackExceptionjavax.transaction.SystemExceptionjava.lang.SecurityExceptionjava.lang.IllegalStateExceptionJboExceptionSessionBeanImpl.disconnectFromDataSource()
public void rollbackTransaction()
throws javax.transaction.SystemException,
java.lang.SecurityException,
java.lang.IllegalStateException,
JboException
javax.transaction.SystemExceptionjava.lang.SecurityExceptionjava.lang.IllegalStateExceptionJboExceptionSessionBeanImpl.disconnectFromDataSource()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||