| javax.jcr.query.qom.QueryObjectModelFactory
QueryObjectModelFactory | public interface QueryObjectModelFactory extends QueryObjectModelConstants(Code) | | A QueryObjectModelFactory creates instances of the JCR query
object model.
Refer to
QueryObjectModel for a description of the query object
model.
since: JCR 2.0 |
Method Summary | |
public And | and(Constraint constraint1, Constraint constraint2) Performs a logical conjunction of two other constraints. | public Ordering | ascending(DynamicOperand operand) Orders by the value of the specified operand, in ascending order. | public BindVariableValue | bindVariable(String bindVariableName) Evaluates to the value of a bind variable. | public ChildNode | childNode(String path) Tests whether a node in the default selector is a child of a node
reachable by a specified absolute path. | public 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. | public ChildNodeJoinCondition | childNodeJoinCondition(String childSelectorName, String parentSelectorName) Tests whether a first selector's node is a child of a second selector's
node. | public Column | column(String propertyName) Identifies a property in the default selector to include in the tabular
view of query results. | public Column | column(String propertyName, String columnName) Identifies a property in the default selector to include in the tabular
view of query results. | public Column | column(String selectorName, String propertyName, String columnName) Identifies a property in the specified selector to include in the tabular
view of query results. | public Comparison | comparison(DynamicOperand operand1, int operator, StaticOperand operand2) Filters node-tuples based on the outcome of a binary operation. | public QueryObjectModel | createQuery(Selector selector, Constraint constraint, Ordering[] orderings, Column[] columns) Creates a query with one selector. | public QueryObjectModel | createQuery(Source source, Constraint constraint, Ordering[] orderings, Column[] columns) Creates a query with one or more selectors.
If source is a selector, that selector is the default
selector of the query. | public DescendantNode | descendantNode(String path) Tests whether a node in the default selector is a descendant of a node
reachable by a specified absolute path. | public 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. | public DescendantNodeJoinCondition | descendantNodeJoinCondition(String descendantSelectorName, String ancestorSelectorName) Tests whether a first selector's node is a descendant of a second
selector's node. | public Ordering | descending(DynamicOperand operand) Orders by the value of the specified operand, in descending order. | public 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. | public FullTextSearch | fullTextSearch(String propertyName, String fullTextSearchExpression) Performs a full-text search against the default selector. | public FullTextSearch | fullTextSearch(String selectorName, String propertyName, String fullTextSearchExpression) Performs a full-text search against the specified selector. | public FullTextSearchScore | fullTextSearchScore() Evaluates to a DOUBLE value equal to the full-text search
score of a node in the default selector. | public FullTextSearchScore | fullTextSearchScore(String selectorName) Evaluates to a DOUBLE value equal to the full-text search
score of a node in the specified selector. | public Join | join(Source left, Source right, int joinType, JoinCondition joinCondition) Performs a join between two node-tuple sources. | public Length | length(PropertyValue propertyValue) Evaluates to the length (or lengths, if multi-valued) of a property. | public LowerCase | lowerCase(DynamicOperand operand) Evaluates to the lower-case string value (or values, if multi-valued)
of an operand. | public NodeLocalName | nodeLocalName() Evaluates to a NAME value equal to the local (unprefixed)
name of a node in the default selector. | public NodeLocalName | nodeLocalName(String selectorName) Evaluates to a NAME value equal to the local (unprefixed)
name of a node in the specified selector. | public NodeName | nodeName() Evaluates to a NAME value equal to the prefix-qualified name
of a node in the default selector. | public NodeName | nodeName(String selectorName) Evaluates to a NAME value equal to the prefix-qualified name
of a node in the specified selector. | public Not | not(Constraint constraint) Performs a logical negation of another constraint. | public Or | or(Constraint constraint1, Constraint constraint2) Performs a logical disjunction of two other constraints. | public PropertyExistence | propertyExistence(String propertyName) Tests the existence of a property in the default selector. | public PropertyExistence | propertyExistence(String selectorName, String propertyName) Tests the existence of a property in the specified selector. | public PropertyValue | propertyValue(String propertyName) Evaluates to the value (or values, if multi-valued) of a property of
the default selector. | public PropertyValue | propertyValue(String selectorName, String propertyName) Evaluates to the value (or values, if multi-valued) of a property in the
specified selector. | public SameNode | sameNode(String path) Tests whether a node in the default selector is reachable by a specified
absolute path. | public SameNode | sameNode(String selectorName, String path) Tests whether a node in the specified selector is reachable by a specified
absolute path. | public SameNodeJoinCondition | sameNodeJoinCondition(String selector1Name, String selector2Name) Tests whether a first selector's node is the same as a second selector's
node. | public 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. | public Selector | selector(String nodeTypeName) Selects a subset of the nodes in the repository based on node type. | public Selector | selector(String nodeTypeName, String selectorName) Selects a subset of the nodes in the repository based on node type. | public UpperCase | upperCase(DynamicOperand operand) Evaluates to the upper-case string value (or values, if multi-valued)
of an operand. |
column | public Column column(String propertyName) throws InvalidQueryException, RepositoryException(Code) | | 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 columnfor each single-value non-residual property ofthe selector's node type the column; non-null throws: InvalidQueryException - if the query has no default selectoror is otherwise invalid throws: RepositoryException - if the operation otherwise fails |
column | public Column column(String propertyName, String columnName) throws InvalidQueryException, RepositoryException(Code) | | 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 columnfor each single-value non-residual property ofthe selector's node type Parameters: columnName - the column name; must be null ifpropertyName is null the column; non-null throws: InvalidQueryException - if the query has no default selectoror is otherwise invalid throws: RepositoryException - if the operation otherwise fails |
column | public Column column(String selectorName, String propertyName, String columnName) throws InvalidQueryException, RepositoryException(Code) | | Identifies a property in the specified selector to include in the tabular
view of query results.
Parameters: selectorName - the selector name; non-null Parameters: propertyName - the property name, or null to include a columnfor each single-value non-residual property ofthe selector's node type Parameters: columnName - the column name; if null, defaults topropertyName ; must be null ifpropertyName is null throws: InvalidQueryException - if the query is invalid throws: RepositoryException - if the operation otherwise fails |
createQuery | public QueryObjectModel createQuery(Selector selector, Constraint constraint, Ordering[] orderings, Column[] columns) throws InvalidQueryException, RepositoryException(Code) | | Creates a query with one selector.
The specified selector will be the default selector of the query.
Parameters: selector - the selector; non-null Parameters: constraint - the constraint, or null if none Parameters: orderings - zero or more orderings; null is equivalent to azero-length array Parameters: columns - the columns; null is equivalent to a zero-lengtharray the query; non-null throws: InvalidQueryException - if the query is invalid throws: RepositoryException - if the operation otherwise fails |
createQuery | public QueryObjectModel createQuery(Source source, Constraint constraint, Ordering[] orderings, Column[] columns) throws InvalidQueryException, RepositoryException(Code) | | Creates a query with one or more selectors.
If source is a selector, that selector is the default
selector of the query. Otherwise the query does not have a default
selector.
Parameters: source - the node-tuple source; non-null Parameters: constraint - the constraint, or null if none Parameters: orderings - zero or more orderings; null is equivalent to azero-length array Parameters: columns - the columns; null is equivalent to a zero-lengtharray the query; non-null throws: InvalidQueryException - if the query is invalid throws: RepositoryException - if the operation otherwise fails |
equiJoinCondition | public EquiJoinCondition equiJoinCondition(String selector1Name, String property1Name, String selector2Name, String property2Name) throws InvalidQueryException, RepositoryException(Code) | | Tests whether the value of a property in a first selector is equal to the
value of a property in a second selector.
Parameters: selector1Name - the name of the first selector; non-null Parameters: property1Name - the property name in the first selector; non-null Parameters: selector2Name - the name of the second selector; non-null Parameters: property2Name - the property name in the second selector; non-null the constraint; non-null throws: InvalidQueryException - if the query is invalid throws: RepositoryException - if the operation otherwise fails |
fullTextSearch | public FullTextSearch fullTextSearch(String propertyName, String fullTextSearchExpression) throws InvalidQueryException, RepositoryException(Code) | | Performs a full-text search against the default selector.
Parameters: propertyName - the property name, or null to search allfull-text indexed properties of the node(or node subtree, in some implementations) Parameters: fullTextSearchExpression - the full-text search expression; non-null the constraint; non-null throws: InvalidQueryException - if the query has no default selectoror is otherwise invalid throws: RepositoryException - if the operation otherwise fails |
fullTextSearch | public FullTextSearch fullTextSearch(String selectorName, String propertyName, String fullTextSearchExpression) throws InvalidQueryException, RepositoryException(Code) | | Performs a full-text search against the specified selector.
Parameters: selectorName - the selector name; non-null Parameters: propertyName - the property name, or null to search allfull-text indexed properties of the node(or node subtree, in some implementations) Parameters: fullTextSearchExpression - the full-text search expression; non-null the constraint; non-null throws: InvalidQueryException - if the query is invalid throws: RepositoryException - if the operation otherwise fails |
sameNodeJoinCondition | public SameNodeJoinCondition sameNodeJoinCondition(String selector1Name, String selector2Name, String selector2Path) throws InvalidQueryException, RepositoryException(Code) | | Tests whether a first selector's node is the same as a node identified
by relative path from a second selector's node.
Parameters: selector1Name - the name of the first selector; non-null Parameters: selector2Name - the name of the second selector; non-null Parameters: selector2Path - the path relative to the second selector; non-null the constraint; non-null throws: InvalidQueryException - if the query is invalid throws: RepositoryException - if the operation otherwise fails |
|
|