SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.util
Interface Proxy

All Known Subinterfaces:
ChangeTracker, ProxyCollection, ProxyMap
All Known Implementing Classes:
ProxyArrayList, ProxyDate, ProxyHashMap, ProxyHashMapCT, ProxyHashSet, ProxyHashSetCT, ProxyHashtable, ProxyHashtableCT, ProxyLinkedList, ProxyProperties, ProxyTreeMap, ProxyTreeMapCT, ProxyTreeSet, ProxyTreeSetCT, ProxyVector

public interface Proxy

Interface implemented by all proxy types to allow setting and nulling of their owning JDO instance.

All concrete proxy classes should be public and have publc no-args constructors so that tools that work via reflection on persistent instances can manipulate them.


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.
 

Method Detail

setOwner

public 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. Set to null to indicate that the proxy is no longer managed.


getOwner

public java.lang.Object getOwner()
Return the owning object.


getOwnerFieldName

public java.lang.String getOwnerFieldName()
Return the owning field name.


isOwner

public 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.


SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

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