| java.lang.Object java.util.Date com.triactive.jdo.sco.Date
Constructor Summary | |
public | Date(Object owner, String fieldName, java.util.Date date) Creates a Date object that represents the same time as the
given java.util.Date. |
Method Summary | |
public void | applyUpdates() | public Object | clone() 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. | public String | getFieldName() | public Object | getOwner() | public void | makeDirty() | public void | setDate(int date) Sets the day of the month of this Date object to the
specified value. | public void | setHours(int hours) Sets the hour of this Date object to the specified value. | public void | setMinutes(int minutes) Sets the minutes of this Date object to the specified value. | public void | setMonth(int month) Sets the month of this date to the specified value. | public void | setSeconds(int seconds) Sets the seconds of this Date to the specified value. | public void | setTime(long time) | public void | setYear(int year) Sets the year of this Date object to be the specified
value plus 1900. | public void | unsetOwner() | protected Object | writeReplace() Replaces the object to be serialized with a java.util.Date object. |
Date | public Date(Object owner, String fieldName, java.util.Date date)(Code) | | Creates a Date object that represents the same time as the
given java.util.Date. Assigns owning object and field name.
Parameters: owner - the owning object Parameters: fieldName - the owning field name Parameters: date - the initial date value |
applyUpdates | public void applyUpdates()(Code) | | |
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.
|
makeDirty | public void makeDirty()(Code) | | |
setDate | public void setDate(int date)(Code) | | Sets the day of the month of this Date object to the
specified value. This Date object is modified so that
it represents a point in time within the specified day of the
month, with the year, month, hour, minute, and second the same
as before, as interpreted in the local time zone. If the date
was April 30, for example, and the date is set to 31, then it
will be treated as if it were on May 1, because April has only
30 days.
Parameters: date - the day of the month value between 1-31. See Also: java.util.Calendar |
setHours | public void setHours(int hours)(Code) | | Sets the hour of this Date object to the specified value.
This Date object is modified so that it represents a point
in time within the specified hour of the day, with the year, month,
date, minute, and second the same as before, as interpreted in the
local time zone.
Parameters: hours - the hour value. See Also: java.util.Calendar |
setMinutes | public void setMinutes(int minutes)(Code) | | Sets the minutes of this Date object to the specified value.
This Date object is modified so that it represents a point
in time within the specified minute of the hour, with the year, month,
date, hour, and second the same as before, as interpreted in the
local time zone.
Parameters: minutes - the value of the minutes. See Also: java.util.Calendar |
setMonth | public void setMonth(int month)(Code) | | Sets the month of this date to the specified value. This
Date object is modified so that it represents a point
in time within the specified month, with the year, date, hour,
minute, and second the same as before, as interpreted in the
local time zone. If the date was October 31, for example, and
the month is set to June, then the new date will be treated as
if it were on July 1, because June has only 30 days.
Parameters: month - the month value between 0-11. See Also: java.util.Calendar |
setSeconds | public void setSeconds(int seconds)(Code) | | Sets the seconds of this Date to the specified value.
This Date object is modified so that it represents a
point in time within the specified second of the minute, with
the year, month, date, hour, and minute the same as before, as
interpreted in the local time zone.
Parameters: seconds - the seconds value. See Also: java.util.Calendar |
setTime | public void setTime(long time)(Code) | | |
setYear | public void setYear(int year)(Code) | | Sets the year of this Date object to be the specified
value plus 1900. This Date object is modified so
that it represents a point in time within the specified year,
with the month, date, hour, minute, and second the same as
before, as interpreted in the local time zone. (Of course, if
the date was February 29, for example, and the year is set to a
non-leap year, then the new date will be treated as if it were
on March 1.)
Parameters: year - the year value. See Also: java.util.Calendar |
unsetOwner | public void unsetOwner()(Code) | | |
writeReplace | protected Object writeReplace() throws ObjectStreamException(Code) | | Replaces the object to be serialized with a java.util.Date object.
Invoked by the serialization mechanism to obtain an alternative object
to be used when writing an object to the stream.
The Date to be serialized instead of this object. |
|
|