org.apache.chemistry.opencmis.client.runtime
Class QueryResultImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.runtime.QueryResultImpl
All Implemented Interfaces:
Serializable, QueryResult

public class QueryResultImpl
extends Object
implements QueryResult, Serializable

Implementation of QueryResult.

See Also:
Serialized Form

Constructor Summary
QueryResultImpl(Session session, ObjectData objectData)
          Constructor.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultImpl

public QueryResultImpl(Session session,
                       ObjectData objectData)
Constructor.

Method Detail

getProperties

public List<PropertyData<?>> getProperties()
Description copied from interface: QueryResult
Returns a list of all properties in this query result.

Specified by:
getProperties in interface QueryResult

getPropertyById

public <T> PropertyData<T> getPropertyById(String id)
Description copied from interface: QueryResult
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 QueryResult.getPropertyByQueryName(String) instead.

Specified by:
getPropertyById in interface QueryResult

getPropertyByQueryName

public <T> PropertyData<T> getPropertyByQueryName(String queryName)
Description copied from interface: QueryResult
Returns a property by query name or alias.

Specified by:
getPropertyByQueryName in interface QueryResult

getPropertyValueById

public <T> T getPropertyValueById(String id)
Description copied from interface: QueryResult
Returns a property (single) value by id.

Specified by:
getPropertyValueById in interface QueryResult
See Also:
QueryResult.getPropertyById(String)

getPropertyValueByQueryName

public <T> T getPropertyValueByQueryName(String queryName)
Description copied from interface: QueryResult
Returns a property (single) value by query name or alias.

Specified by:
getPropertyValueByQueryName in interface QueryResult
See Also:
QueryResult.getPropertyByQueryName(String)

getPropertyMultivalueById

public <T> List<T> getPropertyMultivalueById(String id)
Description copied from interface: QueryResult
Returns a property multi-value by id.

Specified by:
getPropertyMultivalueById in interface QueryResult
See Also:
QueryResult.getPropertyById(String)

getPropertyMultivalueByQueryName

public <T> List<T> getPropertyMultivalueByQueryName(String queryName)
Description copied from interface: QueryResult
Returns a property multi-value by query name or alias.

Specified by:
getPropertyMultivalueByQueryName in interface QueryResult
See Also:
QueryResult.getPropertyByQueryName(String)

getAllowableActions

public AllowableActions getAllowableActions()
Description copied from interface: QueryResult
Returns the allowable actions if they were requested.

Specified by:
getAllowableActions in interface QueryResult

getRelationships

public List<Relationship> getRelationships()
Description copied from interface: QueryResult
Returns the relationships if they were requested.

Specified by:
getRelationships in interface QueryResult

getRenditions

public List<Rendition> getRenditions()
Description copied from interface: QueryResult
Returns the renditions if they were requested.

Specified by:
getRenditions in interface QueryResult


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