|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Calendar java.util.GregorianCalendar org.apache.openjpa.util.ProxyGregorianCalendar
public class ProxyGregorianCalendar
Extension of the Calendar
type that calls the dirty
method on its owning persistence capable instance on modification. This
class does not support modification via any deprecated method of the
date class.
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 | |
---|---|
ProxyGregorianCalendar()
|
|
ProxyGregorianCalendar(int year,
int month,
int dayOfMonth)
|
|
ProxyGregorianCalendar(int year,
int month,
int dayOfMonth,
int hourOfDay,
int minute)
|
|
ProxyGregorianCalendar(int year,
int month,
int dayOfMonth,
int hourOfDay,
int minute,
int second)
|
|
ProxyGregorianCalendar(Locale aLocale)
|
|
ProxyGregorianCalendar(TimeZone zone)
|
|
ProxyGregorianCalendar(TimeZone zone,
Locale aLocale)
|
Method Summary | |
---|---|
void |
add(int field,
int amount)
|
protected void |
computeFields()
|
Object |
copy(Object orig)
Return an unproxied copy of the given instance. |
ChangeTracker |
getChangeTracker()
Return the change tracker for this proxy, or null if none. |
OpenJPAStateManager |
getOwner()
Return the owning object. |
int |
getOwnerField()
Return the owning field index. |
ProxyCalendar |
newInstance(TimeZone timeZone)
Return a new instance of this calendar type. |
void |
roll(int field,
boolean up)
|
void |
roll(int field,
int amount)
|
void |
setFirstDayOfWeek(int value)
|
void |
setLenient(boolean lenient)
|
void |
setMinimalDaysInFirstWeek(int value)
|
void |
setOwner(OpenJPAStateManager sm,
int field)
Reset the state of the proxy, and set the owning instance of the proxy and the name of the field it is assigned to. |
void |
setTimeInMillis(long millis)
|
void |
setTimeZone(TimeZone value)
|
protected Object |
writeReplace()
|
Methods inherited from class java.util.GregorianCalendar |
---|
clone, computeTime, equals, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, hashCode, isLeapYear, setGregorianChange |
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 ProxyGregorianCalendar()
public ProxyGregorianCalendar(int year, int month, int dayOfMonth)
public ProxyGregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute)
public ProxyGregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second)
public ProxyGregorianCalendar(Locale aLocale)
public ProxyGregorianCalendar(TimeZone zone)
public ProxyGregorianCalendar(TimeZone zone, Locale aLocale)
Method Detail |
---|
public ProxyCalendar newInstance(TimeZone timeZone)
ProxyCalendar
newInstance
in interface ProxyCalendar
public void setOwner(OpenJPAStateManager sm, int field)
Proxy
setOwner
in interface Proxy
public OpenJPAStateManager getOwner()
Proxy
getOwner
in interface Proxy
public int getOwnerField()
Proxy
getOwnerField
in interface Proxy
public ChangeTracker getChangeTracker()
Proxy
getChangeTracker
in interface Proxy
public Object copy(Object orig)
Proxy
copy
in interface Proxy
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
protected void computeFields()
computeFields
in class GregorianCalendar
public void setTimeInMillis(long millis)
setTimeInMillis
in class Calendar
public void add(int field, int amount)
add
in class GregorianCalendar
public void roll(int field, boolean up)
roll
in class GregorianCalendar
public void roll(int field, int amount)
roll
in class GregorianCalendar
public void setTimeZone(TimeZone value)
setTimeZone
in class GregorianCalendar
public void setLenient(boolean lenient)
setLenient
in class Calendar
public void setFirstDayOfWeek(int value)
setFirstDayOfWeek
in class Calendar
public void setMinimalDaysInFirstWeek(int value)
setMinimalDaysInFirstWeek
in class Calendar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |