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 have been requested.
|
List<PropertyData<?>> |
getProperties()
Returns the 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 have been requested.
|
List<Rendition> |
getRenditions()
Returns the renditions if they have been requested.
|
public QueryResultImpl(Session session, ObjectData objectData)
public List<PropertyData<?>> getProperties()
QueryResult
getProperties
in interface QueryResult
null
public <T> PropertyData<T> getPropertyById(String id)
QueryResult
Because 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 QueryResult
id
- the property IDnull
if the property doesn't exist or
hasn't been requestedpublic <T> PropertyData<T> getPropertyByQueryName(String queryName)
QueryResult
getPropertyByQueryName
in interface QueryResult
queryName
- the property query name or aliasnull
if the property doesn't exist or
hasn't been requestedpublic <T> T getPropertyValueById(String id)
QueryResult
getPropertyValueById
in interface QueryResult
id
- the property IDQueryResult.getPropertyById(String)
public <T> T getPropertyValueByQueryName(String queryName)
QueryResult
getPropertyValueByQueryName
in interface QueryResult
queryName
- the property query name or aliasnull
if the property doesn't exist,
hasn't been requested, or the property value isn't setQueryResult.getPropertyByQueryName(String)
public <T> List<T> getPropertyMultivalueById(String id)
QueryResult
getPropertyMultivalueById
in interface QueryResult
id
- the property IDnull
if the property doesn't exist,
hasn't been requested, or the property value isn't setQueryResult.getPropertyById(String)
public <T> List<T> getPropertyMultivalueByQueryName(String queryName)
QueryResult
getPropertyMultivalueByQueryName
in interface QueryResult
queryName
- the property query name or aliasnull
if the property doesn't exist,
hasn't been requested, or the property value isn't setQueryResult.getPropertyByQueryName(String)
public AllowableActions getAllowableActions()
QueryResult
getAllowableActions
in interface QueryResult
null
otherwisepublic List<Relationship> getRelationships()
QueryResult
getRelationships
in interface QueryResult
public List<Rendition> getRenditions()
QueryResult
getRenditions
in interface QueryResult
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.