|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Date
java.sql.Time
org.apache.openjpa.util.ProxyTime
public class ProxyTime
Extension of the Time 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.
| Constructor Summary | |
|---|---|
ProxyTime()
|
|
ProxyTime(long time)
|
|
| Method Summary | |
|---|---|
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. |
ProxyDate |
newInstance()
Return a new instance of this date type. |
void |
setDate(int val)
|
void |
setHours(int val)
|
void |
setMinutes(int val)
|
void |
setMonth(int val)
|
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 |
setSeconds(int val)
|
void |
setTime(long millis)
|
void |
setYear(int val)
|
protected Object |
writeReplace()
|
| Methods inherited from class java.sql.Time |
|---|
getDate, getDay, getMonth, getYear, toString, valueOf |
| Methods inherited from class java.util.Date |
|---|
after, before, clone, compareTo, equals, getHours, getMinutes, getSeconds, getTime, getTimezoneOffset, hashCode, parse, toGMTString, toLocaleString, UTC |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyTime()
public ProxyTime(long time)
| Method Detail |
|---|
public ProxyDate newInstance()
ProxyDate
newInstance in interface ProxyDate
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 Proxypublic void setYear(int val)
setYear in class Timepublic void setMonth(int val)
setMonth in class Timepublic void setDate(int val)
setDate in class Timepublic void setHours(int val)
setHours in class Datepublic void setMinutes(int val)
setMinutes in class Datepublic void setSeconds(int val)
setSeconds in class Datepublic void setTime(long millis)
setTime in class Time
protected Object writeReplace()
throws ObjectStreamException
ObjectStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||