|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Selection
A selection provides access to a query graph with operations useful for service implementors, providing property names for a given Type but also operations which return the selected properties at a given (query) graph level, and for a given source edge Type. All properties are returned as a Set and implementations will typically return a HashSet.
Select,
Type,
Property| Method Summary | |
|---|---|
List<Type> |
addProperty(Type rootType,
String path)
Adds the given given property to the selection for the given graph root type and returns any types collected during traversal of the property path. |
Set<Property> |
getInheritedProperties(Type type)
Returns the unique set of inherited data and reference properties collected for the given type, and any base types of the given type, irrespective of the (query) graph level. |
Set<Property> |
getInheritedProperties(Type type,
int level)
Returns the unique set of inherited data and reference properties collected for the given type, and any base types of the given type, for the given (query) graph level. |
Set<Property> |
getInheritedProperties(Type type,
Property sourceProperty)
Returns the unique set of inherited data and reference properties collected for the given Type for the given (query) graph edge source property. |
Set<Property> |
getInheritedProperties(Type type,
Property sourceProperty,
int level)
Returns the unique set of inherited data and reference properties collected for the given Type for the given (query) graph edge source property at the given traversal level or graph depth. |
List<Type> |
getInheritedTypes()
Returns all selected types and as well as types which specialize or inherit from the selected types. |
Where |
getPredicate(Property property)
Returns the predicate for the given property or null if the given property is not mapped. |
Set<Property> |
getProperties(Type type)
Returns the unique set of data and reference properties collected for the given type irrespective of the (query) graph level, or source graph edge type. |
Set<Property> |
getProperties(Type type,
int level)
Returns the unique set of data and reference properties collected for the given Type for the given (query) graph level. |
Set<Property> |
getProperties(Type type,
Property sourceProperty)
Returns the unique set of data and reference properties collected for the given Type for the given (query) graph edge source property. |
Set<Property> |
getProperties(Type type,
Property sourceProperty,
int level)
Returns the unique set of data and reference properties collected for the given Type for the given (query) graph edge source property at the given traversal level or graph depth. |
Set<Property> |
getSingularProperties(Type type)
Returns the unique set of singular data and reference properties collected for the given type irrespective of the (query) graph level, or source graph edge type. |
List<Type> |
getTypes()
Returns all selected types. |
boolean |
hasInheritedProperty(Type type,
Property property)
Returns true if the given type is found in the inherited type selection and if the given property is found in the property selection for the given type. |
boolean |
hasInheritedType(Type type)
Returns true if the given type is found in the inherited type selection. |
boolean |
hasPredicates()
Returns true if the selection has path predicates. |
boolean |
hasProperty(Type type,
Property property)
Returns true if the given type is found in the type selection and if the given property is found in the property selection for the given type. |
boolean |
hasType(Type type)
Returns true if the given type is found in the type selection. |
| Method Detail |
|---|
List<Type> getTypes()
boolean hasType(Type type)
type - the type
List<Type> getInheritedTypes()
boolean hasInheritedType(Type type)
type - the type
boolean hasProperty(Type type,
Property property)
type - the typeproperty - the property
boolean hasInheritedProperty(Type type,
Property property)
type - the typeproperty - the property
List<Type> addProperty(Type rootType,
String path)
rootType - the graph root typepath - the SDO XPath specifying a path from the given root type
to a target or endpoint property
Set<Property> getProperties(Type type)
type - the type
Set<Property> getSingularProperties(Type type)
type - the type
Set<Property> getInheritedProperties(Type type)
type - the type
Set<Property> getInheritedProperties(Type type,
int level)
type - the typelevel - the specific graph level where the properties were specified in the selection
Set<Property> getInheritedProperties(Type type,
Property sourceProperty)
type - the type (query) graph edge source propertysourceProperty - thelevel - the specific graph level where the properties were specified in the selection
Set<Property> getInheritedProperties(Type type,
Property sourceProperty,
int level)
type - the type (query) graph edge source propertysourceProperty - thelevel - the traversal level or graph depth
Set<Property> getProperties(Type type,
int level)
type - the typelevel - the specific graph level where the properties were specified in the selection
Set<Property> getProperties(Type type,
Property sourceProperty)
type - the type (query) graph edge source propertysourceProperty - thelevel - the specific graph level where the properties were specified in the selection
Set<Property> getProperties(Type type,
Property sourceProperty,
int level)
type - the type (query) graph edge source propertysourceProperty - thelevel - the traversal level or graph depth
boolean hasPredicates()
Where getPredicate(Property property)
property - the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||