com.clra.rowing
Class RowingSessionSnapshot
java.lang.Object
|
+--com.clra.rowing.RowingSessionSnapshot
- All Implemented Interfaces:
- Comparable, Serializable
- public class RowingSessionSnapshot
- extends Object
- implements Comparable, Serializable
A snapshot of the data held by rowing session. If more than one property
of a rowing session needs to be read or written, it may be more efficient
to read or write all properties, in order to minimize network transit
times.
- Version:
- $Revision: 1.2 $ $Date: 2002/02/18 18:04:57 $
- Author:
- Rick Hall
- See Also:
- Serialized Form
RowingSessionSnapshot
public RowingSessionSnapshot(Integer id,
RowingSessionState st,
Date dt,
RowingSessionLevel lv,
RowingSessionType tp)
getId
public Integer getId()
- Returns the primary key of a rowing session. The id is immutable
after a rowing session is created.
getState
public RowingSessionState getState()
- Returns the state of a rowing session. The state of a rowing
session can not be set directly. It is changed as a side-effect
of other operations on a rowing session.
getDate
public Date getDate()
- Returns the date (and time) of a rowing session
getLevel
public RowingSessionLevel getLevel()
- Returns the level of a rowing session
getType
public RowingSessionType getType()
- Returns the type of a rowing session
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object