| java.lang.Object org.objectweb.jonas.jtests.beans.bank.ManagerSF
ManagerSF | public class ManagerSF implements SessionBean,SessionSynchronization(Code) | | Manager Implementation
author: Philippe Durieux |
Method Summary | |
public void | afterBegin() | public void | afterCompletion(boolean committed) | public void | beforeCompletion() | public boolean | checkAccount(int a) Check an existing Account
Parameters: a - num of the Account. | public boolean | checkAll() | public void | createAll(int nb) | public void | createRollbackOnly(int i) | public void | delAccount(int d1) | public void | ejbActivate() A container invokes this method when the instance is taken out of
the pool of available instances to become associated with a specific
EJB object. | public void | ejbCreate(int ival) Create a session. | public void | ejbCreate(int ival, boolean prefetch) Create a session. | public void | ejbPassivate() A container invokes this method on an instance before the instance
becomes disassociated with a specific EJB object. | public void | ejbRemove() A container invokes this method before it ends the life of the session object. | public void | move(int d, int c, int v, int delay) move form an Account to another one. | public int | readBalance(int a) read balance for this Account
Parameters: a - num of the Account. | public int | readBalance() | public int | readBalanceTx(int a) | public void | reinitAll() reinit all created accounts to their initial value. | public void | setSessionContext(SessionContext ctx) Set the associated session context. |
ejbContext | SessionContext ejbContext(Code) | | |
history | protected static Logger history(Code) | | |
initialValue | int initialValue(Code) | | |
afterBegin | public void afterBegin()(Code) | | |
afterCompletion | public void afterCompletion(boolean committed)(Code) | | |
beforeCompletion | public void beforeCompletion()(Code) | | |
checkAccount | public boolean checkAccount(int a) throws RemoteException(Code) | | Check an existing Account
Parameters: a - num of the Account. true if OK. |
checkAll | public boolean checkAll() throws RemoteException(Code) | | Check all existing Accounts
true if all are OK. |
createAll | public void createAll(int nb) throws RemoteException, CreateException(Code) | | create a set of Accounts
Parameters: nb - nb of Accounts created. |
delAccount | public void delAccount(int d1) throws RemoteException, RemoveException(Code) | | Remove an Account
Parameters: d1 - num of the Account. |
ejbActivate | public void ejbActivate()(Code) | | A container invokes this method when the instance is taken out of
the pool of available instances to become associated with a specific
EJB object.
|
ejbCreate | public void ejbCreate(int ival) throws CreateException(Code) | | Create a session.
Parameters: ival - initial balance value for new accounts. throws: CreateException - Failure to create a session EJB object. |
ejbCreate | public void ejbCreate(int ival, boolean prefetch) throws CreateException(Code) | | Create a session.
Parameters: ival - initial balance value for new accounts. throws: CreateException - Failure to create a session EJB object. |
ejbPassivate | public void ejbPassivate()(Code) | | A container invokes this method on an instance before the instance
becomes disassociated with a specific EJB object.
|
ejbRemove | public void ejbRemove()(Code) | | A container invokes this method before it ends the life of the session object.
This happens as a result of a client's invoking a remove operation, or when a
container decides to terminate the session object after a timeout.
This method is called with no transaction context.
throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
move | public void move(int d, int c, int v, int delay) throws RemoteException(Code) | | move form an Account to another one.
Parameters: d - num of the debit Account. Parameters: c - num of the credit Account. Parameters: v - value to be moved Parameters: d - delay in second for the operation. |
readBalance | public int readBalance(int a) throws RemoteException(Code) | | read balance for this Account
Parameters: a - num of the Account. balance |
reinitAll | public void reinitAll() throws RemoteException(Code) | | reinit all created accounts to their initial value.
|
setSessionContext | public void setSessionContext(SessionContext ctx)(Code) | | Set the associated session context. The container calls this method
after the instance creation.
The enterprise Bean instance should store the reference to the context
object in an instance variable.
This method is called with no transaction context.
Parameters: ctx - A SessionContext interface for the instance. throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
|
|