|
|||||||||||
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
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, hashCode, isLeapYear |
Methods inherited from class java.util.Calendar |
after, before, clear, clear, complete, get, getAvailableLocales, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, getTimeZone, 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 nameMethod Detail |
public void setValueFrom(java.lang.Object o, boolean forUpdate)
setValueFrom
in interface SCO
o
- The ObjectforUpdate
- Whether to update the datastore with this valuepublic void unsetOwner()
unsetOwner
in interface SCO
public java.lang.Object getOwner()
getOwner
in interface SCO
public java.lang.String getFieldName()
getFieldName
in interface SCO
public void makeDirty()
public void runReachability(java.util.Set reachables)
runReachability
in interface SCO
reachables
- List of StateManagers reachable so farpublic void makeTransient(FetchPlanState state)
makeTransient
in interface SCO
state
- State for the fetchplan processpublic void detach(FetchPlanState state)
detach
in interface SCO
state
- State for the detachment processpublic java.lang.Object detachCopy(FetchPlanState state)
detachCopy
in interface SCO
state
- State for detachment process
public void attachCopy(java.lang.Object value)
attachCopy
in interface SCO
value
- 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 SCO
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public void add(int field, int amount)
field
- The fieldamount
- The amount to addpublic void roll(int field, boolean up)
field
- The fieldup
- The whether to move it uppublic void roll(int field, int amount)
field
- The fieldamount
- The amount to roll bypublic void setGregorianChange(java.util.Date date)
date
- The new change datepublic void setFirstDayOfWeek(int value)
value
- The first day of the weekpublic void setLenient(boolean lenient)
lenient
- Whether it is lenientpublic void setMinimalDaysInFirstWeek(int value)
value
- The minimal days in the weekpublic void setTimeInMillis(long millis)
millis
- The new time in millisecspublic void setTimeZone(java.util.TimeZone value)
value
- The new timezone
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |