|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.datastore.sql.wherebuilder.QueryTableTree
public class QueryTableTree
Represents selected MappedFeatureType
s and PropertyPath
instances (properties used in an OGC filter
and as sort criteria) and their mapping to a certain relational schema.
The requested MappedFeatureType
s are the root nodes of the tree. If there is more than root node (feature
type), the query requests a join between feature types.
Constructor Summary | |
---|---|
QueryTableTree(MappedFeatureType[] rootFts,
java.lang.String[] aliases,
TableAliasGenerator aliasGenerator)
Creates a new instance of QueryTableTree . |
Method Summary | |
---|---|
void |
addFilterProperty(PropertyPath property)
Tries to insert the given PropertyPath as a filter criterion into the tree. |
void |
addSortProperty(PropertyPath property)
Tries to insert the given PropertyPath as a sort criterion into the tree. |
PropertyNode |
getPropertyNode(PropertyPath path)
Returns the property node for the given property path. |
java.lang.String |
getRootAlias()
Returns the alias for the root table. |
FeatureTypeNode[] |
getRootNodes()
Returns the root feature type nodes of the tree. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryTableTree(MappedFeatureType[] rootFts, java.lang.String[] aliases, TableAliasGenerator aliasGenerator)
QueryTableTree
.
rootFts
- selected feature types, more than one type means that the types are joinedaliases
- aliases for the feature types, may be null (must have same length as rootFts otherwise)aliasGenerator
- aliasGenerator to be used to generate table aliases, may be nullMethod Detail |
---|
public FeatureTypeNode[] getRootNodes()
public java.lang.String getRootAlias()
public PropertyNode getPropertyNode(PropertyPath path)
path
- property to be looked up
public void addFilterProperty(PropertyPath property) throws PropertyPathResolvingException
PropertyPath
as a filter criterion into the tree.
The PropertyPath
is validated during insertion.
property
- property to be inserted, has to have at least one step
PropertyPathResolvingException
- if the path violates the feature type's schemapublic void addSortProperty(PropertyPath property) throws PropertyPathResolvingException
PropertyPath
as a sort criterion into the tree.
The PropertyPath
is validated during insertion. It is also checked that the path is unique, i.e. every
property type on the path must have maxOccurs set to 1.
property
- property to be inserted, has to have at least one step
PropertyPathResolvingException
- if the path violates the feature type's schemapublic java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org