public class EncCmpBean extends Object implements javax.ejb.EntityBean
| Modifier and Type | Field and Description |
|---|---|
javax.ejb.EntityContext |
ejbContext |
String |
firstName |
String |
lastName |
int |
primaryKey |
| Constructor and Description |
|---|
EncCmpBean() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Integer |
ejbCreate(String name)
Maps to EncCmpHome.create
|
void |
ejbLoad()
A container invokes this method to instruct the
instance to synchronize its state by loading it state from the
underlying database.
|
void |
ejbPassivate()
A container invokes this method on an instance before the instance
becomes disassociated with a specific EJB object.
|
void |
ejbPostCreate(String name) |
void |
ejbRemove()
A container invokes this method before it removes the EJB object
that is currently associated with the instance.
|
void |
ejbStore()
A container invokes this method to instruct the
instance to synchronize its state by storing it to the underlying
database.
|
void |
lookupBooleanEntry() |
void |
lookupByteEntry() |
void |
lookupCharacterEntry() |
void |
lookupDoubleEntry() |
void |
lookupEntityBean() |
void |
lookupFloatEntry() |
void |
lookupIntegerEntry() |
void |
lookupJMSConnectionFactory() |
void |
lookupLongEntry() |
void |
lookupPersistenceContext() |
void |
lookupPersistenceUnit() |
void |
lookupResource() |
void |
lookupShortEntry() |
void |
lookupStatefulBean() |
void |
lookupStatefulBusinessLocal() |
void |
lookupStatefulBusinessRemote() |
void |
lookupStatelessBean() |
void |
lookupStatelessBusinessLocal() |
void |
lookupStatelessBusinessRemote() |
void |
lookupStringEntry() |
void |
setEntityContext(javax.ejb.EntityContext ctx)
Set the associated entity context.
|
void |
unsetEntityContext()
Unset the associated entity context.
|
public int primaryKey
public String firstName
public String lastName
public javax.ejb.EntityContext ejbContext
public Integer ejbCreate(String name) throws javax.ejb.CreateException
name - javax.ejb.CreateExceptionEncCmpHome.create(java.lang.String)public void ejbPostCreate(String name) throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void lookupEntityBean()
throws TestFailureException
TestFailureExceptionpublic void lookupStatefulBean()
throws TestFailureException
TestFailureExceptionpublic void lookupStatelessBean()
throws TestFailureException
TestFailureExceptionpublic void lookupStatelessBusinessLocal()
throws TestFailureException
TestFailureExceptionpublic void lookupStatelessBusinessRemote()
throws TestFailureException
TestFailureExceptionpublic void lookupStatefulBusinessLocal()
throws TestFailureException
TestFailureExceptionpublic void lookupStatefulBusinessRemote()
throws TestFailureException
TestFailureExceptionpublic void lookupStringEntry()
throws TestFailureException
TestFailureExceptionpublic void lookupDoubleEntry()
throws TestFailureException
TestFailureExceptionpublic void lookupLongEntry()
throws TestFailureException
TestFailureExceptionpublic void lookupFloatEntry()
throws TestFailureException
TestFailureExceptionpublic void lookupIntegerEntry()
throws TestFailureException
TestFailureExceptionpublic void lookupShortEntry()
throws TestFailureException
TestFailureExceptionpublic void lookupBooleanEntry()
throws TestFailureException
TestFailureExceptionpublic void lookupByteEntry()
throws TestFailureException
TestFailureExceptionpublic void lookupCharacterEntry()
throws TestFailureException
TestFailureExceptionpublic void lookupResource()
throws TestFailureException
TestFailureExceptionpublic void lookupJMSConnectionFactory()
throws TestFailureException
TestFailureExceptionpublic void lookupPersistenceUnit()
throws TestFailureException
TestFailureExceptionpublic void lookupPersistenceContext()
throws TestFailureException
TestFailureExceptionpublic void ejbLoad()
throws javax.ejb.EJBException,
RemoteException
ejbLoad in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void setEntityContext(javax.ejb.EntityContext ctx)
throws javax.ejb.EJBException,
RemoteException
setEntityContext in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void unsetEntityContext()
throws javax.ejb.EJBException,
RemoteException
unsetEntityContext in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbStore()
throws javax.ejb.EJBException,
RemoteException
ejbStore in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbRemove()
throws javax.ejb.RemoveException,
javax.ejb.EJBException,
RemoteException
ejbRemove in interface javax.ejb.EntityBeanjavax.ejb.RemoveExceptionjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbActivate()
throws javax.ejb.EJBException,
RemoteException
ejbActivate in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbPassivate()
throws javax.ejb.EJBException,
RemoteException
ejbPassivate in interface javax.ejb.EntityBeanjavax.ejb.EJBExceptionRemoteExceptionCopyright © 1999–2017 The Apache Software Foundation. All rights reserved.