|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Calendar
java.util.GregorianCalendar
org.jpox.sco.GregorianCalendar
public class GregorianCalendar
A mutable second-class GregorianCalendar object.
| Field Summary |
|---|
| Fields inherited from class java.util.GregorianCalendar |
|---|
AD, BC |
| Fields inherited from class java.util.Calendar |
|---|
AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET |
| Constructor Summary | |
|---|---|
GregorianCalendar(StateManager ownerSM,
java.lang.String fieldName)
Creates a GregorianCalendar object that represents the time at which it was allocated. |
|
| Method Summary | |
|---|---|
void |
add(int field,
int amount)
Method to add an amount to a field |
void |
attachCopy(java.lang.Object value)
Method to return an attached version for the passed StateManager and field, using the passed value. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
void |
detach(FetchPlanState state)
Method to detach this object. |
java.lang.Object |
detachCopy(FetchPlanState state)
Method to return a detached copy of the value object. |
java.lang.String |
getFieldName()
Accessor for the field name |
java.lang.Object |
getOwner()
Accessor for the owner. |
void |
makeDirty()
Utility to mark the object as dirty |
void |
makeTransient(FetchPlanState state)
Method to make transient this object. |
void |
roll(int field,
boolean up)
Method to roll a field by 1. |
void |
roll(int field,
int amount)
Method to roll the value of a field |
void |
runReachability(java.util.Set reachables)
Method to run reachability on this SCO. |
void |
setFirstDayOfWeek(int value)
Method to set the first day of the week |
void |
setGregorianChange(java.util.Date date)
Method to set the gregorian cal change date |
void |
setLenient(boolean lenient)
Method to set the lenient setting |
void |
setMinimalDaysInFirstWeek(int value)
Method to set the minimal days in the week |
void |
setTimeInMillis(long millis)
Method to set the time in milliseconds |
void |
setTimeZone(java.util.TimeZone value)
Method to set the timezone |
void |
setValueFrom(java.lang.Object o,
boolean forUpdate)
Mutator for the value, using an object. |
void |
unsetOwner()
Utility to unset the owner. |
protected java.lang.Object |
writeReplace()
The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream. |
| Methods inherited from class java.util.GregorianCalendar |
|---|
computeFields, computeTime, equals, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, hashCode, isLeapYear |
| Methods inherited from class java.util.Calendar |
|---|
after, before, clear, clear, compareTo, complete, get, getAvailableLocales, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, internalGet, isLenient, isSet, set, set, set, set, setTime, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GregorianCalendar(StateManager ownerSM,
java.lang.String fieldName)
ownerSM - the owning objectfieldName - the owning field name| Method Detail |
|---|
public void setValueFrom(java.lang.Object o,
boolean forUpdate)
setValueFrom in interface SCOo - The ObjectforUpdate - Whether to update the datastore with this valuepublic void unsetOwner()
unsetOwner in interface SCOpublic java.lang.Object getOwner()
getOwner in interface SCOpublic java.lang.String getFieldName()
getFieldName in interface SCOpublic void makeDirty()
public void runReachability(java.util.Set reachables)
runReachability in interface SCOreachables - List of StateManagers reachable so farpublic void makeTransient(FetchPlanState state)
makeTransient in interface SCOstate - State for the fetchplan processpublic void detach(FetchPlanState state)
detach in interface SCOstate - State for the detachment processpublic java.lang.Object detachCopy(FetchPlanState state)
detachCopy in interface SCOstate - State for detachment process
public void attachCopy(java.lang.Object value)
attachCopy in interface SCOvalue - The new valuepublic java.lang.Object clone()
Mutable second-class Objects are required to provide a public clone method in order to allow for copying PersistenceCapable objects. In contrast to Object.clone(), this method must not throw a CloneNotSupportedException.
clone in interface SCOclone in class java.util.GregorianCalendar
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamException
public void add(int field,
int amount)
add in class java.util.GregorianCalendarfield - The fieldamount - The amount to add
public void roll(int field,
boolean up)
roll in class java.util.GregorianCalendarfield - The fieldup - The whether to move it up
public void roll(int field,
int amount)
roll in class java.util.GregorianCalendarfield - The fieldamount - The amount to roll bypublic void setGregorianChange(java.util.Date date)
setGregorianChange in class java.util.GregorianCalendardate - The new change datepublic void setFirstDayOfWeek(int value)
setFirstDayOfWeek in class java.util.Calendarvalue - The first day of the weekpublic void setLenient(boolean lenient)
setLenient in class java.util.Calendarlenient - Whether it is lenientpublic void setMinimalDaysInFirstWeek(int value)
setMinimalDaysInFirstWeek in class java.util.Calendarvalue - The minimal days in the weekpublic void setTimeInMillis(long millis)
setTimeInMillis in class java.util.Calendarmillis - The new time in millisecspublic void setTimeZone(java.util.TimeZone value)
setTimeZone in class java.util.GregorianCalendarvalue - The new timezone
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||