|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 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
public void setYear(int val)
setYear
in class Time
public void setMonth(int val)
setMonth
in class Time
public void setDate(int val)
setDate
in class Time
public void setHours(int val)
setHours
in class Date
public void setMinutes(int val)
setMinutes
in class Date
public void setSeconds(int val)
setSeconds
in class Date
public 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 |