| java.util.GregorianCalendar org.jpox.sco.GregorianCalendar
All known Subclasses: org.jpox.sco.GregorianCalendarJDK14,
GregorianCalendar | public class GregorianCalendar extends java.util.GregorianCalendar implements SCO(Code) | | A mutable second-class GregorianCalendar object.
version: $Revision: 1.27 $ |
GregorianCalendar | public GregorianCalendar(StateManager ownerSM, String fieldName)(Code) | | Creates a GregorianCalendar object that represents the time at which it was allocated.
Assigns owning object and field name.
Parameters: ownerSM - the owning object Parameters: fieldName - the owning field name |
add | public void add(int field, int amount)(Code) | | Method to add an amount to a field
Parameters: field - The field Parameters: amount - The amount to add |
attachCopy | public void attachCopy(Object value)(Code) | | Method to return an attached version for the passed StateManager and
field, using the passed value.
Parameters: value - The new value |
clone | public Object clone()(Code) | | Creates and returns a copy of this object.
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.
A clone of the object |
detachCopy | public Object detachCopy(FetchPlanState state)(Code) | | Method to return a detached copy of the value object.
Parameters: state - State for detachment process The detached copy |
getFieldName | public String getFieldName()(Code) | | Accessor for the field name
The field name |
getOwner | public Object getOwner()(Code) | | Accessor for the owner.
The owner |
getValue | public Object getValue()(Code) | | Accessor for the unwrapped value that we are wrapping.
The unwrapped value |
initialise | public void initialise()(Code) | | Method to initialise the SCO for use.
|
initialise | public void initialise(Object o, boolean forInsert, boolean forUpdate)(Code) | | Method to initialise the SCO from an existing value.
Parameters: o - The Object Parameters: forInsert - Whether the object needs inserting in the datastore with this value Parameters: forUpdate - Whether to update the datastore with this value |
makeDirty | public void makeDirty()(Code) | | Utility to mark the object as dirty
|
roll | public void roll(int field, boolean up)(Code) | | Method to roll a field by 1.
Parameters: field - The field Parameters: up - The whether to move it up |
roll | public void roll(int field, int amount)(Code) | | Method to roll the value of a field
Parameters: field - The field Parameters: amount - The amount to roll by |
setFirstDayOfWeek | public void setFirstDayOfWeek(int value)(Code) | | Method to set the first day of the week
Parameters: value - The first day of the week |
setGregorianChange | public void setGregorianChange(Date date)(Code) | | Method to set the gregorian cal change date
Parameters: date - The new change date |
setLenient | public void setLenient(boolean lenient)(Code) | | Method to set the lenient setting
Parameters: lenient - Whether it is lenient |
setMinimalDaysInFirstWeek | public void setMinimalDaysInFirstWeek(int value)(Code) | | Method to set the minimal days in the week
Parameters: value - The minimal days in the week |
setTimeInMillis | public void setTimeInMillis(long millis)(Code) | | Method to set the time in milliseconds
Parameters: millis - The new time in millisecs |
setTimeZone | public void setTimeZone(TimeZone value)(Code) | | Method to set the timezone
Parameters: value - The new timezone |
unsetOwner | public void unsetOwner()(Code) | | Utility to unset the owner.
|
writeReplace | protected Object writeReplace() throws ObjectStreamException(Code) | | The writeReplace method is called when ObjectOutputStream is preparing to
write the object to the stream. The ObjectOutputStream checks whether the
class defines the writeReplace method. If the method is defined, the
writeReplace method is called to allow the object to designate its
replacement in the stream. The object returned should be either of the
same type as the object passed in or an object that when read and
resolved will result in an object of a type that is compatible with all
references to the object.
the replaced object throws: ObjectStreamException - |
|
|