|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a rowing session.
Method Summary | |
void |
cancel()
Cancels a rowing session. |
void |
delete()
Deletes a rowing session. |
RowingSessionSnapshot |
getData()
Returns a snapshot of a rowing session |
Date |
getDate()
Returns the date (and time) of a rowing session |
Integer |
getId()
Returns the primary key of a rowing session. |
RowingSessionLevel |
getLevel()
Returns the level of a rowing session |
ISerializableComparator |
getNaturalComparator()
Returns the natural Comparator for rowing sessions, in which rowing sessions are compared by date, state, type, level, and id, with that respective weighting. |
RowingSessionState |
getState()
Returns the state of a rowing session. |
RowingSessionType |
getType()
Returns the type of a rowing session |
void |
publish()
Publishes a rowing session. |
void |
setData(RowingSessionSnapshot data)
Sets the date, level and type of a rowing session if the rowing session is TENATIVE. |
void |
setDate(Date date)
Edits the date (and time) of a rowing session. |
void |
setLevel(RowingSessionLevel level)
Edits the level of a rowing session. |
void |
setType(RowingSessionType type)
Edits the type of a rowing session. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
public ISerializableComparator getNaturalComparator() throws java.rmi.RemoteException
public RowingSessionSnapshot getData() throws java.rmi.RemoteException
public void setData(RowingSessionSnapshot data) throws java.rmi.RemoteException, RowingSessionStateException
public Integer getId() throws java.rmi.RemoteException
public RowingSessionState getState() throws java.rmi.RemoteException
public void publish() throws java.rmi.RemoteException, RowingSessionStateException
RowingSessionStateException
- if a non-tenative rowing session is
published.public void cancel() throws java.rmi.RemoteException, RowingSessionStateException
RowingSessionStateException
- if a tenative rowing session is
cancelled.public void delete() throws java.rmi.RemoteException, javax.ejb.RemoveException, RowingSessionStateException
This is a safe version of the standard EJBObject.remove() operation. It checks that the session is tenative before removing it. Application code should always delete, rather than remove, rowing sessions. (The remove operation is required for testing.)
RowingSessionStateException
- if a non-tenative rowing session is
deleted.javax.ebj.EJBObject.remove()
public Date getDate() throws java.rmi.RemoteException
public void setDate(Date date) throws java.rmi.RemoteException, RowingSessionStateException
RowingSessionStateException
- if the edited session is not
in the TENATIVE state.RowingSessionState
public RowingSessionLevel getLevel() throws java.rmi.RemoteException
public void setLevel(RowingSessionLevel level) throws java.rmi.RemoteException, RowingSessionStateException
public RowingSessionType getType() throws java.rmi.RemoteException
public void setType(RowingSessionType type) throws java.rmi.RemoteException, RowingSessionStateException
|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |