|
|||||||||
| Home >> All >> com >> clra >> [ web overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.clra.web
Class EnrollmentSet

java.lang.Objectcom.clra.web.EnrollmentSet
- All Implemented Interfaces:
- IEventList
- public class EnrollmentSet
- extends java.lang.Object
- implements IEventList
- extends java.lang.Object
A JSP bean that provides ordered lists of EnrollmentViews. This class is a thin wrapper around calls to RowingUtils. In the future, it might add further value by caching and sorting views on the client side.
FIXME: this class is basically a list, not a set. A set hides duplicates, whereas a list does not. Rename this class.
In the current implementation, a list is created on the fly whenever a JSP is displayed, and the list is tossed after the page is written. For lists of 60 or so items, a page will update in 2 - 3 seconds when the app and web servers are lightly loaded. This is adequate performance, since most lists will be restricted by month, and therefore will contain roughly 30 items.
- Version:
- $Revision: 1.3 $ $Date: 2003/02/26 03:38:46 $
| Field Summary | |
private static java.lang.String |
base
|
private java.util.Calendar |
calendar
Holds the value of the month and year for restricted iterations |
private java.lang.Integer |
memberId
The primary key of the member to whom this enrollment applies |
private java.lang.Boolean |
restricted
Holds the restriction flag |
private static org.apache.log4j.Category |
theLog
|
| Fields inherited from interface com.clra.web.IEventList |
AN_COMPARATOR, AN_ISRESTRICTED, AN_MONTH, AN_YEAR |
| Constructor Summary | |
EnrollmentSet()
Creates an invalid EnrollmentSet, but required by Bean contract |
|
EnrollmentSet(java.lang.Integer memberId,
java.lang.Integer month)
Prepares a restricted iterator for the specified month of the current year. |
|
EnrollmentSet(java.lang.Integer memberId,
java.lang.Integer month,
java.lang.Integer year)
Prepares a restricted iterator for the specified month and year |
|
| Method Summary | |
com.clra.util.ISerializableComparator |
getComparator()
Stubbed method that returns null |
java.util.Iterator |
getIterator()
Returns an iterator constructed to the current setting |
java.lang.Integer |
getMemberId()
Returns the primary key of the member to whom this enrollment applies |
java.lang.Integer |
getMonth()
Returns the month used by restricted iterations |
java.lang.Boolean |
getRestricted()
Returns a flag that indicates whether an iterator will be restricted to events that are scheduled to start within a particular month and year. |
java.lang.Integer |
getYear()
Returns the year used by restricted iterations |
void |
setComparator(com.clra.util.ISerializableComparator comparator)
Stubbed method that does nothing |
void |
setMemberId(java.lang.Integer memberId)
Sets the member to whom this enrollment applies |
void |
setMonth(java.lang.Integer month)
Sets the month used by restricted iterations |
void |
setRestricted(java.lang.Boolean restricted)
Sets whether an iterator will be restricted to events that start within a particular month and year. |
void |
setYear(java.lang.Integer year)
Sets the year used by restricted iterations |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
base
private static final java.lang.String base
theLog
private static final org.apache.log4j.Category theLog
memberId
private java.lang.Integer memberId
- The primary key of the member to whom this enrollment applies
restricted
private java.lang.Boolean restricted
- Holds the restriction flag
calendar
private final java.util.Calendar calendar
- Holds the value of the month and year for restricted iterations
| Constructor Detail |
EnrollmentSet
public EnrollmentSet()
throws WebException
- Creates an invalid EnrollmentSet, but required by Bean contract
EnrollmentSet
public EnrollmentSet(java.lang.Integer memberId, java.lang.Integer month) throws WebException
- Prepares a restricted iterator for the specified month of the
current year.
EnrollmentSet
public EnrollmentSet(java.lang.Integer memberId, java.lang.Integer month, java.lang.Integer year) throws WebException
- Prepares a restricted iterator for the specified month and year
| Method Detail |
getMemberId
public java.lang.Integer getMemberId()
- Returns the primary key of the member to whom this enrollment applies
setMemberId
public void setMemberId(java.lang.Integer memberId)
- Sets the member to whom this enrollment applies
getRestricted
public java.lang.Boolean getRestricted()
- Returns a flag that indicates whether an iterator will be restricted
to events that are scheduled to start within a particular month
and year.
- Specified by:
getRestrictedin interfaceIEventList
setRestricted
public void setRestricted(java.lang.Boolean restricted)
- Sets whether an iterator will be restricted to events that start
within a particular month and year. A null values does not change
the current restriction.
- Specified by:
setRestrictedin interfaceIEventList
getMonth
public java.lang.Integer getMonth()
- Returns the month used by restricted iterations
- Specified by:
getMonthin interfaceIEventList
setMonth
public void setMonth(java.lang.Integer month)
- Sets the month used by restricted iterations
- Specified by:
setMonthin interfaceIEventList
getYear
public java.lang.Integer getYear()
- Returns the year used by restricted iterations
- Specified by:
getYearin interfaceIEventList
setYear
public void setYear(java.lang.Integer year)
- Sets the year used by restricted iterations
- Specified by:
setYearin interfaceIEventList
getComparator
public com.clra.util.ISerializableComparator getComparator()
- Stubbed method that returns null
- Specified by:
getComparatorin interfaceIEventList
setComparator
public void setComparator(com.clra.util.ISerializableComparator comparator)
- Stubbed method that does nothing
- Specified by:
setComparatorin interfaceIEventList
getIterator
public java.util.Iterator getIterator() throws WebException
- Returns an iterator constructed to the current setting
- Specified by:
getIteratorin interfaceIEventList
|
|||||||||
| Home >> All >> com >> clra >> [ web overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.clra.web.EnrollmentSet