| java.lang.Object lb.ManacEC
ManacEC | public class ManacEC implements EntityBean(Code) | | Manac Implementation
author: Philippe Durieux |
Method Summary | |
public void | credit(int v) | public void | debit(int v) | 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 java.lang.String | ejbCreate(int num, String name, int ib) The Entity bean can define 0 or more ejbCreate methods. | public java.lang.String | ejbCreateWithDefaultName(int num, int ib) The Entity bean can define 0 or more ejbCreate methods. | public void | ejbLoad() A container invokes this method to instruct the instance to synchronize
its state by loading it state from the underlying database. | public void | ejbPassivate() A container invokes this method on an instance before the instance
becomes disassociated with a specific EJB object. | public void | ejbPostCreate(int num, String name, int ib) | public void | ejbPostCreateWithDefaultName(int num, int ib) | public void | ejbRemove() A container invokes this method before it removes the EJB object that is
currently associated with the instance. | public void | ejbStore() A container invokes this method to instruct the instance to synchronize
its state by storing it to the underlying database. | public int | getBalance() | public String | getName() | public void | setEntityContext(EntityContext ctx) Set the associated entity context. | public void | unsetEntityContext() Unset the associated entity context. |
balance | public int balance(Code) | | |
ejbContext | EntityContext ejbContext(Code) | | |
credit | public void credit(int v)(Code) | | credit
|
debit | public void debit(int v)(Code) | | debit
|
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 java.lang.String ejbCreate(int num, String name, int ib) throws CreateException, DuplicateKeyException(Code) | | The Entity bean can define 0 or more ejbCreate methods.
throws: CreateException - Failure to create an entity EJB object. throws: DuplicateKeyException - An object with the same key already exists. |
ejbCreateWithDefaultName | public java.lang.String ejbCreateWithDefaultName(int num, int ib) throws CreateException, DuplicateKeyException(Code) | | The Entity bean can define 0 or more ejbCreate methods.
throws: CreateException - Failure to create an entity EJB object. throws: DuplicateKeyException - An object with the same key already exists. |
ejbLoad | public void ejbLoad()(Code) | | A container invokes this method to instruct the instance to synchronize
its state by loading it state from the underlying database. This method
always executes in the proper transaction context.
throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
ejbPassivate | public void ejbPassivate()(Code) | | A container invokes this method on an instance before the instance
becomes disassociated with a specific EJB object.
|
ejbPostCreate | public void ejbPostCreate(int num, String name, int ib) throws CreateException(Code) | | There must be an ejbPostCreate per ejbCreate method
throws: CreateException - Failure to create an entity EJB object. |
ejbPostCreateWithDefaultName | public void ejbPostCreateWithDefaultName(int num, int ib) throws CreateException(Code) | | There must be an ejbPostCreate per ejbCreate method
throws: CreateException - Failure to create an entity EJB object. |
ejbRemove | public void ejbRemove() throws RemoveException(Code) | | A container invokes this method before it removes the EJB object that is
currently associated with the instance. This method is invoked when a
client invokes a remove operation on the enterprise Bean's home interface
or the EJB object's remote interface. This method transitions the
instance from the ready state to the pool of available instances. This
method is called in the transaction context of the remove operation.
throws: RemoveException - The enterprise Bean does not allow destruction ofthe object. throws: EJBException - - Thrown by the method to indicate a failure causedby a system-level error. |
ejbStore | public void ejbStore()(Code) | | A container invokes this method to instruct the instance to synchronize
its state by storing it to the underlying database. This method always
executes in the proper transaction context.
throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
getBalance | public int getBalance()(Code) | | getBalance
|
setEntityContext | public void setEntityContext(EntityContext ctx)(Code) | | Set the associated entity context. The container invokes this method on
an instance after the instance has been created. This method is called in
an unspecified transaction context.
Parameters: ctx - - An EntityContext interface for the instance. The instanceshould store the reference to the context in an instance variable. throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
unsetEntityContext | public void unsetEntityContext()(Code) | | Unset the associated entity context. The container calls this method
before removing the instance. This is the last method that the container
invokes on the instance. The Java garbage collector will eventually
invoke the finalize() method on the instance. This method is called in an
unspecified transaction context.
throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
|
|