|
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.PlayerScoreBean
public abstract class PlayerScoreBean
The entity bean definition of a player score in a championship's event.
PlayerIdDetails
,
Serialized FormField Summary |
---|
Fields inherited from class christophedelory.ejb.AbstractEntityBean |
---|
context |
Constructor Summary | |
---|---|
PlayerScoreBean()
|
Method Summary | |
---|---|
Object |
ejbCreate(LocalEvent dbEvent,
LocalPlayer dbPlayer,
LocalPhase dbDependencyPhase,
int dependencyPhaseRank)
Creates an instance of this entity bean. |
void |
ejbPostCreate(LocalEvent dbEvent,
LocalPlayer dbPlayer,
LocalPhase dbDependencyPhase,
int dependencyPhaseRank)
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 LocalPhase |
getDependencyPhase()
Returns the dependency phase allowing to choose the player (which is not known now in this case). |
abstract int |
getDependencyPhaseRank()
Returns the rank in the dependency phase allowing to choose the player (which is not known now in this case). |
abstract LocalEvent |
getEvent()
Returns the enclosing championship's event. |
abstract LocalPlayer |
getPlayer()
Returns the associated player. |
abstract int |
getRank()
Returns the current player rank value. |
abstract Integer |
getResult()
Returns the current player result. |
abstract int |
getScore()
Returns the current player score. |
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 |
setDependencyPhase(LocalPhase phase)
Initializes the dependency phase allowing to choose the player (which is not known now in this case). |
abstract void |
setDependencyPhaseRank(int rank)
Initializes the rank in the dependency phase allowing to choose the player (which is not known now in this case). |
abstract void |
setEvent(LocalEvent event)
Initializes the enclosing championship's event. |
abstract void |
setPlayer(LocalPlayer player)
Initializes the associated player. |
abstract void |
setRank(int rank)
Initializes the player rank value. |
abstract void |
setResult(Integer result)
Initializes the player result value. |
abstract void |
setScore(int score)
Initializes the player score value. |
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 PlayerScoreBean()
Method Detail |
---|
public abstract int getScore()
EJBException
- if any exception occured during the execution of this method.setScore(int)
public abstract void setScore(int score)
score
- a score value.
EJBException
- if any exception occured during the execution of this method.getScore()
public abstract int getRank()
EJBException
- if any exception occured during the execution of this method.setRank(int)
public abstract void setRank(int rank)
rank
- a rank value. Shall be strictly greater than 0.
EJBException
- if any exception occured during the execution of this method.getRank()
public abstract Integer getResult()
null
.
EJBException
- if any exception occured during the execution of this method.setResult(Integer)
public abstract void setResult(Integer result)
result
- a result value. May be null
.
EJBException
- if any exception occured during the execution of this method.getResult()
public abstract int getDependencyPhaseRank()
EJBException
- if any exception occured during the execution of this method.setDependencyPhaseRank(int)
,
getDependencyPhase()
public abstract void setDependencyPhaseRank(int rank)
rank
- a rank value. Shall be strictly greater than 0.
EJBException
- if any exception occured during the execution of this method.getDependencyPhaseRank()
,
setDependencyPhase(christophedelory.betty.interfaces.LocalPhase)
public abstract LocalEvent getEvent()
null
.
EJBException
- if any exception occured during the execution of this method.setEvent(christophedelory.betty.interfaces.LocalEvent)
public abstract void setEvent(LocalEvent event)
event
- an event. Shall not be null
.
EJBException
- if any exception occured during the execution of this method.getEvent()
public abstract LocalPlayer getPlayer()
null
if not known now.
EJBException
- if any exception occured during the execution of this method.setPlayer(christophedelory.betty.interfaces.LocalPlayer)
,
getDependencyPhase()
public abstract void setPlayer(LocalPlayer player)
player
- a player. May be null
.
EJBException
- if any exception occured during the execution of this method.getPlayer()
public abstract LocalPhase getDependencyPhase()
null
.
EJBException
- if any exception occured during the execution of this method.setDependencyPhase(christophedelory.betty.interfaces.LocalPhase)
,
getDependencyPhaseRank()
public abstract void setDependencyPhase(LocalPhase phase)
phase
- a phase. May be null
.
EJBException
- if any exception occured during the execution of this method.getDependencyPhase()
,
setDependencyPhaseRank(int)
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(LocalEvent dbEvent, LocalPlayer dbPlayer, LocalPhase dbDependencyPhase, int dependencyPhaseRank) throws CreateException
dbEvent
- the enclosing event. Shall not be null
.dbPlayer
- the associated player. May be null
if not known now.dbDependencyPhase
- the dependency phase, if player is not known now. May be null
only if dbPlayer
is not null
.dependencyPhaseRank
- the rank in the dependency phase. Shall be strictly greater than 0.
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(LocalEvent dbEvent, LocalPlayer dbPlayer, LocalPhase dbDependencyPhase, int dependencyPhaseRank) throws CreateException, NamingException
dbEvent
- the enclosing event. Shall not be null
.dbPlayer
- the associated player. May be null
if not known now.dbDependencyPhase
- the dependency phase, if player is not known now. May be null
only if dbPlayer
is not null
.dependencyPhaseRank
- the rank in the dependency phase. Shall be strictly greater than 0.
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 |