|
||||||||||
| 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.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 Proxypublic OpenJPAStateManager getOwner()
Proxy
getOwner in interface Proxypublic int getOwnerField()
Proxy
getOwnerField in interface Proxypublic ChangeTracker getChangeTracker()
Proxy
getChangeTracker in interface Proxypublic Object copy(Object orig)
Proxy
copy in interface Proxy
protected Object writeReplace()
throws ObjectStreamException
ObjectStreamExceptionprotected void computeFields()
computeFields in class GregorianCalendarpublic 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 GregorianCalendarpublic void setTimeZone(TimeZone value)
setTimeZone in class GregorianCalendarpublic void setLenient(boolean lenient)
setLenient in class Calendarpublic void setFirstDayOfWeek(int value)
setFirstDayOfWeek in class Calendarpublic void setMinimalDaysInFirstWeek(int value)
setMinimalDaysInFirstWeek in class Calendar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||