CLRA 0.1.2

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

Constructor Summary
RowingSessionSnapshot(Integer id, RowingSessionState st, Date dt, RowingSessionLevel lv, RowingSessionType tp)
           
 
Method Summary
 int compareTo(Object o)
           
 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
 RowingSessionState getState()
          Returns the state of a rowing session.
 RowingSessionType getType()
          Returns the type of a rowing session
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowingSessionSnapshot

public RowingSessionSnapshot(Integer id,
                             RowingSessionState st,
                             Date dt,
                             RowingSessionLevel lv,
                             RowingSessionType tp)
Method Detail

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

CLRA 0.1.2