org.apache.chemistry.opencmis.client.api
Interface QueryResult


public interface QueryResult

Query result.


Method Summary
 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.
 

Method Detail

getProperties

List<PropertyData<?>> getProperties()
Returns a list of all properties in this query result.


getPropertyById

<T> PropertyData<T> getPropertyById(String id)
Returns a property by id. 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 getPropertyByQueryName(String) instead.


getPropertyByQueryName

<T> PropertyData<T> getPropertyByQueryName(String queryName)
Returns a property by query name or alias.


getPropertyValueById

<T> T getPropertyValueById(String id)
Returns a property (single) value by id.

See Also:
getPropertyById(String)

getPropertyValueByQueryName

<T> T getPropertyValueByQueryName(String queryName)
Returns a property (single) value by query name or alias.

See Also:
getPropertyByQueryName(String)

getPropertyMultivalueById

<T> List<T> getPropertyMultivalueById(String id)
Returns a property multi-value by id.

See Also:
getPropertyById(String)

getPropertyMultivalueByQueryName

<T> List<T> getPropertyMultivalueByQueryName(String queryName)
Returns a property multi-value by query name or alias.

See Also:
getPropertyByQueryName(String)

getAllowableActions

AllowableActions getAllowableActions()
Returns the allowable actions if they were requested.


getRelationships

List<Relationship> getRelationships()
Returns the relationships if they were requested.


getRenditions

List<Rendition> getRenditions()
Returns the renditions if they were requested.



Copyright © 2009-2010 The Apache Software Foundation. All Rights Reserved.