Methods Summary |
---|
public void | ejbActivate()No need for us to activate anything in this bean, but we need to
provide an implementation.
System.out.println("ProfileBean activated.");
|
public void | ejbCreate(java.lang.String fname, java.lang.String lname)Create method with name of person.
mFirstName = fname;
mLastName = lname;
|
public void | ejbCreate()Create method (corresponds to each create() method on the
home interface). Nothing to initialize in this case.
System.out.println("Nameless PersonBean created.");
|
public void | ejbLoad()Load bean from persistent store. Container is doing this for us, so
nothing to do here.
|
public void | ejbPassivate()No state to store on passivation (it's all in persistenct storage).
|
public void | ejbPostCreate(java.lang.String fname, java.lang.String lname)Post-creation notification. Nothing to do here, what we need
to provide an implementation.
|
public void | ejbPostCreate()Post-creation notification. Nothing to do here, but we need
to provide an implementation.
System.out.println("PersonBean post-create called.");
|
public void | ejbRemove()Nothing to do on a remove.
|
public void | ejbStore()Store bean to persistent store. Container is doing this, so nothing
to do here, either.
|
public java.lang.String | getFirstName()
return mFirstName;
|
public java.lang.String | getLastName()
return mLastName;
|
public void | setEntityContext(EntityContext context)Get context from container.
mContext = context;
|
public void | unsetEntityContext()Container is removing our context.
mContext = null;
|