public abstract class QueryObjectModelFactoryImpl extends Object implements javax.jcr.query.qom.QueryObjectModelFactory
QueryObjectModelFactoryImpl
implements the query object model
factory from JSR 283.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 and Description |
---|
QueryObjectModelFactoryImpl(NamePathResolver resolver) |
Modifier and Type | Method and Description |
---|---|
javax.jcr.query.qom.And |
and(javax.jcr.query.qom.Constraint constraint1,
javax.jcr.query.qom.Constraint constraint2)
Performs a logical conjunction of two other constraints.
|
javax.jcr.query.qom.Ordering |
ascending(javax.jcr.query.qom.DynamicOperand operand)
Orders by the value of the specified operand, in ascending order.
|
javax.jcr.query.qom.BindVariableValue |
bindVariable(String bindVariableName)
Evaluates to the value of a bind variable.
|
javax.jcr.query.qom.ChildNode |
childNode(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.ChildNode |
childNode(String selectorName,
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.ChildNodeJoinCondition |
childNodeJoinCondition(String childSelectorName,
String parentSelectorName)
Tests whether a first selector's node is a child of a second selector's
node.
|
javax.jcr.query.qom.Column |
column(String propertyName)
Identifies a property in the default selector to include in the tabular
view of query results.
|
javax.jcr.query.qom.Column |
column(String propertyName,
String columnName)
Identifies a property in the default selector to include in the tabular
view of query results.
|
javax.jcr.query.qom.Column |
column(String selectorName,
String propertyName,
String columnName)
Identifies a property in the specified selector to include in the tabular
view of query results.
|
javax.jcr.query.qom.Comparison |
comparison(javax.jcr.query.qom.DynamicOperand left,
String operatorName,
javax.jcr.query.qom.StaticOperand right)
Filters node-tuples based on the outcome of a binary operation.
|
protected abstract javax.jcr.query.qom.QueryObjectModel |
createQuery(QueryObjectModelTree qomTree)
Creates a query object model from the internal tree representation.
|
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)
Creates a query with one selector.
|
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)
Creates a query with one or more selectors.
|
javax.jcr.query.qom.DescendantNode |
descendantNode(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.DescendantNode |
descendantNode(String selectorName,
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.DescendantNodeJoinCondition |
descendantNodeJoinCondition(String descendantSelectorName,
String ancestorSelectorName)
Tests whether a first selector's node is a descendant of a second
selector's node.
|
javax.jcr.query.qom.Ordering |
descending(javax.jcr.query.qom.DynamicOperand operand)
Orders by the value of the specified operand, in descending order.
|
javax.jcr.query.qom.EquiJoinCondition |
equiJoinCondition(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.
|
javax.jcr.query.qom.FullTextSearch |
fullTextSearch(String propertyName,
javax.jcr.query.qom.StaticOperand fullTextSearchExpression)
Performs a full-text search against the default selector.
|
javax.jcr.query.qom.FullTextSearch |
fullTextSearch(String selectorName,
String propertyName,
javax.jcr.query.qom.StaticOperand fullTextSearchExpression)
Performs a full-text search against the specified selector.
|
javax.jcr.query.qom.FullTextSearchScore |
fullTextSearchScore()
Evaluates to a
DOUBLE value equal to the full-text search
score of a node in the default selector. |
javax.jcr.query.qom.FullTextSearchScore |
fullTextSearchScore(String selectorName)
Evaluates to a
DOUBLE value equal to the full-text search
score of a node in the specified selector. |
javax.jcr.query.qom.Join |
join(javax.jcr.query.qom.Source left,
javax.jcr.query.qom.Source right,
String joinTypeName,
javax.jcr.query.qom.JoinCondition joinCondition)
Performs a join between two node-tuple sources.
|
javax.jcr.query.qom.Length |
length(javax.jcr.query.qom.PropertyValue propertyValue)
Evaluates to the length (or lengths, if multi-valued) of a property.
|
javax.jcr.query.qom.Literal |
literal(javax.jcr.Value value)
Evaluates to a literal value.
|
javax.jcr.query.qom.LowerCase |
lowerCase(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.NodeLocalName |
nodeLocalName()
Evaluates to a
NAME value equal to the local (unprefixed)
name of a node in the default selector. |
javax.jcr.query.qom.NodeLocalName |
nodeLocalName(String selectorName)
Evaluates to a
NAME value equal to the local (unprefixed)
name of a node in the specified selector. |
javax.jcr.query.qom.NodeName |
nodeName()
Evaluates to a
NAME value equal to the prefix-qualified name
of a node in the default selector. |
javax.jcr.query.qom.NodeName |
nodeName(String selectorName)
Evaluates to a
NAME value equal to the prefix-qualified name
of a node in the specified selector. |
javax.jcr.query.qom.Not |
not(javax.jcr.query.qom.Constraint constraint)
Performs a logical negation of another constraint.
|
javax.jcr.query.qom.Or |
or(javax.jcr.query.qom.Constraint constraint1,
javax.jcr.query.qom.Constraint constraint2)
Performs a logical disjunction of two other constraints.
|
javax.jcr.query.qom.PropertyExistence |
propertyExistence(String propertyName)
Tests the existence of a property in the default selector.
|
javax.jcr.query.qom.PropertyExistence |
propertyExistence(String selectorName,
String propertyName)
Tests the existence of a property in the specified selector.
|
javax.jcr.query.qom.PropertyValue |
propertyValue(String propertyName)
Evaluates to the value (or values, if multi-valued) of a property of the
default selector.
|
javax.jcr.query.qom.PropertyValue |
propertyValue(String selectorName,
String propertyName)
Evaluates to the value (or values, if multi-valued) of a property in the
specified selector.
|
javax.jcr.query.qom.SameNode |
sameNode(String path)
Tests whether a node in the default selector is reachable by a specified
absolute path.
|
javax.jcr.query.qom.SameNode |
sameNode(String selectorName,
String path)
Tests whether a node in the specified selector is reachable by a
specified absolute path.
|
javax.jcr.query.qom.SameNodeJoinCondition |
sameNodeJoinCondition(String selector1Name,
String selector2Name)
Tests whether a first selector's node is the same as a second selector's
node.
|
javax.jcr.query.qom.SameNodeJoinCondition |
sameNodeJoinCondition(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.
|
javax.jcr.query.qom.Selector |
selector(String nodeTypeName)
Selects a subset of the nodes in the repository based on node type.
|
javax.jcr.query.qom.Selector |
selector(String nodeTypeName,
String selectorName)
Selects a subset of the nodes in the repository based on node type.
|
javax.jcr.query.qom.UpperCase |
upperCase(javax.jcr.query.qom.DynamicOperand operand)
Evaluates to the upper-case string value (or values, if multi-valued) of
an operand.
|
public QueryObjectModelFactoryImpl(NamePathResolver resolver)
protected abstract javax.jcr.query.qom.QueryObjectModel createQuery(QueryObjectModelTree qomTree) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
qomTree
- the qom tree.javax.jcr.query.InvalidQueryException
- the the query object model tree is
considered invalid by the query handler
implementation.javax.jcr.RepositoryException
- if any other error occurs.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.RepositoryException
The specified selector will be the default selector of the query.
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 arrayjavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic 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.RepositoryException
If source
is a selector, that selector is the default
selector of the query. Otherwise the query does not have a default
selector.
createQuery
in interface javax.jcr.query.qom.QueryObjectModelFactory
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 arrayjavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Selector selector(String nodeTypeName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
The selector name is the node type name.
nodeTypeName
- the name of the required node type; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Selector selector(String nodeTypeName, String selectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
selector
in interface javax.jcr.query.qom.QueryObjectModelFactory
nodeTypeName
- the name of the required node type; non-nullselectorName
- the selector name; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Join join(javax.jcr.query.qom.Source left, javax.jcr.query.qom.Source right, String joinTypeName, javax.jcr.query.qom.JoinCondition joinCondition) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
join
in interface javax.jcr.query.qom.QueryObjectModelFactory
left
- the left node-tuple source; non-nullright
- the right node-tuple source; non-nulljoinTypeName
- either QueryObjectModelConstants.JCR_JOIN_TYPE_INNER
,QueryObjectModelConstants.JCR_JOIN_TYPE_LEFT_OUTER
,QueryObjectModelConstants.JCR_JOIN_TYPE_RIGHT_OUTER
joinCondition
- the join condition; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.EquiJoinCondition equiJoinCondition(String selector1Name, String property1Name, String selector2Name, String property2Name) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
equiJoinCondition
in interface javax.jcr.query.qom.QueryObjectModelFactory
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-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.SameNodeJoinCondition sameNodeJoinCondition(String selector1Name, String selector2Name) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
selector1Name
- the name of the first selector; non-nullselector2Name
- the name of the second selector; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.SameNodeJoinCondition sameNodeJoinCondition(String selector1Name, String selector2Name, String selector2Path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
sameNodeJoinCondition
in interface javax.jcr.query.qom.QueryObjectModelFactory
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-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.ChildNodeJoinCondition childNodeJoinCondition(String childSelectorName, String parentSelectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
childNodeJoinCondition
in interface javax.jcr.query.qom.QueryObjectModelFactory
childSelectorName
- the name of the child selector; non-nullparentSelectorName
- the name of the parent selector; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.DescendantNodeJoinCondition descendantNodeJoinCondition(String descendantSelectorName, String ancestorSelectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
descendantNodeJoinCondition
in interface javax.jcr.query.qom.QueryObjectModelFactory
descendantSelectorName
- the name of the descendant selector;
non-nullancestorSelectorName
- the name of the ancestor selector;
non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic 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.RepositoryException
and
in interface javax.jcr.query.qom.QueryObjectModelFactory
constraint1
- the first constraint; non-nullconstraint2
- the second constraint; non-nullAnd
constraint; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic 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.RepositoryException
or
in interface javax.jcr.query.qom.QueryObjectModelFactory
constraint1
- the first constraint; non-nullconstraint2
- the second constraint; non-nullOr
constraint; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Not not(javax.jcr.query.qom.Constraint constraint) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
not
in interface javax.jcr.query.qom.QueryObjectModelFactory
constraint
- the constraint to be negated; non-nullNot
constraint; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Comparison comparison(javax.jcr.query.qom.DynamicOperand left, String operatorName, javax.jcr.query.qom.StaticOperand right) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
comparison
in interface javax.jcr.query.qom.QueryObjectModelFactory
left
- the first operand; non-nulloperatorName
- 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
, orQueryObjectModelConstants.JCR_OPERATOR_LIKE
right
- the second operand; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.PropertyExistence propertyExistence(String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
propertyName
- the property name; non-nulljavax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.PropertyExistence propertyExistence(String selectorName, String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
propertyExistence
in interface javax.jcr.query.qom.QueryObjectModelFactory
selectorName
- the selector name; non-nullpropertyName
- the property name; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.FullTextSearch fullTextSearch(String propertyName, javax.jcr.query.qom.StaticOperand fullTextSearchExpression) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
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-nulljavax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.FullTextSearch fullTextSearch(String selectorName, String propertyName, javax.jcr.query.qom.StaticOperand fullTextSearchExpression) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
fullTextSearch
in interface javax.jcr.query.qom.QueryObjectModelFactory
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-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.SameNode sameNode(String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
path
- an absolute path; non-nulljavax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.SameNode sameNode(String selectorName, String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
sameNode
in interface javax.jcr.query.qom.QueryObjectModelFactory
selectorName
- the selector name; non-nullpath
- an absolute path; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.ChildNode childNode(String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
path
- an absolute path; non-nulljavax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.ChildNode childNode(String selectorName, String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
childNode
in interface javax.jcr.query.qom.QueryObjectModelFactory
selectorName
- the selector name; non-nullpath
- an absolute path; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.DescendantNode descendantNode(String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
path
- an absolute path; non-nulljavax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.DescendantNode descendantNode(String selectorName, String path) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
descendantNode
in interface javax.jcr.query.qom.QueryObjectModelFactory
selectorName
- the selector name; non-nullpath
- an absolute path; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.PropertyValue propertyValue(String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
propertyName
- the property name; non-nulljavax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.PropertyValue propertyValue(String selectorName, String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
propertyValue
in interface javax.jcr.query.qom.QueryObjectModelFactory
selectorName
- the selector name; non-nullpropertyName
- the property name; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Length length(javax.jcr.query.qom.PropertyValue propertyValue) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
length
in interface javax.jcr.query.qom.QueryObjectModelFactory
propertyValue
- the property value for which to compute the length;
non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.NodeName nodeName() throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
NAME
value equal to the prefix-qualified name
of a node in the default selector.javax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.NodeName nodeName(String selectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
NAME
value equal to the prefix-qualified name
of a node in the specified selector.nodeName
in interface javax.jcr.query.qom.QueryObjectModelFactory
selectorName
- the selector name; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.NodeLocalName nodeLocalName() throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
NAME
value equal to the local (unprefixed)
name of a node in the default selector.javax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.NodeLocalName nodeLocalName(String selectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
NAME
value equal to the local (unprefixed)
name of a node in the specified selector.nodeLocalName
in interface javax.jcr.query.qom.QueryObjectModelFactory
selectorName
- the selector name; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.FullTextSearchScore fullTextSearchScore() throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
DOUBLE
value equal to the full-text search
score of a node in the default selector.javax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.FullTextSearchScore fullTextSearchScore(String selectorName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
DOUBLE
value equal to the full-text search
score of a node in the specified selector.fullTextSearchScore
in interface javax.jcr.query.qom.QueryObjectModelFactory
selectorName
- the selector name; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.LowerCase lowerCase(javax.jcr.query.qom.DynamicOperand operand) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
lowerCase
in interface javax.jcr.query.qom.QueryObjectModelFactory
operand
- the operand whose value is converted to a lower-case
string; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.UpperCase upperCase(javax.jcr.query.qom.DynamicOperand operand) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
upperCase
in interface javax.jcr.query.qom.QueryObjectModelFactory
operand
- the operand whose value is converted to a upper-case
string; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.BindVariableValue bindVariable(String bindVariableName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
bindVariable
in interface javax.jcr.query.qom.QueryObjectModelFactory
bindVariableName
- the bind variable name; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Literal literal(javax.jcr.Value value) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
literal
in interface javax.jcr.query.qom.QueryObjectModelFactory
value
- a JCR value; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Ordering ascending(javax.jcr.query.qom.DynamicOperand operand) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
ascending
in interface javax.jcr.query.qom.QueryObjectModelFactory
operand
- the operand by which to order; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Ordering descending(javax.jcr.query.qom.DynamicOperand operand) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
descending
in interface javax.jcr.query.qom.QueryObjectModelFactory
operand
- the operand by which to order; non-nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Column column(String propertyName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
The column name is the property name.
propertyName
- the property name, or null to include a column for
each single-value non-residual property of the
selector's node typejavax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Column column(String propertyName, String columnName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
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 if propertyName
is nulljavax.jcr.query.InvalidQueryException
- if the query has no default
selector or is otherwise invalidjavax.jcr.RepositoryException
- if the operation otherwise failspublic javax.jcr.query.qom.Column column(String selectorName, String propertyName, String columnName) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
column
in interface javax.jcr.query.qom.QueryObjectModelFactory
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 to
propertyName
; must be null if
propertyName
is nulljavax.jcr.query.InvalidQueryException
- if the query is invalidjavax.jcr.RepositoryException
- if the operation otherwise failsCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.