br.usp.ime.xpusp.om
Class Year
java.lang.Object
|
+--org.apache.turbine.om.BaseObject
|
+--br.usp.ime.xpusp.om.BaseYear
|
+--br.usp.ime.xpusp.om.Year
- All Implemented Interfaces:
- org.apache.turbine.om.Persistent, org.apache.turbine.om.Retrievable, java.io.Serializable
- public class Year
- extends BaseYear
- implements org.apache.turbine.om.Persistent
An Year represents a whole season poling for a given department.
The year status defines
if this is a passed/poled year, if the year is poling, etc. Check the getStatus()
method
description for more information on year status.
There is a rule with the Year's status.
- [0,num_departements] - Years with status (
CREATED
|| POLING
|| CLOSED
|| SOLVING
)
- [0,n] - Years with status
FINISHED
- See Also:
- Serialized Form
Field Summary |
static int |
CLOSED
Status code to indicate an Year is finished pooling. |
static int |
CREATED
Status code to indicate an Year that has just been created |
static int |
FINISHED
Status code to indicate an Year has finished generating it's solution. |
static int |
POOLING
Status code to indicate an Year that is in pooling stage (professors/students are voting) |
static int |
SOLVING
Status code to indicate an Year is generating it's solution. |
Fields inherited from class br.usp.ime.xpusp.om.BaseYear |
aDepartment, alreadyInSave, closed, collPoolResultss, collSchedules, created, department_code, finished, lastPoolResultssCriteria, lastSchedulesCriteria, pooling, solving, status, year, year_id |
Fields inherited from class org.apache.turbine.om.BaseObject |
errMsg, is_new, modified, NEW_ID, primaryKey |
Constructor Summary |
Year()
|
Method Summary |
static int |
getClosedStatus()
Convenience method to get the status for CLOSED state |
static int |
getCreatedStatus()
Convenience method to get the status for CREATED state |
static int |
getFinishedStatus()
Convenience method to get the status for FINISHED state |
static int |
getPoolingStatus()
Convenience method to get the status for POOLING state |
static int |
getSolvingStatus()
Convenience method to get the status for SOLVING state |
int |
getStatus()
Get the status of this year instance. |
Methods inherited from class br.usp.ime.xpusp.om.BaseYear |
addPoolResults, addSchedule, copy, getClosed, getCreated, getDepartment, getDepartmentCode, getFinished, getPooling, getPoolResultss, getPoolResultss, getPoolResultssJoinCourse, getPrimaryKey, getQueryKey, getSchedules, getSchedules, getSchedulesJoinDiscipline, getSchedulesJoinPeriod, getSchedulesJoinProfessor, getSolving, getYear, getYearId, initPoolResultss, initSchedules, save, save, save, setClosed, setCreated, setDepartment, setDepartmentCode, setDepartmentCode, setDepartmentKey, setFinished, setPooling, setPrimaryKey, setPrimaryKey, setQueryKey, setSolving, setStatus, setYear, setYearId, setYearId |
Methods inherited from class org.apache.turbine.om.BaseObject |
, equals, equals, getByName, getByPeerName, getByPosition, getPrimaryKeyAsBigDecimal, getPrimaryKeyAsInt, getPrimaryKeyAsLong, getPrimaryKeyAsString, hashCode, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey, setPrimaryKey, setPrimaryKey |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, registerNatives, toString, wait, wait, wait |
Methods inherited from interface org.apache.turbine.om.Persistent |
getPrimaryKey, isModified, isNew, save, setModified, setNew, setPrimaryKey, setPrimaryKey |
CREATED
public static final int CREATED
- Status code to indicate an Year that has just been created
POOLING
public static final int POOLING
- Status code to indicate an Year that is in pooling stage (professors/students are voting)
CLOSED
public static final int CLOSED
- Status code to indicate an Year is finished pooling. No more votes alowed. No solution yet.
SOLVING
public static final int SOLVING
- Status code to indicate an Year is generating it's solution.
FINISHED
public static final int FINISHED
- Status code to indicate an Year has finished generating it's solution.
Year
public Year()
getStatus
public int getStatus()
- Get the status of this year instance.
The values of status are defined by constants in this class.
- Overrides:
getStatus
in class BaseYear
- Following copied from class:
br.usp.ime.xpusp.om.BaseYear
- Returns:
- int
getCreatedStatus
public static int getCreatedStatus()
- Convenience method to get the status for CREATED state
- Returns:
CREATED
getPoolingStatus
public static int getPoolingStatus()
- Convenience method to get the status for POOLING state
- Returns:
POOLING
getClosedStatus
public static int getClosedStatus()
- Convenience method to get the status for CLOSED state
- Returns:
CLOSED
getSolvingStatus
public static int getSolvingStatus()
- Convenience method to get the status for SOLVING state
- Returns:
SOLVING
getFinishedStatus
public static int getFinishedStatus()
- Convenience method to get the status for FINISHED state
- Returns:
FINISHED