org.persvr.data
Class LazyPropertyId

java.lang.Object
  extended by org.persvr.data.Identification<java.lang.Object>
      extended by org.persvr.data.LazyPropertyId
All Implemented Interfaces:
TargetRetriever<java.lang.Object>
Direct Known Subclasses:
DeferredField

public class LazyPropertyId
extends Identification<java.lang.Object>

Author:
Kris Zyp

Field Summary
 
Fields inherited from class org.persvr.data.Identification
source, subObjectId
 
Constructor Summary
LazyPropertyId(DataSource source, java.lang.String objectId, java.lang.String field)
           
LazyPropertyId(ObjectId parentId, java.lang.String field)
           
 
Method Summary
 java.lang.String getField()
           
 java.lang.Object resolveTarget()
          Implementations should implement this to resolve a target when it has not been loaded yet
 java.lang.String toString()
           
 
Methods inherited from class org.persvr.data.Identification
getSource, getSubObjectId, getTarget, idForRelativeString, idForString, isForeign, isLoaded, relativePath, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyPropertyId

public LazyPropertyId(ObjectId parentId,
                      java.lang.String field)

LazyPropertyId

public LazyPropertyId(DataSource source,
                      java.lang.String objectId,
                      java.lang.String field)
Method Detail

resolveTarget

public java.lang.Object resolveTarget()
Description copied from class: Identification
Implementations should implement this to resolve a target when it has not been loaded yet

Specified by:
resolveTarget in class Identification<java.lang.Object>
Returns:
object referred to by identification

getField

public java.lang.String getField()

toString

public java.lang.String toString()
Overrides:
toString in class Identification<java.lang.Object>