|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.query.collector.PropertySelectionCollector
@Deprecated public class PropertySelectionCollector
Traverses a given Select) clause collecting the specified property names, as well as any path-reference or key properties required for graph structure, into a simple list of logical property name strings mapped to the respective {@link Type} definition.
Select,
Type| Field Summary | |
|---|---|
protected boolean |
onlyDeclaredProperties
Whether to collect only declared properties for a type, otherwise indicates to collect all properties for a given type and all its base types |
protected boolean |
onlySingularProperties
Whether to collect only singular reference properties and follow paths composed of only singular properties. |
protected Type |
rootType
|
| Constructor Summary | |
|---|---|
PropertySelectionCollector(Select select,
Type rootType)
Deprecated. |
|
PropertySelectionCollector(Select select,
Type rootType,
boolean onlySingularProperties)
Deprecated. |
|
| Method Summary | |
|---|---|
protected void |
addInheritedProperty(Type type,
java.lang.Integer level,
Property property,
java.util.Map<Type,java.util.Map<java.lang.Integer,java.util.Set<Property>>> map)
|
protected void |
addInheritedProperty(Type type,
Property property,
java.util.Map<Type,java.util.Set<Property>> map)
|
protected void |
addInheritedProperty(Type type,
Property edge,
Property property,
java.util.Map<Type,java.util.Map<Property,java.util.Set<Property>>> map)
|
protected void |
addProperty(Type type,
java.lang.Integer level,
Property property,
java.util.Map<Type,java.util.Map<java.lang.Integer,java.util.Set<Property>>> map)
|
protected void |
addProperty(Type type,
Property property,
java.util.Map<Type,java.util.Set<Property>> map)
|
protected void |
addProperty(Type type,
Property edge,
Property property,
java.util.Map<Type,java.util.Map<Property,java.util.Set<Property>>> map)
|
java.util.List<Type> |
addProperty(Type rootType,
java.lang.String path)
Deprecated. 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. |
void |
collect(Where predicate)
Deprecated. Traverses the given predicate adding its properties and property paths to the selection. |
java.lang.String |
dumpInheritedProperties()
Deprecated. |
java.lang.String |
dumpProperties()
Deprecated. |
protected Property[] |
findProperties(Type type,
AbstractProperty abstractProperty)
A convenience method returning an array of names for the given property whether a wildcard property or not. |
protected java.lang.String[] |
findPropertyNames(Type type,
AbstractProperty abstractProperty)
A convenience method returning an array of names for the given property whether a wildcard property or not. |
java.util.List<java.lang.String> |
getInheritedProperties(Type type)
Deprecated. Returns a list of data and reference property names collected specifically for the given type or collected for any base type of the given type. |
java.util.List<Type> |
getInheritedTypes()
Deprecated. Returns all selected types and as well as types specialize or inherit from the selected types. |
Where |
getPredicate(Property property)
Deprecated. Returns the predicate for the given property or null if the given property is not mapped. |
java.util.Map<Property,Where> |
getPredicateMap()
Deprecated. |
java.util.List<java.lang.String> |
getProperties(Type type)
Deprecated. Returns a list of data and reference property names collected for the given type. |
java.util.Map<Type,java.util.List<java.lang.String>> |
getResult()
Deprecated. |
java.util.List<java.lang.String> |
getSingularProperties(Type type)
Deprecated. Returns a list of only singular data and reference property names collected for the given type. |
java.util.Map<Type,java.util.List<java.lang.String>> |
getSingularPropertyMap()
Deprecated. |
java.util.List<Type> |
getTypes()
Deprecated. Returns all selected types. |
boolean |
hasInheritedProperty(Type type,
Property property)
Deprecated. 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)
Deprecated. Returns true if the given type is found in the inherited type selection. |
boolean |
hasProperty(Type type,
Property property)
Deprecated. 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)
Deprecated. Returns true if the given type is found in the type selection. |
boolean |
isOnlyDeclaredProperties()
Returns whether to collect only declared properties for a type. |
boolean |
isOnlySingularProperties()
Returns whether to collect only singular properties and follow paths composed of only singular properties. |
protected boolean |
isSingularPath(Path path,
Type currType,
AbstractPathElement currPathElement,
int curPathElementIndex,
AbstractProperty abstractProperty)
Recursively traverses the given path checking every path element and determines if the entire path is composed of singular properties. |
protected boolean |
isSingularPath(Path path,
Type rootType,
AbstractProperty abstractProperty)
Recursively traverses the given path checking every path element and determines if the entire path is composed of singular properties. |
protected void |
mapInheritedProperties(Type type,
java.lang.Integer level,
Property[] props,
java.util.Map<Type,java.util.Map<java.lang.Integer,java.util.Set<Property>>> map)
|
protected void |
mapInheritedProperties(Type type,
Property[] props,
java.util.Map<Type,java.util.Set<Property>> map)
|
protected void |
mapInheritedProperties(Type type,
Property edge,
Property[] props,
java.util.Map<Type,java.util.Map<Property,java.util.Set<Property>>> map)
|
protected void |
mapInheritedProperty(Type type,
Property property,
java.util.Map<Type,java.util.List<java.lang.String>> map)
|
protected void |
mapInheritedPropertyNames(Type type,
java.lang.String[] names,
java.util.Map<Type,java.util.List<java.lang.String>> map)
|
protected void |
mapProperties(Type type,
java.lang.Integer level,
Property[] props,
java.util.Map<Type,java.util.Map<java.lang.Integer,java.util.Set<Property>>> map)
|
protected void |
mapProperties(Type type,
Property[] props,
java.util.Map<Type,java.util.Set<Property>> map)
|
protected void |
mapProperties(Type type,
Property edge,
Property[] props,
java.util.Map<Type,java.util.Map<Property,java.util.Set<Property>>> map)
|
protected void |
mapProperty(Type type,
Property property,
java.util.Map<Type,java.util.List<java.lang.String>> map)
|
protected void |
mapPropertyNames(Type type,
java.lang.String[] names,
java.util.Map<Type,java.util.List<java.lang.String>> map)
|
void |
setOnlyDeclaredProperties(boolean onlyDeclaredProperties)
Sets whether to collect only declared properties for a type. |
void |
setOnlySingularProperties(boolean onlySingularProperties)
Sets whether to collect only singular properties and follow paths composed of only singular properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Type rootType
protected boolean onlySingularProperties
protected boolean onlyDeclaredProperties
| Constructor Detail |
|---|
public PropertySelectionCollector(Select select,
Type rootType)
public PropertySelectionCollector(Select select,
Type rootType,
boolean onlySingularProperties)
| Method Detail |
|---|
public void collect(Where predicate)
PropertySelection
collect in interface PropertySelectionpredicate - the predicate@Deprecated public java.util.Map<Property,Where> getPredicateMap()
public Where getPredicate(Property property)
PropertySelection
getPredicate in interface PropertySelectionproperty - the property
@Deprecated public java.util.Map<Type,java.util.List<java.lang.String>> getSingularPropertyMap()
public java.util.List<java.lang.String> getSingularProperties(Type type)
PropertySelection
getSingularProperties in interface PropertySelectiontype - the type
@Deprecated public java.util.Map<Type,java.util.List<java.lang.String>> getResult()
Type definition
Type to logical property name mappublic java.util.List<java.lang.String> getProperties(Type type)
PropertySelection
getProperties in interface PropertySelectiontype - the type
public java.util.List<java.lang.String> getInheritedProperties(Type type)
PropertySelection
getInheritedProperties in interface PropertySelectiontype - the type
public java.util.List<Type> getTypes()
PropertySelection
getTypes in interface PropertySelectionpublic boolean hasType(Type type)
PropertySelection
hasType in interface PropertySelectiontype - the type
public java.util.List<Type> getInheritedTypes()
PropertySelection
getInheritedTypes in interface PropertySelectionpublic boolean hasInheritedType(Type type)
PropertySelection
hasInheritedType in interface PropertySelectiontype - the type
public boolean hasProperty(Type type,
Property property)
PropertySelection
hasProperty in interface PropertySelectiontype - the typeproperty - the property
public java.util.List<Type> addProperty(Type rootType,
java.lang.String path)
PropertySelection
addProperty in interface PropertySelectionrootType - the graph root typepath - the SDO XPath specifying a path from the given root type
to a target or endpoint property
public boolean hasInheritedProperty(Type type,
Property property)
PropertySelection
hasInheritedProperty in interface PropertySelectiontype - the typeproperty - the property
public java.lang.String dumpProperties()
public java.lang.String dumpInheritedProperties()
public boolean isOnlySingularProperties()
public void setOnlySingularProperties(boolean onlySingularProperties)
public boolean isOnlyDeclaredProperties()
public void setOnlyDeclaredProperties(boolean onlyDeclaredProperties)
protected void mapProperty(Type type,
Property property,
java.util.Map<Type,java.util.List<java.lang.String>> map)
protected void addProperty(Type type,
Property property,
java.util.Map<Type,java.util.Set<Property>> map)
protected void addProperty(Type type,
java.lang.Integer level,
Property property,
java.util.Map<Type,java.util.Map<java.lang.Integer,java.util.Set<Property>>> map)
protected void addProperty(Type type,
Property edge,
Property property,
java.util.Map<Type,java.util.Map<Property,java.util.Set<Property>>> map)
protected void mapInheritedProperty(Type type,
Property property,
java.util.Map<Type,java.util.List<java.lang.String>> map)
protected void addInheritedProperty(Type type,
Property property,
java.util.Map<Type,java.util.Set<Property>> map)
protected void addInheritedProperty(Type type,
java.lang.Integer level,
Property property,
java.util.Map<Type,java.util.Map<java.lang.Integer,java.util.Set<Property>>> map)
protected void addInheritedProperty(Type type,
Property edge,
Property property,
java.util.Map<Type,java.util.Map<Property,java.util.Set<Property>>> map)
protected void mapPropertyNames(Type type,
java.lang.String[] names,
java.util.Map<Type,java.util.List<java.lang.String>> map)
protected void mapProperties(Type type,
Property[] props,
java.util.Map<Type,java.util.Set<Property>> map)
protected void mapProperties(Type type,
java.lang.Integer level,
Property[] props,
java.util.Map<Type,java.util.Map<java.lang.Integer,java.util.Set<Property>>> map)
protected void mapProperties(Type type,
Property edge,
Property[] props,
java.util.Map<Type,java.util.Map<Property,java.util.Set<Property>>> map)
protected void mapInheritedPropertyNames(Type type,
java.lang.String[] names,
java.util.Map<Type,java.util.List<java.lang.String>> map)
protected void mapInheritedProperties(Type type,
Property[] props,
java.util.Map<Type,java.util.Set<Property>> map)
protected void mapInheritedProperties(Type type,
java.lang.Integer level,
Property[] props,
java.util.Map<Type,java.util.Map<java.lang.Integer,java.util.Set<Property>>> map)
protected void mapInheritedProperties(Type type,
Property edge,
Property[] props,
java.util.Map<Type,java.util.Map<Property,java.util.Set<Property>>> map)
protected java.lang.String[] findPropertyNames(Type type,
AbstractProperty abstractProperty)
type - the typeabstractProperty - the property
protected Property[] findProperties(Type type,
AbstractProperty abstractProperty)
type - the typeabstractProperty - the property
protected boolean isSingularPath(Path path,
Type rootType,
AbstractProperty abstractProperty)
path - the pathrootType - the root typeabstractProperty -
protected boolean isSingularPath(Path path,
Type currType,
AbstractPathElement currPathElement,
int curPathElementIndex,
AbstractProperty abstractProperty)
path - the pathcurrType - the current typecurrPathElement - the current path elementcurPathElementIndex - the current path element indexabstractProperty - the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||