SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.util
Class ProxyDate

java.lang.Object
  |
  +--java.util.Date
        |
        +--com.solarmetric.rd.kodo.util.ProxyDate
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, Proxy, java.io.Serializable

public class ProxyDate
extends java.util.Date
implements Proxy

Extension of the Date type that calls the PersistenceCapable.jdoMakeDirty(java.lang.String) method on its owning persistence capable instance on modification. This class does not support modification via any deprecated method of the date class.

See Also:
Serialized Form

Constructor Summary
ProxyDate()
           
ProxyDate(long time)
           
 
Method Summary
 java.lang.Object getOwner()
          Return the owning object.
 java.lang.String getOwnerFieldName()
          Return the owning field name.
 boolean isOwner(java.lang.Object pc, java.lang.String fieldName)
          Return true if the given object and field name match the owner of this proxy.
 void setOwner(java.lang.Object pc, java.lang.String fieldName)
          Set the owning JDO instance of the proxy and the name of the field it is assigned to.
 void setTime(long millis)
           
protected  java.lang.Object writeReplace()
           
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, toString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyDate

public ProxyDate()

ProxyDate

public ProxyDate(long time)
Method Detail

setOwner

public void setOwner(java.lang.Object pc,
                     java.lang.String fieldName)
Description copied from interface: Proxy
Set the owning JDO instance of the proxy and the name of the field it is assigned to. Set to null to indicate that the proxy is no longer managed.

Specified by:
setOwner in interface Proxy

getOwner

public java.lang.Object getOwner()
Description copied from interface: Proxy
Return the owning object.

Specified by:
getOwner in interface Proxy

getOwnerFieldName

public java.lang.String getOwnerFieldName()
Description copied from interface: Proxy
Return the owning field name.

Specified by:
getOwnerFieldName in interface Proxy

isOwner

public boolean isOwner(java.lang.Object pc,
                       java.lang.String fieldName)
Description copied from interface: Proxy
Return true if the given object and field name match the owner of this proxy.

Specified by:
isOwner in interface Proxy

setTime

public void setTime(long millis)
Overrides:
setTime in class java.util.Date

writeReplace

protected java.lang.Object writeReplace()
                                 throws java.io.ObjectStreamException
java.io.ObjectStreamException

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.