br.usp.ime.xpusp.om
Class Period
java.lang.Object
|
+--org.apache.turbine.om.BaseObject
|
+--br.usp.ime.xpusp.om.BasePeriod
|
+--br.usp.ime.xpusp.om.Period
- All Implemented Interfaces:
- org.apache.turbine.om.Persistent, org.apache.turbine.om.Retrievable, java.io.Serializable
- public class Period
- extends BasePeriod
- implements org.apache.turbine.om.Persistent
The skeleton for this class was autogenerated by Torque on:
[Mon Feb 25 21:49:03 GMT-03:00 2002]
You should add additional methods to this class to meet the
application requirements. This class will only be generated as
long as it does not already exist in the output directory.
- See Also:
- Serialized Form
Fields inherited from class org.apache.turbine.om.BaseObject |
errMsg, is_new, modified, NEW_ID, primaryKey |
Method Summary |
(package private) static void |
()
|
static java.util.Date |
getDayOfWeek(int dow)
Utility method to fetch a base date for a given day of week |
Methods inherited from class br.usp.ime.xpusp.om.BasePeriod |
addProfessorPeriod, addSchedule, copy, getEnd, getPeriodId, getPrimaryKey, getProfessorPeriods, getProfessorPeriods, getProfessorPeriodsJoinProfessor, getQueryKey, getSchedules, getSchedules, getSchedulesJoinDiscipline, getSchedulesJoinProfessor, getSchedulesJoinYear, getStart, initProfessorPeriods, initSchedules, save, save, save, setEnd, setPeriodId, setPeriodId, setPrimaryKey, setPrimaryKey, setQueryKey, setStart |
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 |
SUNDAY
public static final int SUNDAY
MONDAY
public static final int MONDAY
TUESDAY
public static final int TUESDAY
WEDNESDAY
public static final int WEDNESDAY
THURSDAY
public static final int THURSDAY
FRIDAY
public static final int FRIDAY
SATURDAY
public static final int SATURDAY
DOW
public static final java.util.Date[] DOW
- This defines the dates used by period.
Position 0 is the first sunday on jan 1970
Position 1 is the day after and so forth
Period
public Period()
static void ()
getDayOfWeek
public static java.util.Date getDayOfWeek(int dow)
- Utility method to fetch a base date for a given day of week
- Parameters:
dow
- the day of week you want the date for.
(0 - 6, 0=Sunday 1=Monday 2=Tuesday 3=Wednesday 4=Thursday 5=Friday 6=Saturday) Or just use the constants provided by this class ie MONDAY
- Returns:
- a Date representing 0:00 of that day of the week or null if dow is wrong (interval [0,6])