Class QueryObjectModelFactoryImpl
- java.lang.Object
- 
- org.apache.jackrabbit.spi.commons.query.qom.QueryObjectModelFactoryImpl
 
- 
- All Implemented Interfaces:
- QueryObjectModelConstants,- QueryObjectModelFactory
 
 public abstract class QueryObjectModelFactoryImpl extends Object implements QueryObjectModelFactory QueryObjectModelFactoryImplimplements the query object model factory from JSR 283.
- 
- 
Field Summary- 
Fields inherited from interface javax.jcr.query.qom.QueryObjectModelConstantsJCR_JOIN_TYPE_INNER, JCR_JOIN_TYPE_LEFT_OUTER, JCR_JOIN_TYPE_RIGHT_OUTER, JCR_OPERATOR_EQUAL_TO, JCR_OPERATOR_GREATER_THAN, JCR_OPERATOR_GREATER_THAN_OR_EQUAL_TO, JCR_OPERATOR_LESS_THAN, JCR_OPERATOR_LESS_THAN_OR_EQUAL_TO, JCR_OPERATOR_LIKE, JCR_OPERATOR_NOT_EQUAL_TO, JCR_ORDER_ASCENDING, JCR_ORDER_DESCENDING
 
- 
 - 
Constructor SummaryConstructors Constructor Description QueryObjectModelFactoryImpl(NamePathResolver resolver)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Andand(Constraint constraint1, Constraint constraint2)Performs a logical conjunction of two other constraints.Orderingascending(DynamicOperand operand)Orders by the value of the specified operand, in ascending order.BindVariableValuebindVariable(String bindVariableName)Evaluates to the value of a bind variable.ChildNodechildNode(String path)Tests whether a node in the default selector is a child of a node reachable by a specified absolute path.ChildNodechildNode(String selectorName, String path)Tests whether a node in the specified selector is a child of a node reachable by a specified absolute path.ChildNodeJoinConditionchildNodeJoinCondition(String childSelectorName, String parentSelectorName)Tests whether a first selector's node is a child of a second selector's node.Columncolumn(String propertyName)Identifies a property in the default selector to include in the tabular view of query results.Columncolumn(String propertyName, String columnName)Identifies a property in the default selector to include in the tabular view of query results.Columncolumn(String selectorName, String propertyName, String columnName)Identifies a property in the specified selector to include in the tabular view of query results.Comparisoncomparison(DynamicOperand left, String operatorName, StaticOperand right)Filters node-tuples based on the outcome of a binary operation.QueryObjectModelcreateQuery(Selector selector, Constraint constraint, Ordering[] orderings, Column[] columns)Creates a query with one selector.QueryObjectModelcreateQuery(Source source, Constraint constraint, Ordering[] orderings, Column[] columns)Creates a query with one or more selectors.protected abstract QueryObjectModelcreateQuery(QueryObjectModelTree qomTree)Creates a query object model from the internal tree representation.DescendantNodedescendantNode(String path)Tests whether a node in the default selector is a descendant of a node reachable by a specified absolute path.DescendantNodedescendantNode(String selectorName, String path)Tests whether a node in the specified selector is a descendant of a node reachable by a specified absolute path.DescendantNodeJoinConditiondescendantNodeJoinCondition(String descendantSelectorName, String ancestorSelectorName)Tests whether a first selector's node is a descendant of a second selector's node.Orderingdescending(DynamicOperand operand)Orders by the value of the specified operand, in descending order.EquiJoinConditionequiJoinCondition(String selector1Name, String property1Name, String selector2Name, String property2Name)Tests whether the value of a property in a first selector is equal to the value of a property in a second selector.FullTextSearchfullTextSearch(String selectorName, String propertyName, StaticOperand fullTextSearchExpression)Performs a full-text search against the specified selector.FullTextSearchfullTextSearch(String propertyName, StaticOperand fullTextSearchExpression)Performs a full-text search against the default selector.FullTextSearchScorefullTextSearchScore()Evaluates to aDOUBLEvalue equal to the full-text search score of a node in the default selector.FullTextSearchScorefullTextSearchScore(String selectorName)Evaluates to aDOUBLEvalue equal to the full-text search score of a node in the specified selector.Joinjoin(Source left, Source right, String joinTypeName, JoinCondition joinCondition)Performs a join between two node-tuple sources.Lengthlength(PropertyValue propertyValue)Evaluates to the length (or lengths, if multi-valued) of a property.Literalliteral(Value value)Evaluates to a literal value.LowerCaselowerCase(DynamicOperand operand)Evaluates to the lower-case string value (or values, if multi-valued) of an operand.NodeLocalNamenodeLocalName()Evaluates to aNAMEvalue equal to the local (unprefixed) name of a node in the default selector.NodeLocalNamenodeLocalName(String selectorName)Evaluates to aNAMEvalue equal to the local (unprefixed) name of a node in the specified selector.NodeNamenodeName()Evaluates to aNAMEvalue equal to the prefix-qualified name of a node in the default selector.NodeNamenodeName(String selectorName)Evaluates to aNAMEvalue equal to the prefix-qualified name of a node in the specified selector.Notnot(Constraint constraint)Performs a logical negation of another constraint.Oror(Constraint constraint1, Constraint constraint2)Performs a logical disjunction of two other constraints.PropertyExistencepropertyExistence(String propertyName)Tests the existence of a property in the default selector.PropertyExistencepropertyExistence(String selectorName, String propertyName)Tests the existence of a property in the specified selector.PropertyValuepropertyValue(String propertyName)Evaluates to the value (or values, if multi-valued) of a property of the default selector.PropertyValuepropertyValue(String selectorName, String propertyName)Evaluates to the value (or values, if multi-valued) of a property in the specified selector.SameNodesameNode(String path)Tests whether a node in the default selector is reachable by a specified absolute path.SameNodesameNode(String selectorName, String path)Tests whether a node in the specified selector is reachable by a specified absolute path.SameNodeJoinConditionsameNodeJoinCondition(String selector1Name, String selector2Name)Tests whether a first selector's node is the same as a second selector's node.SameNodeJoinConditionsameNodeJoinCondition(String selector1Name, String selector2Name, String selector2Path)Tests whether a first selector's node is the same as a node identified by relative path from a second selector's node.Selectorselector(String nodeTypeName)Selects a subset of the nodes in the repository based on node type.Selectorselector(String nodeTypeName, String selectorName)Selects a subset of the nodes in the repository based on node type.UpperCaseupperCase(DynamicOperand operand)Evaluates to the upper-case string value (or values, if multi-valued) of an operand.
 
- 
- 
- 
Constructor Detail- 
QueryObjectModelFactoryImplpublic QueryObjectModelFactoryImpl(NamePathResolver resolver) 
 
- 
 - 
Method Detail- 
createQueryprotected abstract QueryObjectModel createQuery(QueryObjectModelTree qomTree) throws InvalidQueryException, RepositoryException Creates a query object model from the internal tree representation.- Parameters:
- qomTree- the qom tree.
- Returns:
- a query object model that can be executed.
- Throws:
- InvalidQueryException- the the query object model tree is considered invalid by the query handler implementation.
- RepositoryException- if any other error occurs.
 
 - 
createQuerypublic QueryObjectModel createQuery(Selector selector, Constraint constraint, Ordering[] orderings, Column[] columns) throws InvalidQueryException, RepositoryException Creates a query with one selector.The specified selector will be the default selector of the query. - Parameters:
- selector- the selector; non-null
- constraint- the constraint, or null if none
- orderings- zero or more orderings; null is equivalent to a zero-length array
- columns- the columns; null is equivalent to a zero-length array
- Returns:
- the query; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
createQuerypublic QueryObjectModel createQuery(Source source, Constraint constraint, Ordering[] orderings, Column[] columns) throws InvalidQueryException, RepositoryException Creates a query with one or more selectors.If sourceis a selector, that selector is the default selector of the query. Otherwise the query does not have a default selector.- Specified by:
- createQueryin interface- QueryObjectModelFactory
- Parameters:
- source- the node-tuple source; non-null
- constraint- the constraint, or null if none
- orderings- zero or more orderings; null is equivalent to a zero-length array
- columns- the columns; null is equivalent to a zero-length array
- Returns:
- the query; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
selectorpublic Selector selector(String nodeTypeName) throws InvalidQueryException, RepositoryException Selects a subset of the nodes in the repository based on node type.The selector name is the node type name. - Parameters:
- nodeTypeName- the name of the required node type; non-null
- Returns:
- the selector; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
selectorpublic Selector selector(String nodeTypeName, String selectorName) throws InvalidQueryException, RepositoryException Selects a subset of the nodes in the repository based on node type.- Specified by:
- selectorin interface- QueryObjectModelFactory
- Parameters:
- nodeTypeName- the name of the required node type; non-null
- selectorName- the selector name; non-null
- Returns:
- the selector; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
joinpublic Join join(Source left, Source right, String joinTypeName, JoinCondition joinCondition) throws InvalidQueryException, RepositoryException Performs a join between two node-tuple sources.- Specified by:
- joinin interface- QueryObjectModelFactory
- Parameters:
- left- the left node-tuple source; non-null
- right- the right node-tuple source; non-null
- joinTypeName- either
- joinCondition- the join condition; non-null
- Returns:
- the join; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
equiJoinConditionpublic EquiJoinCondition equiJoinCondition(String selector1Name, String property1Name, String selector2Name, String property2Name) throws InvalidQueryException, RepositoryException Tests whether the value of a property in a first selector is equal to the value of a property in a second selector.- Specified by:
- equiJoinConditionin interface- QueryObjectModelFactory
- Parameters:
- selector1Name- the name of the first selector; non-null
- property1Name- the property name in the first selector; non-null
- selector2Name- the name of the second selector; non-null
- property2Name- the property name in the second selector; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
sameNodeJoinConditionpublic SameNodeJoinCondition sameNodeJoinCondition(String selector1Name, String selector2Name) throws InvalidQueryException, RepositoryException Tests whether a first selector's node is the same as a second selector's node.- Parameters:
- selector1Name- the name of the first selector; non-null
- selector2Name- the name of the second selector; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
sameNodeJoinConditionpublic SameNodeJoinCondition sameNodeJoinCondition(String selector1Name, String selector2Name, String selector2Path) throws InvalidQueryException, RepositoryException Tests whether a first selector's node is the same as a node identified by relative path from a second selector's node.- Specified by:
- sameNodeJoinConditionin interface- QueryObjectModelFactory
- Parameters:
- selector1Name- the name of the first selector; non-null
- selector2Name- the name of the second selector; non-null
- selector2Path- the path relative to the second selector; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
childNodeJoinConditionpublic ChildNodeJoinCondition childNodeJoinCondition(String childSelectorName, String parentSelectorName) throws InvalidQueryException, RepositoryException Tests whether a first selector's node is a child of a second selector's node.- Specified by:
- childNodeJoinConditionin interface- QueryObjectModelFactory
- Parameters:
- childSelectorName- the name of the child selector; non-null
- parentSelectorName- the name of the parent selector; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
descendantNodeJoinConditionpublic DescendantNodeJoinCondition descendantNodeJoinCondition(String descendantSelectorName, String ancestorSelectorName) throws InvalidQueryException, RepositoryException Tests whether a first selector's node is a descendant of a second selector's node.- Specified by:
- descendantNodeJoinConditionin interface- QueryObjectModelFactory
- Parameters:
- descendantSelectorName- the name of the descendant selector; non-null
- ancestorSelectorName- the name of the ancestor selector; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
andpublic And and(Constraint constraint1, Constraint constraint2) throws InvalidQueryException, RepositoryException Performs a logical conjunction of two other constraints.- Specified by:
- andin interface- QueryObjectModelFactory
- Parameters:
- constraint1- the first constraint; non-null
- constraint2- the second constraint; non-null
- Returns:
- the Andconstraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
orpublic Or or(Constraint constraint1, Constraint constraint2) throws InvalidQueryException, RepositoryException Performs a logical disjunction of two other constraints.- Specified by:
- orin interface- QueryObjectModelFactory
- Parameters:
- constraint1- the first constraint; non-null
- constraint2- the second constraint; non-null
- Returns:
- the Orconstraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
notpublic Not not(Constraint constraint) throws InvalidQueryException, RepositoryException Performs a logical negation of another constraint.- Specified by:
- notin interface- QueryObjectModelFactory
- Parameters:
- constraint- the constraint to be negated; non-null
- Returns:
- the Notconstraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
comparisonpublic Comparison comparison(DynamicOperand left, String operatorName, StaticOperand right) throws InvalidQueryException, RepositoryException Filters node-tuples based on the outcome of a binary operation.- Specified by:
- comparisonin interface- QueryObjectModelFactory
- Parameters:
- left- the first operand; non-null
- operatorName- the operator; either- QueryObjectModelConstants.JCR_OPERATOR_EQUAL_TO,
- QueryObjectModelConstants.JCR_OPERATOR_NOT_EQUAL_TO,
- QueryObjectModelConstants.JCR_OPERATOR_LESS_THAN,
- QueryObjectModelConstants.JCR_OPERATOR_LESS_THAN_OR_EQUAL_TO,
- QueryObjectModelConstants.JCR_OPERATOR_GREATER_THAN,
- QueryObjectModelConstants.JCR_OPERATOR_GREATER_THAN_OR_EQUAL_TO, or
- QueryObjectModelConstants.JCR_OPERATOR_LIKE
 
