|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.clra.web.SessionView
Read-only information about a session. A thin-wrapper around RowingSessionSnapshot, with some String properties useful in JSP's.
Constructor Summary | |
SessionView()
Constructs an invalid instance. |
|
SessionView(RowingSessionSnapshot rss)
|
Method Summary | |
int |
compareTo(Object o)
Orders views by the natural comparator for rowing sessions. |
boolean |
equals(Object o)
Two sessions are equal iff they their natural comparator returns equal |
RowingSessionSnapshot |
getData()
|
Date |
getDate()
|
String |
getDateAsString()
Returns the date as a formatted string, using the current format |
String |
getDateFormatSpec()
Returns the specification for the rowing date is formatted as a string. |
Integer |
getId()
|
String |
getLevel()
|
String |
getState()
|
String |
getType()
|
int |
hashCode()
Session objects are hashed by id's |
void |
setData(RowingSessionSnapshot rss)
Deprecated |
void |
setDateFormatSpec(String spec)
Specifies how the date should be formatted as a string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SessionView()
public SessionView(RowingSessionSnapshot rss)
Method Detail |
public void setData(RowingSessionSnapshot rss)
public RowingSessionSnapshot getData()
public Integer getId()
public Date getDate()
public void setDateFormatSpec(String spec)
SimpleDateFormat
public String getDateFormatSpec()
SimpleDateFormat
public String getDateAsString()
public String getLevel()
public String getType()
public String getState()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
o
- A session object.ClassCastException
- if o is not a session object.
|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |