org.plasma.query.collector
Interface SelectionPredicates


public interface SelectionPredicates

Provides access to path predicates for a query graph with operations useful for service implementors.

Since:
1.1.5
Author:
Scott Cinnamond
See Also:
Select, Type, Property

Method Summary
 void collect(Where predicate)
          Traverses the given predicate adding its properties and property paths to the selection.
 Where getPredicate(Property property)
          Returns the predicate for the given property or null if the given property is not mapped.
 boolean hasPredicates()
          Returns true if the selection has path predicates.
 

Method Detail

collect

void collect(Where predicate)
Traverses the given predicate adding its properties and property paths to the selection.

Parameters:
predicate - the predicate

hasPredicates

boolean hasPredicates()
Returns true if the selection has path predicates.

Returns:
true if the selection has path predicates.

getPredicate

Where getPredicate(Property property)
Returns the predicate for the given property or null if the given property is not mapped.

Parameters:
property - the property
Returns:
the predicate for the given property or null if the given property is not mapped.


Copyright © 2014. All rights reserved.