|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Date java.sql.Date org.apache.openjpa.util.ProxySQLDate
public class ProxySQLDate
Extension of the Date
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 | |
---|---|
ProxySQLDate()
|
|
ProxySQLDate(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.Date |
---|
getHours, getMinutes, getSeconds, toString, valueOf |
Methods inherited from class java.util.Date |
---|
after, before, clone, compareTo, equals, getDate, getDay, getMonth, getTime, getTimezoneOffset, getYear, hashCode, parse, toGMTString, toLocaleString, UTC |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProxySQLDate()
public ProxySQLDate(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 Date
public void setMonth(int val)
setMonth
in class Date
public void setDate(int val)
setDate
in class Date
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 Date
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |