public interface Query
Modifier and Type | Method and Description |
---|---|
void |
addLocalProperty(String property)
Add a local (not sub-resource) property to the query.
|
void |
addProperty(String propertyId,
TemporalInfo temporalInfo)
Add a property to the query.
|
Result |
execute()
Execute the query.
|
Predicate |
getPredicate()
Return the predicate used to identify the associated resource.
|
Set<String> |
getProperties()
Obtain the properties of the query.
|
Map<String,String> |
getRequestInfoProps()
Get this Query's requestInfoProperties from the original request.
|
void |
setPageRequest(PageRequest pageRequest)
Set the page request information for this query.
|
void |
setRenderer(Renderer renderer)
Set the corresponding renderer.
|
void |
setRequestInfoProps(Map<String,String> requestInfoProperties)
Set this Query's requestInfoProperties from the original request.
|
void |
setSortRequest(SortRequest sortRequest)
Set the order request information on the query
|
void |
setUserPredicate(Predicate predicate)
Set the user provided predicated on this query.
|
void addProperty(String propertyId, TemporalInfo temporalInfo)
propertyId
- the property idtemporalInfo
- temporal information for the propertyvoid addLocalProperty(String property)
property
- the property id which contains the group, property name
and whether the property is temporalSet<String> getProperties()
Result execute() throws UnsupportedPropertyException, SystemException, NoSuchResourceException, NoSuchParentResourceException
UnsupportedPropertyException
- if the query or query predicate contains invalid non-existent propertiesSystemException
- an internal error occurredNoSuchResourceException
- the query didn't match any resourcesNoSuchParentResourceException
- a specified parent resource doesn't existPredicate getPredicate()
void setUserPredicate(Predicate predicate)
predicate
- the user provided predicatevoid setPageRequest(PageRequest pageRequest)
pageRequest
- the page request informationvoid setSortRequest(SortRequest sortRequest)
sortRequest
- the ordering infovoid setRenderer(Renderer renderer)
renderer
- renderer for the queryvoid setRequestInfoProps(Map<String,String> requestInfoProperties)
requestInfoProperties
- a map a request info propertiesCopyright © 2022 Apache Software Foundation. All rights reserved.