Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.impl.model.jdo » [javadoc | source]
org.apache.jdo.impl.model.jdo
class: UnresolvedRelationshipHelper [javadoc | source]
java.lang.Object
   java.util.AbstractMap
      java.util.HashMap
         org.apache.jdo.impl.model.jdo.UnresolvedRelationshipHelper

All Implemented Interfaces:
    Map, Serializable, Cloneable

A helper class to manage unresolved relationship information. The class maps the mappedBy name to all JDOField instances using this name (which might denote fields from different classes) as the mapped by name. To ease the access the list of JDOField instances is organized as a map using the declaring JDOClass as key.
Fields inherited from java.util.HashMap:
DEFAULT_INITIAL_CAPACITY,  MAXIMUM_CAPACITY,  DEFAULT_LOAD_FACTOR,  table,  size,  threshold,  loadFactor,  modCount
Fields inherited from java.util.AbstractMap:
keySet,  values
Method from org.apache.jdo.impl.model.jdo.UnresolvedRelationshipHelper Summary:
register,   remove,   resolve
Methods from java.util.HashMap:
addEntry,   capacity,   clear,   clone,   containsKey,   containsValue,   createEntry,   entrySet,   get,   getEntry,   hash,   indexFor,   init,   isEmpty,   keySet,   loadFactor,   newEntryIterator,   newKeyIterator,   newValueIterator,   put,   putAll,   remove,   removeEntryForKey,   removeMapping,   resize,   size,   transfer,   values
Methods from java.util.AbstractMap:
access$000,   clear,   clone,   containsKey,   containsValue,   entrySet,   equals,   get,   hashCode,   isEmpty,   keySet,   put,   putAll,   remove,   size,   toString,   values
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.impl.model.jdo.UnresolvedRelationshipHelper Detail:
 public synchronized  void register(String mappedByName,
    JDOField jdoField) 
    Stores an unresolved relationship entry. The specified JDOField uses the specified field name in its mappedBy clause. The specified mappedByName denotes the field on the owning side of the relationship.
 public  void remove(String mappedByName,
    JDOField jdoField) 
    Removes the specified JDOField from this unresolved relationship helper.
 public synchronized JDOField resolve(String mappedByName,
    JDOClass jdoClass) 
    Look for a JDOField in the unresolved relationship entry having the specified mappedByName as its mappedBy name. The JDOField must be declared by the specified jdoClass instance. This allows the owning side to find the JDOField using the name of the owning side in its mappedBy clause.