org.persvr.data
Class JsonPath

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

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

Author:
Kris Zyp This class represents a select query

Nested Class Summary
 class JsonPath.PropertyPair
           
 class JsonPath.PropertyValuePair
           
 
Field Summary
 
Fields inherited from class org.persvr.data.Identification
source, subObjectId
 
Constructor Summary
JsonPath()
           
 
Method Summary
 java.lang.Object[] getParameters()
           
 java.util.List<JsonPath.PropertyPair> getPropertyPairs()
           
 java.lang.Object getTarget()
          Retrieves the value or object referred to by this identification
static JsonPath idForObject(DataSource source, java.lang.String subObjectId, java.lang.String jsonPath)
           
 boolean isDefinite()
           
static java.lang.Object query(Persistable objectToQuery, java.lang.String jsonPath, java.lang.Object... parameters)
           
protected  java.util.List resolveTarget()
          Implementations should implement this to resolve a target when it has not been loaded yet
 void setParameters(java.lang.Object[] parameters)
           
 
Methods inherited from class org.persvr.data.Identification
getSource, getSubObjectId, idForRelativeString, idForString, isForeign, isLoaded, relativePath, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonPath

public JsonPath()
Method Detail

resolveTarget

protected java.util.List 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 JsonPath idForObject(DataSource source,
                                   java.lang.String subObjectId,
                                   java.lang.String jsonPath)

query

public static java.lang.Object query(Persistable objectToQuery,
                                     java.lang.String jsonPath,
                                     java.lang.Object... parameters)

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

isDefinite

public boolean isDefinite()

getPropertyPairs

public java.util.List<JsonPath.PropertyPair> getPropertyPairs()

getParameters

public java.lang.Object[] getParameters()

setParameters

public void setParameters(java.lang.Object[] parameters)