- right- the second operand; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
propertyExistencepublic PropertyExistence propertyExistence(String propertyName) throws InvalidQueryException, RepositoryException Tests the existence of a property in the default selector.- Parameters:
- propertyName- the property name; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
propertyExistencepublic PropertyExistence propertyExistence(String selectorName, String propertyName) throws InvalidQueryException, RepositoryException Tests the existence of a property in the specified selector.- Specified by:
- propertyExistencein interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- propertyName- the property name; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
fullTextSearchpublic FullTextSearch fullTextSearch(String propertyName, StaticOperand fullTextSearchExpression) throws InvalidQueryException, RepositoryException Performs a full-text search against the default selector.- Parameters:
- propertyName- the property name, or null to search all full-text indexed properties of the node (or node subtree, in some implementations)
- fullTextSearchExpression- the full-text search expression; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
fullTextSearchpublic FullTextSearch fullTextSearch(String selectorName, String propertyName, StaticOperand fullTextSearchExpression) throws InvalidQueryException, RepositoryException Performs a full-text search against the specified selector.- Specified by:
- fullTextSearchin interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- propertyName- the property name, or null to search all full-text indexed properties of the node (or node subtree, in some implementations)
- fullTextSearchExpression- the full-text search expression; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
sameNodepublic SameNode sameNode(String path) throws InvalidQueryException, RepositoryException Tests whether a node in the default selector is reachable by a specified absolute path.- Parameters:
- path- an absolute path; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
sameNodepublic SameNode sameNode(String selectorName, String path) throws InvalidQueryException, RepositoryException Tests whether a node in the specified selector is reachable by a specified absolute path.- Specified by:
- sameNodein interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- path- an absolute path; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
childNodepublic ChildNode childNode(String path) throws InvalidQueryException, RepositoryException Tests whether a node in the default selector is a child of a node reachable by a specified absolute path.- Parameters:
- path- an absolute path; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
childNodepublic ChildNode childNode(String selectorName, String path) throws InvalidQueryException, RepositoryException Tests whether a node in the specified selector is a child of a node reachable by a specified absolute path.- Specified by:
- childNodein interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- path- an absolute path; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
descendantNodepublic DescendantNode descendantNode(String path) throws InvalidQueryException, RepositoryException Tests whether a node in the default selector is a descendant of a node reachable by a specified absolute path.- Parameters:
- path- an absolute path; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
descendantNodepublic DescendantNode descendantNode(String selectorName, String path) throws InvalidQueryException, RepositoryException Tests whether a node in the specified selector is a descendant of a node reachable by a specified absolute path.- Specified by:
- descendantNodein interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- path- an absolute path; non-null
- Returns:
- the constraint; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
propertyValuepublic PropertyValue propertyValue(String propertyName) throws InvalidQueryException, RepositoryException Evaluates to the value (or values, if multi-valued) of a property of the default selector.- Parameters:
- propertyName- the property name; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
propertyValuepublic PropertyValue propertyValue(String selectorName, String propertyName) throws InvalidQueryException, RepositoryException Evaluates to the value (or values, if multi-valued) of a property in the specified selector.- Specified by:
- propertyValuein interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- propertyName- the property name; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
lengthpublic Length length(PropertyValue propertyValue) throws InvalidQueryException, RepositoryException Evaluates to the length (or lengths, if multi-valued) of a property.- Specified by:
- lengthin interface- QueryObjectModelFactory
- Parameters:
- propertyValue- the property value for which to compute the length; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
nodeNamepublic NodeName nodeName() throws InvalidQueryException, RepositoryException Evaluates to aNAMEvalue equal to the prefix-qualified name of a node in the default selector.- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
nodeNamepublic NodeName nodeName(String selectorName) throws InvalidQueryException, RepositoryException Evaluates to aNAMEvalue equal to the prefix-qualified name of a node in the specified selector.- Specified by:
- nodeNamein interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
nodeLocalNamepublic NodeLocalName nodeLocalName() throws InvalidQueryException, RepositoryException Evaluates to aNAMEvalue equal to the local (unprefixed) name of a node in the default selector.- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
nodeLocalNamepublic NodeLocalName nodeLocalName(String selectorName) throws InvalidQueryException, RepositoryException Evaluates to aNAMEvalue equal to the local (unprefixed) name of a node in the specified selector.- Specified by:
- nodeLocalNamein interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
fullTextSearchScorepublic FullTextSearchScore fullTextSearchScore() throws InvalidQueryException, RepositoryException Evaluates to aDOUBLEvalue equal to the full-text search score of a node in the default selector.- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
fullTextSearchScorepublic FullTextSearchScore fullTextSearchScore(String selectorName) throws InvalidQueryException, RepositoryException Evaluates to aDOUBLEvalue equal to the full-text search score of a node in the specified selector.- Specified by:
- fullTextSearchScorein interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
lowerCasepublic LowerCase lowerCase(DynamicOperand operand) throws InvalidQueryException, RepositoryException Evaluates to the lower-case string value (or values, if multi-valued) of an operand.- Specified by:
- lowerCasein interface- QueryObjectModelFactory
- Parameters:
- operand- the operand whose value is converted to a lower-case string; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
upperCasepublic UpperCase upperCase(DynamicOperand operand) throws InvalidQueryException, RepositoryException Evaluates to the upper-case string value (or values, if multi-valued) of an operand.- Specified by:
- upperCasein interface- QueryObjectModelFactory
- Parameters:
- operand- the operand whose value is converted to a upper-case string; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
bindVariablepublic BindVariableValue bindVariable(String bindVariableName) throws InvalidQueryException, RepositoryException Evaluates to the value of a bind variable.- Specified by:
- bindVariablein interface- QueryObjectModelFactory
- Parameters:
- bindVariableName- the bind variable name; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
literalpublic Literal literal(Value value) throws InvalidQueryException, RepositoryException Evaluates to a literal value.- Specified by:
- literalin interface- QueryObjectModelFactory
- Parameters:
- value- a JCR value; non-null
- Returns:
- the operand; non-null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
ascendingpublic Ordering ascending(DynamicOperand operand) throws InvalidQueryException, RepositoryException Orders by the value of the specified operand, in ascending order.- Specified by:
- ascendingin interface- QueryObjectModelFactory
- Parameters:
- operand- the operand by which to order; non-null
- Returns:
- the ordering
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
descendingpublic Ordering descending(DynamicOperand operand) throws InvalidQueryException, RepositoryException Orders by the value of the specified operand, in descending order.- Specified by:
- descendingin interface- QueryObjectModelFactory
- Parameters:
- operand- the operand by which to order; non-null
- Returns:
- the ordering
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 - 
columnpublic Column column(String propertyName) throws InvalidQueryException, RepositoryException Identifies a property in the default selector to include in the tabular view of query results.The column name is the property name. - Parameters:
- propertyName- the property name, or null to include a column for each single-value non-residual property of the selector's node type
- Returns:
- the column; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
columnpublic Column column(String propertyName, String columnName) throws InvalidQueryException, RepositoryException Identifies a property in the default selector to include in the tabular view of query results.- Parameters:
- propertyName- the property name, or null to include a column for each single-value non-residual property of the selector's node type
- columnName- the column name; must be null if- propertyNameis null
- Returns:
- the column; non-null
- Throws:
- InvalidQueryException- if the query has no default selector or is otherwise invalid
- RepositoryException- if the operation otherwise fails
 
 - 
columnpublic Column column(String selectorName, String propertyName, String columnName) throws InvalidQueryException, RepositoryException Identifies a property in the specified selector to include in the tabular view of query results.- Specified by:
- columnin interface- QueryObjectModelFactory
- Parameters:
- selectorName- the selector name; non-null
- propertyName- the property name, or null to include a column for each single-value non-residual property of the selector's node type
- columnName- the column name; if null, defaults to- propertyName; must be null if- propertyNameis null
- Throws:
- InvalidQueryException- if the query is invalid
- RepositoryException- if the operation otherwise fails
 
 
- 
 
-