Class QueryObjectModelFactoryImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.qom.QueryObjectModelFactoryImpl
-
- All Implemented Interfaces:
javax.jcr.query.qom.QueryObjectModelConstants,javax.jcr.query.qom.QueryObjectModelFactory
public abstract class QueryObjectModelFactoryImpl extends java.lang.Object implements javax.jcr.query.qom.QueryObjectModelFactoryQueryObjectModelFactoryImplimplements the query object model factory from JSR 283.
-
-
Field Summary
-
Fields inherited from interface javax.jcr.query.qom.QueryObjectModelConstants
JCR_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 Summary
Constructors Constructor Description QueryObjectModelFactoryImpl(NamePathResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jcr.query.qom.Andand(javax.jcr.query.qom.Constraint constraint1, javax.jcr.query.qom.Constraint constraint2)Performs a logical conjunction of two other constraints.javax.jcr.query.qom.Orderingascending(javax.jcr.query.qom.DynamicOperand operand)Orders by the value of the specified operand, in ascending order.javax.jcr.query.qom.BindVariableValuebindVariable(java.lang.String bindVariableName)Evaluates to the value of a bind variable.javax.jcr.query.qom.ChildNodechildNode(java.lang.String path)Tests whether a node in the default selector is a child of a node reachable by a specified absolute path.javax.jcr.query.qom.ChildNodechildNode(java.lang.String selectorName, java.lang.String path)Tests whether a node in the specified selector is a child of a node reachable by a specified absolute path.javax.jcr.query.qom.ChildNodeJoinConditionchildNodeJoinCondition(java.lang.String childSelectorName, java.lang.String parentSelectorName)Tests whether a first selector's node is a child of a second selector's node.javax.jcr.query.qom.Columncolumn(java.lang.String propertyName)Identifies a property in the default selector to include in the tabular view of query results.javax.jcr.query.qom.Columncolumn(java.lang.String propertyName, java.lang.String columnName)Identifies a property in the default selector to include in the tabular view of query results.javax.jcr.query.qom.Columncolumn(java.lang.String selectorName, java.lang.String propertyName, java.lang.String columnName)Identifies a property in the specified selector to include in the tabular view of query results.javax.jcr.query.qom.Comparisoncomparison(javax.jcr.query.qom.DynamicOperand left, java.lang.String operatorName, javax.jcr.query.qom.StaticOperand right)Filters node-tuples based on the outcome of a binary operation.javax.jcr.query.qom.QueryObjectModelcreateQuery(javax.jcr.query.qom.Selector selector, javax.jcr.query.qom.Constraint constraint, javax.jcr.query.qom.Ordering[] orderings, javax.jcr.query.qom.Column[] columns)Creates a query with one selector.javax.jcr.query.qom.QueryObjectModelcreateQuery(javax.jcr.query.qom.Source source, javax.jcr.query.qom.Constraint constraint, javax.jcr.query.qom.Ordering[] orderings, javax.jcr.query.qom.Column[] columns)Creates a query with one or more selectors.javax.jcr.query.qom.DescendantNodedescendantNode(java.lang.String path)Tests whether a node in the default selector is a descendant of a node reachable by a specified absolute path.javax.jcr.query.qom.DescendantNodedescendantNode(java.lang.String selectorName, java.lang.String path)Tests whether a node in the specified selector is a descendant of a node reachable by a specified absolute path.javax.jcr.query.qom.DescendantNodeJoinConditiondescendantNodeJoinCondition(java.lang.String descendantSelectorName, java.lang.String ancestorSelectorName)Tests whether a first selector's node is a descendant of a second selector's node.javax.jcr.query.qom.Orderingdescending(javax.jcr.query.qom.DynamicOperand operand)Orders by the value of the specified operand, in descending order.javax.jcr.query.qom.EquiJoinConditionequiJoinCondition(java.lang.String selector1Name, java.lang.String property1Name, java.lang.String selector2Name, java.lang.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.javax.jcr.query.qom.FullTextSearchfullTextSearch(java.lang.String selectorName, java.lang.String propertyName, javax.jcr.query.qom.StaticOperand fullTextSearchExpression)Performs a full-text search against the specified selector.javax.jcr.query.qom.FullTextSearchfullTextSearch(java.lang.String propertyName, javax.jcr.query.qom.StaticOperand fullTextSearchExpression)Performs a full-text search against the default selector.javax.jcr.query.qom.FullTextSearchScorefullTextSearchScore()Evaluates to aDOUBLEvalue equal to the full-text search score of a node in the default selector.javax.jcr.query.qom.FullTextSearchScorefullTextSearchScore(java.lang.String selectorName)Evaluates to aDOUBLEvalue equal to the full-text search score of a node in the specified selector.javax.jcr.query.qom.Joinjoin(javax.jcr.query.qom.Source left, javax.jcr.query.qom.Source right, java.lang.String joinTypeName, javax.jcr.query.qom.JoinCondition joinCondition)Performs a join between two node-tuple sources.javax.jcr.query.qom.Lengthlength(javax.jcr.query.qom.PropertyValue propertyValue)Evaluates to the length (or lengths, if multi-valued) of a property.javax.jcr.query.qom.Literalliteral(javax.jcr.Value value)Evaluates to a literal value.javax.jcr.query.qom.LowerCaselowerCase(javax.jcr.query.qom.DynamicOperand operand)Evaluates to the lower-case string value (or values, if multi-valued) of an operand.javax.jcr.query.qom.NodeLocalNamenodeLocalName()Evaluates to aNAMEvalue equal to the local (unprefixed) name of a node in the default selector.javax.jcr.query.qom.NodeLocalNamenodeLocalName(java.lang.String selectorName)Evaluates to aNAMEvalue equal to the local (unprefixed) name of a node in the specified selector.javax.jcr.query.qom.NodeNamenodeName()Evaluates to aNAMEvalue equal to the prefix-qualified name of a node in the default selector.javax.jcr.query.qom.NodeNamenodeName(java.lang.String selectorName)Evaluates to aNAMEvalue equal to the prefix-qualified name of a node in the specified selector.javax.jcr.query.qom.Notnot(javax.jcr.query.qom.Constraint constraint)Performs a logical negation of another constraint.javax.jcr.query.qom.Oror(javax.jcr.query.qom.Constraint constraint1, javax.jcr.query.qom.Constraint constraint2)Performs a logical disjunction of two other constraints.javax.jcr.query.qom.PropertyExistencepropertyExistence(java.lang.String propertyName)Tests the existence of a property in the default selector.javax.jcr.query.qom.PropertyExistencepropertyExistence(java.lang.String selectorName, java.lang.String propertyName)Tests the existence of a property in the specified selector.javax.jcr.query.qom.PropertyValuepropertyValue(java.lang.String propertyName)Evaluates to the value (or values, if multi-valued) of a property of the default selector.javax.jcr.query.qom.PropertyValuepropertyValue(java.lang.String selectorName, java.lang.String propertyName)Evaluates to the value (or values, if multi-valued) of a property in the specified selector.javax.jcr.query.qom.SameNodesameNode(java.lang.String path)Tests whether a node in the default selector is reachable by a specified absolute path.javax.jcr.query.qom.SameNodesameNode(java.lang.String selectorName, java.lang.String path)Tests whether a node in the specified selector is reachable by a specified absolute path.javax.jcr.query.qom.SameNodeJoinConditionsameNodeJoinCondition(java.lang.String selector1Name, java.lang.String selector2Name)Tests whether a first selector's node is the same as a second selector's node.javax.jcr.query.qom.SameNodeJoinConditionsameNodeJoinCondition(java.lang.String selector1Name, java.lang.String selector2Name, java.lang.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.javax.jcr.query.qom.Selectorselector(java.lang.String nodeTypeName)Selects a subset of the nodes in the repository based on node type.javax.jcr.query.qom.Selectorselector(java.lang.String nodeTypeName, java.lang.String selectorName)Selects a subset of the nodes in the repository based on node type.javax.jcr.query.qom.UpperCaseupperCase(javax.jcr.query.qom.DynamicOperand operand)Evaluates to the upper-case string value (or values, if multi-valued) of an operand.
-
-
-
Constructor Detail
-
QueryObjectModelFactoryImpl
public QueryObjectModelFactoryImpl(NamePathResolver resolver)
-
-
Method Detail
-
createQuery
public javax.jcr.query.qom.QueryObjectModel createQuery(javax.jcr.query.qom.Selector selector, javax.jcr.query.qom.Constraint constraint, javax.jcr.query.qom.Ordering[] orderings, javax.jcr.query.qom.Column[] columns) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionCreates a query with one selector.The specified selector will be the default selector of the query.
- Parameters:
selector- the selector; non-nullconstraint- the constraint, or null if noneorderings- zero or more orderings; null is equivalent to a zero-length arraycolumns- the columns; null is equivalent to a zero-length array- Returns:
- the query; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
createQuery
public javax.jcr.query.qom.QueryObjectModel createQuery(javax.jcr.query.qom.Source source, javax.jcr.query.qom.Constraint constraint, javax.jcr.query.qom.Ordering[] orderings, javax.jcr.query.qom.Column[] columns) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionCreates 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 interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
source- the node-tuple source; non-nullconstraint- the constraint, or null if noneorderings- zero or more orderings; null is equivalent to a zero-length arraycolumns- the columns; null is equivalent to a zero-length array- Returns:
- the query; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
selector
public javax.jcr.query.qom.Selector selector(java.lang.String nodeTypeName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionSelects 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:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
selector
public javax.jcr.query.qom.Selector selector(java.lang.String nodeTypeName, java.lang.String selectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionSelects a subset of the nodes in the repository based on node type.- Specified by:
selectorin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
nodeTypeName- the name of the required node type; non-nullselectorName- the selector name; non-null- Returns:
- the selector; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
join
public javax.jcr.query.qom.Join join(javax.jcr.query.qom.Source left, javax.jcr.query.qom.Source right, java.lang.String joinTypeName, javax.jcr.query.qom.JoinCondition joinCondition) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionPerforms a join between two node-tuple sources.- Specified by:
joinin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
left- the left node-tuple source; non-nullright- the right node-tuple source; non-nulljoinTypeName- eitherQueryObjectModelConstants.JCR_JOIN_TYPE_INNER,QueryObjectModelConstants.JCR_JOIN_TYPE_LEFT_OUTER,QueryObjectModelConstants.JCR_JOIN_TYPE_RIGHT_OUTER
joinCondition- the join condition; non-null- Returns:
- the join; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
equiJoinCondition
public javax.jcr.query.qom.EquiJoinCondition equiJoinCondition(java.lang.String selector1Name, java.lang.String property1Name, java.lang.String selector2Name, java.lang.String property2Name) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests 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 interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selector1Name- the name of the first selector; non-nullproperty1Name- the property name in the first selector; non-nullselector2Name- the name of the second selector; non-nullproperty2Name- the property name in the second selector; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
sameNodeJoinCondition
public javax.jcr.query.qom.SameNodeJoinCondition sameNodeJoinCondition(java.lang.String selector1Name, java.lang.String selector2Name) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests whether a first selector's node is the same as a second selector's node.- Parameters:
selector1Name- the name of the first selector; non-nullselector2Name- the name of the second selector; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
sameNodeJoinCondition
public javax.jcr.query.qom.SameNodeJoinCondition sameNodeJoinCondition(java.lang.String selector1Name, java.lang.String selector2Name, java.lang.String selector2Path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests 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 interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selector1Name- the name of the first selector; non-nullselector2Name- the name of the second selector; non-nullselector2Path- the path relative to the second selector; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
childNodeJoinCondition
public javax.jcr.query.qom.ChildNodeJoinCondition childNodeJoinCondition(java.lang.String childSelectorName, java.lang.String parentSelectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests whether a first selector's node is a child of a second selector's node.- Specified by:
childNodeJoinConditionin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
childSelectorName- the name of the child selector; non-nullparentSelectorName- the name of the parent selector; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
descendantNodeJoinCondition
public javax.jcr.query.qom.DescendantNodeJoinCondition descendantNodeJoinCondition(java.lang.String descendantSelectorName, java.lang.String ancestorSelectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests whether a first selector's node is a descendant of a second selector's node.- Specified by:
descendantNodeJoinConditionin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
descendantSelectorName- the name of the descendant selector; non-nullancestorSelectorName- the name of the ancestor selector; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
and
public javax.jcr.query.qom.And and(javax.jcr.query.qom.Constraint constraint1, javax.jcr.query.qom.Constraint constraint2) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionPerforms a logical conjunction of two other constraints.- Specified by:
andin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
constraint1- the first constraint; non-nullconstraint2- the second constraint; non-null- Returns:
- the
Andconstraint; non-null - Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
or
public javax.jcr.query.qom.Or or(javax.jcr.query.qom.Constraint constraint1, javax.jcr.query.qom.Constraint constraint2) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionPerforms a logical disjunction of two other constraints.- Specified by:
orin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
constraint1- the first constraint; non-nullconstraint2- the second constraint; non-null- Returns:
- the
Orconstraint; non-null - Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
not
public javax.jcr.query.qom.Not not(javax.jcr.query.qom.Constraint constraint) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionPerforms a logical negation of another constraint.- Specified by:
notin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
constraint- the constraint to be negated; non-null- Returns:
- the
Notconstraint; non-null - Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
comparison
public javax.jcr.query.qom.Comparison comparison(javax.jcr.query.qom.DynamicOperand left, java.lang.String operatorName, javax.jcr.query.qom.StaticOperand right) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionFilters node-tuples based on the outcome of a binary operation.- Specified by:
comparisonin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
left- the first operand; non-nulloperatorName- the operator; eitherQueryObjectModelConstants.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, orQueryObjectModelConstants.JCR_OPERATOR_LIKE
right- the second operand; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
propertyExistence
public javax.jcr.query.qom.PropertyExistence propertyExistence(java.lang.String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests the existence of a property in the default selector.- Parameters:
propertyName- the property name; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
propertyExistence
public javax.jcr.query.qom.PropertyExistence propertyExistence(java.lang.String selectorName, java.lang.String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests the existence of a property in the specified selector.- Specified by:
propertyExistencein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-nullpropertyName- the property name; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
fullTextSearch
public javax.jcr.query.qom.FullTextSearch fullTextSearch(java.lang.String propertyName, javax.jcr.query.qom.StaticOperand fullTextSearchExpression) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionPerforms 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:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
fullTextSearch
public javax.jcr.query.qom.FullTextSearch fullTextSearch(java.lang.String selectorName, java.lang.String propertyName, javax.jcr.query.qom.StaticOperand fullTextSearchExpression) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionPerforms a full-text search against the specified selector.- Specified by:
fullTextSearchin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-nullpropertyName- 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:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
sameNode
public javax.jcr.query.qom.SameNode sameNode(java.lang.String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests 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:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
sameNode
public javax.jcr.query.qom.SameNode sameNode(java.lang.String selectorName, java.lang.String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests whether a node in the specified selector is reachable by a specified absolute path.- Specified by:
sameNodein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-nullpath- an absolute path; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
childNode
public javax.jcr.query.qom.ChildNode childNode(java.lang.String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests 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:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
childNode
public javax.jcr.query.qom.ChildNode childNode(java.lang.String selectorName, java.lang.String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests whether a node in the specified selector is a child of a node reachable by a specified absolute path.- Specified by:
childNodein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-nullpath- an absolute path; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
descendantNode
public javax.jcr.query.qom.DescendantNode descendantNode(java.lang.String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests 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:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
descendantNode
public javax.jcr.query.qom.DescendantNode descendantNode(java.lang.String selectorName, java.lang.String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionTests whether a node in the specified selector is a descendant of a node reachable by a specified absolute path.- Specified by:
descendantNodein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-nullpath- an absolute path; non-null- Returns:
- the constraint; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
propertyValue
public javax.jcr.query.qom.PropertyValue propertyValue(java.lang.String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates 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:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
propertyValue
public javax.jcr.query.qom.PropertyValue propertyValue(java.lang.String selectorName, java.lang.String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to the value (or values, if multi-valued) of a property in the specified selector.- Specified by:
propertyValuein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-nullpropertyName- the property name; non-null- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
length
public javax.jcr.query.qom.Length length(javax.jcr.query.qom.PropertyValue propertyValue) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to the length (or lengths, if multi-valued) of a property.- Specified by:
lengthin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
propertyValue- the property value for which to compute the length; non-null- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
nodeName
public javax.jcr.query.qom.NodeName nodeName() throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to aNAMEvalue equal to the prefix-qualified name of a node in the default selector.- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
nodeName
public javax.jcr.query.qom.NodeName nodeName(java.lang.String selectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to aNAMEvalue equal to the prefix-qualified name of a node in the specified selector.- Specified by:
nodeNamein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-null- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
nodeLocalName
public javax.jcr.query.qom.NodeLocalName nodeLocalName() throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to aNAMEvalue equal to the local (unprefixed) name of a node in the default selector.- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
nodeLocalName
public javax.jcr.query.qom.NodeLocalName nodeLocalName(java.lang.String selectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to aNAMEvalue equal to the local (unprefixed) name of a node in the specified selector.- Specified by:
nodeLocalNamein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-null- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
fullTextSearchScore
public javax.jcr.query.qom.FullTextSearchScore fullTextSearchScore() throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to aDOUBLEvalue equal to the full-text search score of a node in the default selector.- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
fullTextSearchScore
public javax.jcr.query.qom.FullTextSearchScore fullTextSearchScore(java.lang.String selectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to aDOUBLEvalue equal to the full-text search score of a node in the specified selector.- Specified by:
fullTextSearchScorein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-null- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
lowerCase
public javax.jcr.query.qom.LowerCase lowerCase(javax.jcr.query.qom.DynamicOperand operand) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to the lower-case string value (or values, if multi-valued) of an operand.- Specified by:
lowerCasein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
operand- the operand whose value is converted to a lower-case string; non-null- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
upperCase
public javax.jcr.query.qom.UpperCase upperCase(javax.jcr.query.qom.DynamicOperand operand) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to the upper-case string value (or values, if multi-valued) of an operand.- Specified by:
upperCasein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
operand- the operand whose value is converted to a upper-case string; non-null- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
bindVariable
public javax.jcr.query.qom.BindVariableValue bindVariable(java.lang.String bindVariableName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to the value of a bind variable.- Specified by:
bindVariablein interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
bindVariableName- the bind variable name; non-null- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
literal
public javax.jcr.query.qom.Literal literal(javax.jcr.Value value) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionEvaluates to a literal value.- Specified by:
literalin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
value- a JCR value; non-null- Returns:
- the operand; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
ascending
public javax.jcr.query.qom.Ordering ascending(javax.jcr.query.qom.DynamicOperand operand) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionOrders by the value of the specified operand, in ascending order.- Specified by:
ascendingin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
operand- the operand by which to order; non-null- Returns:
- the ordering
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
descending
public javax.jcr.query.qom.Ordering descending(javax.jcr.query.qom.DynamicOperand operand) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionOrders by the value of the specified operand, in descending order.- Specified by:
descendingin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
operand- the operand by which to order; non-null- Returns:
- the ordering
- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
column
public javax.jcr.query.qom.Column column(java.lang.String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionIdentifies 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:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
column
public javax.jcr.query.qom.Column column(java.lang.String propertyName, java.lang.String columnName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionIdentifies 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 typecolumnName- the column name; must be null ifpropertyNameis null- Returns:
- the column; non-null
- Throws:
javax.jcr.query.InvalidQueryException- if the query has no default selector or is otherwise invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
column
public javax.jcr.query.qom.Column column(java.lang.String selectorName, java.lang.String propertyName, java.lang.String columnName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryExceptionIdentifies a property in the specified selector to include in the tabular view of query results.- Specified by:
columnin interfacejavax.jcr.query.qom.QueryObjectModelFactory- Parameters:
selectorName- the selector name; non-nullpropertyName- the property name, or null to include a column for each single-value non-residual property of the selector's node typecolumnName- the column name; if null, defaults topropertyName; must be null ifpropertyNameis null- Throws:
javax.jcr.query.InvalidQueryException- if the query is invalidjavax.jcr.RepositoryException- if the operation otherwise fails
-
-