Betty v1.1.0

christophedelory.ejb
Class BaseBean

java.lang.Object
  extended by christophedelory.ejb.AbstractEntityBean
      extended by christophedelory.ejb.BaseBean
All Implemented Interfaces:
Serializable, EnterpriseBean, EntityBean

public abstract class BaseBean
extends AbstractEntityBean
implements EntityBean

The entity bean definition of a base object, acting as a super class for other entity beans.

Version:
$Revision: 85 $
Author:
Christophe Delory
See Also:
Serialized Form

Field Summary
 
Fields inherited from class christophedelory.ejb.AbstractEntityBean
context
 
Constructor Summary
BaseBean()
           
 
Method Summary
 Object ejbCreate()
          Creates an instance of this entity bean.
 void ejbPostCreate()
          Allows this entity bean instance to fully initialize itself.
abstract  Date getCreationDate()
          Returns the creation date.
abstract  String getCreationUserId()
          Returns the identifier of the user having created this EJB object.
abstract  void setCreationDate(Date date)
          Initializes the creation date.
abstract  void setCreationUserId(String userId)
          Initializes the identifier of the user having created this EJB object.
 
Methods inherited from class christophedelory.ejb.AbstractEntityBean
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, unsetEntityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EntityBean
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, unsetEntityContext
 

Constructor Detail

BaseBean

public BaseBean()
Method Detail

getCreationDate

public abstract Date getCreationDate()
Returns the creation date.

Returns:
a date. Shall not be null.
Throws:
EJBException - if any exception occured during the execution of this method.
See Also:
setCreationDate(java.util.Date)

setCreationDate

public abstract void setCreationDate(Date date)
Initializes the creation date.

Parameters:
date - a date. Shall not be null.
Throws:
EJBException - if any exception occured during the execution of this method.
See Also:
getCreationDate()

getCreationUserId

public abstract String getCreationUserId()
Returns the identifier of the user having created this EJB object.

Returns:
a user identifier. Shall not be null.
Throws:
EJBException - if any exception occured during the execution of this method.
See Also:
setCreationUserId(String)

setCreationUserId

public abstract void setCreationUserId(String userId)
Initializes the identifier of the user having created this EJB object.

Parameters:
userId - a user identifier. Shall not be null.
Throws:
EJBException - if any exception occured during the execution of this method.
See Also:
getCreationUserId()

ejbCreate

public Object ejbCreate()
                 throws CreateException
Creates an instance of this entity bean.

Returns:
null (as EJB 2.0 spec says for CMP ejbCreate() methods).
Throws:
CreateException - the EJB object creation failed.

ejbPostCreate

public void ejbPostCreate()
                   throws CreateException
Allows this entity bean instance to fully initialize itself.

Throws:
CreateException - the EJB object creation failed.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.