|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.ejb.AbstractEntityBean
christophedelory.betty.ejb.EventBean
public abstract class EventBean
The entity bean definition of an event in a championship's phase.
EventDetails
,
Serialized FormField Summary |
---|
Fields inherited from class christophedelory.ejb.AbstractEntityBean |
---|
context |
Constructor Summary | |
---|---|
EventBean()
|
Method Summary | |
---|---|
Object |
ejbCreate(String id,
LocalPhase dbPhase)
Creates an instance of this entity bean. |
void |
ejbPostCreate(String id,
LocalPhase dbPhase)
Allows this entity bean instance to fully initialize itself. |
abstract LocalBase |
getBase()
Returns the base EJB object attached to this EJB object. |
Date |
getCreationDate()
Returns the creation date of this EJB object. |
String |
getCreationUserId()
Returns the identifier of the user having created this EJB object. |
abstract Date |
getDate()
Returns the event's date. |
abstract String |
getId()
Returns the object identifier. |
abstract LocalLocation |
getLocation()
Returns the event's location. |
abstract LocalPhase |
getPhase()
Returns the enclosing championship's phase. |
abstract LocalModel |
getScoreModel()
Returns the associated score processing model. |
abstract Date |
getUpdateDate()
Returns the update date of this EJB object. |
abstract String |
getUpdateUserId()
Returns the identifier of the user having performed the last update on this EJB object. |
abstract void |
setBase(LocalBase dbBase)
Initializes the associated EJB object. |
abstract void |
setDate(Date date)
Initializes the event's date. |
abstract void |
setId(String id)
Initializes the object identifier. |
abstract void |
setLocation(LocalLocation location)
Initializes the event's location. |
abstract void |
setPhase(LocalPhase phase)
Initializes the enclosing championship's phase. |
abstract void |
setScoreModel(LocalModel dbModel)
Initializes the associated score processing model. |
abstract void |
setUpdateDate(Date date)
Initializes the update date of this EJB object. |
abstract void |
setUpdateUserId(String userId)
Initializes the identifier of the user having performed the last update on 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 |
---|
public EventBean()
Method Detail |
---|
public abstract String getId()
DbIdEntity
getId
in interface DbIdEntity
null
.DbIdEntity.setId(String)
public abstract void setId(String id)
DbIdEntity
setId
in interface DbIdEntity
id
- an object identifier. Shall not be null
.DbIdEntity.getId()
public abstract Date getDate()
null
.
EJBException
- if any exception occured during the execution of this method.setDate(java.util.Date)
public abstract void setDate(Date date)
date
- a date. Shall not be null
.
EJBException
- if any exception occured during the execution of this method.getDate()
public abstract LocalModel getScoreModel()
null
.
EJBException
- if any exception occured during the execution of this method.setScoreModel(christophedelory.betty.interfaces.LocalModel)
public abstract void setScoreModel(LocalModel dbModel)
dbModel
- a score processing model. Shall not be null
.
EJBException
- if any exception occured during the execution of this method.getScoreModel()
public abstract LocalPhase getPhase()
null
.
EJBException
- if any exception occured during the execution of this method.setPhase(christophedelory.betty.interfaces.LocalPhase)
public abstract void setPhase(LocalPhase phase)
phase
- a phase. Shall not be null
.
EJBException
- if any exception occured during the execution of this method.getPhase()
public abstract LocalLocation getLocation()
null
.
EJBException
- if any exception occured during the execution of this method.setLocation(christophedelory.betty.interfaces.LocalLocation)
public abstract void setLocation(LocalLocation location)
location
- a location. Shall not be null
.
EJBException
- if any exception occured during the execution of this method.getLocation()
public Date getCreationDate()
DbEntity
getCreationDate
in interface DbEntity
null
.public String getCreationUserId()
DbEntity
getCreationUserId
in interface DbEntity
null
.public abstract Date getUpdateDate()
DbEntity
getUpdateDate
in interface DbEntity
null
.DbEntity.setUpdateDate(java.util.Date)
,
DbEntity.getUpdateUserId()
public abstract void setUpdateDate(Date date)
DbEntity
setUpdateDate
in interface DbEntity
date
- a date. Shall not be null
.DbEntity.getUpdateDate()
,
DbEntity.setUpdateUserId(String)
public abstract String getUpdateUserId()
DbEntity
getUpdateUserId
in interface DbEntity
null
.DbEntity.setUpdateUserId(String)
,
DbEntity.getUpdateDate()
public abstract void setUpdateUserId(String userId)
DbEntity
setUpdateUserId
in interface DbEntity
userId
- a user identifier. Shall not be null
.DbEntity.getUpdateUserId()
,
DbEntity.setUpdateDate(java.util.Date)
public abstract LocalBase getBase()
DbEntity
getBase
in interface DbEntity
null
.DbEntity.setBase(christophedelory.interfaces.LocalBase)
public abstract void setBase(LocalBase dbBase)
DbEntity
setBase
in interface DbEntity
dbBase
- an EJB object. Shall not be null
.DbEntity.getBase()
public Object ejbCreate(String id, LocalPhase dbPhase) throws CreateException
id
- the event identifier. Shall not be null
.dbPhase
- the enclosing phase. Shall not be null
.
null
(as EJB 2.0 spec says for CMP ejbCreate()
methods).
CreateException
- the EJB object creation failed.
EJBException
- if any exception occured during the execution of this method.public void ejbPostCreate(String id, LocalPhase dbPhase) throws CreateException, NamingException
id
- the event identifier. Shall not be null
.dbPhase
- the enclosing phase. Shall not be null
.
CreateException
- the EJB object creation failed.
NamingException
- if a naming exception is encountered.
ClassCastException
- indicates that the code has attempted to cast an object to a subclass of which it is not an instance.
EJBException
- if any exception occured during the execution of this method.
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |