org.persvr.data
Class ObjectPath

java.lang.Object
  extended by org.persvr.data.Identification<java.lang.Object>
      extended by org.persvr.data.ObjectPath
All Implemented Interfaces:
TargetRetriever<java.lang.Object>

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

Author:
Kris Zyp This class represents a select query

Field Summary
 
Fields inherited from class org.persvr.data.Identification
source, subObjectId
 
Constructor Summary
ObjectPath(ObjectId objId, java.util.List<java.lang.Object> pathParts)
           
 
Method Summary
 java.lang.Object getLastPath()
           
 Persistable getSecondToLastTarget()
           
 java.lang.Object getTarget()
          Retrieves the value or object referred to by this identification
static ObjectPath idForObject(DataSource source, java.lang.String subObjectId, java.lang.String path)
           
protected  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, 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

ObjectPath

public ObjectPath(ObjectId objId,
                  java.util.List<java.lang.Object> pathParts)
Method Detail

resolveTarget

protected 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

idForObject

public static ObjectPath idForObject(DataSource source,
                                     java.lang.String subObjectId,
                                     java.lang.String path)

getTarget

public java.lang.Object getTarget()
Description copied from class: Identification
Retrieves the value or object referred to by this identification

Specified by:
getTarget in interface TargetRetriever<java.lang.Object>
Overrides:
getTarget in class Identification<java.lang.Object>
Returns:
object referred to by identification

getSecondToLastTarget

public Persistable getSecondToLastTarget()

getLastPath

public java.lang.Object getLastPath()

toString

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