public class QueryResultImpl extends Object implements QueryResult, Serializable
QueryResult.| Constructor and Description |
|---|
QueryResultImpl(Session session,
ObjectData objectData)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AllowableActions |
getAllowableActions()
Returns the allowable actions if they were requested.
|
List<PropertyData<?>> |
getProperties()
Returns a list of all properties in this query result.
|
<T> PropertyData<T> |
getPropertyById(String id)
Returns a property by id.
|
<T> PropertyData<T> |
getPropertyByQueryName(String queryName)
Returns a property by query name or alias.
|
<T> List<T> |
getPropertyMultivalueById(String id)
Returns a property multi-value by id.
|
<T> List<T> |
getPropertyMultivalueByQueryName(String queryName)
Returns a property multi-value by query name or alias.
|
<T> T |
getPropertyValueById(String id)
Returns a property (single) value by id.
|
<T> T |
getPropertyValueByQueryName(String queryName)
Returns a property (single) value by query name or alias.
|
List<Relationship> |
getRelationships()
Returns the relationships if they were requested.
|
List<Rendition> |
getRenditions()
Returns the renditions if they were requested.
|
public QueryResultImpl(Session session, ObjectData objectData)
public List<PropertyData<?>> getProperties()
QueryResultgetProperties in interface QueryResultpublic <T> PropertyData<T> getPropertyById(String id)
QueryResult
Since repositories are not obligated to add property ids to their query
result properties, this method might not always work as expected with
some repositories. Use QueryResult.getPropertyByQueryName(String) instead.
getPropertyById in interface QueryResultpublic <T> PropertyData<T> getPropertyByQueryName(String queryName)
QueryResultgetPropertyByQueryName in interface QueryResultpublic <T> T getPropertyValueById(String id)
QueryResultgetPropertyValueById in interface QueryResultQueryResult.getPropertyById(String)public <T> T getPropertyValueByQueryName(String queryName)
QueryResultgetPropertyValueByQueryName in interface QueryResultQueryResult.getPropertyByQueryName(String)public <T> List<T> getPropertyMultivalueById(String id)
QueryResultgetPropertyMultivalueById in interface QueryResultQueryResult.getPropertyById(String)public <T> List<T> getPropertyMultivalueByQueryName(String queryName)
QueryResultgetPropertyMultivalueByQueryName in interface QueryResultQueryResult.getPropertyByQueryName(String)public AllowableActions getAllowableActions()
QueryResultgetAllowableActions in interface QueryResultpublic List<Relationship> getRelationships()
QueryResultgetRelationships in interface QueryResultpublic List<Rendition> getRenditions()
QueryResultgetRenditions in interface QueryResultCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.