|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.search.query.QueryBuilder.ConstraintBuilder
public class QueryBuilder.ConstraintBuilder
| Constructor Summary | |
|---|---|
protected |
QueryBuilder.ConstraintBuilder(QueryBuilder.ConstraintBuilder parent)
|
| Method Summary | |
|---|---|
QueryBuilder.ConstraintBuilder |
and()
Signal that the previous constraint clause be AND-ed together with another constraint clause that will be defined immediately after this method call. |
protected QueryBuilder.ConstraintBuilder |
buildLogicalConstraint()
|
QueryBuilder.ConstraintBuilder |
closeParen()
Complete the specification of a constraint clause, and return the builder for the parent constraint clause. |
protected QueryBuilder.ComparisonBuilder |
comparisonBuilder(DynamicOperand operand)
|
QueryBuilder.ComparisonBuilder |
depth(String table)
Constrains the nodes in the the supplied table based upon criteria on the node's depth. |
QueryBuilder |
end()
Complete this constraint specification. |
QueryBuilder.ComparisonBuilder |
fullTextSearchScore(String table)
Constrains the nodes in the the supplied table such that they must satisfy the supplied full-text search on the nodes' property values. |
QueryBuilder.ConstraintBuilder |
hasProperty(String table,
String propertyName)
Define a constraint clause that the node within the named table has at least one value for the named property. |
QueryBuilder.ConstraintBuilder |
isBelowPath(String descendantTable,
String ancestorPath)
Define a constraint clause that the node within the named table is a descendant of the node at the supplied path. |
QueryBuilder.ConstraintBuilder |
isChild(String childTable,
String parentPath)
Define a constraint clause that the node within the named table is the child of the node at the supplied path. |
QueryBuilder.ConstraintBuilder |
isSameNode(String table,
String asNodeAtPath)
Define a constraint clause that the node within the named table is the same node as that appearing at the supplied path. |
QueryBuilder.ComparisonBuilder |
length(String table,
String property)
Constrains the nodes in the the supplied table such that they must have a property value whose length matches the criteria. |
QueryBuilder.DynamicOperandBuilder |
lowerCaseOf()
Begin a constraint against the lowercase form of a dynamic operand. |
QueryBuilder.ComparisonBuilder |
nodeLocalName(String table)
Constrains the nodes in the the supplied table based upon criteria on the node's local name. |
QueryBuilder.ComparisonBuilder |
nodeName(String table)
Constrains the nodes in the the supplied table based upon criteria on the node's name. |
QueryBuilder.ConstraintBuilder |
not()
Signal that the next constraint clause (defined immediately after this method) should be negated. |
QueryBuilder.ConstraintBuilder |
openParen()
Simulate the use of an open parenthesis in the constraint. |
QueryBuilder.ConstraintBuilder |
or()
Signal that the previous constraint clause be OR-ed together with another constraint clause that will be defined immediately after this method call. |
QueryBuilder.ComparisonBuilder |
propertyValue(String table,
String property)
Constrains the nodes in the the supplied table such that they must have a matching value for the named property. |
QueryBuilder.ConstraintBuilder |
search(String table,
String searchExpression)
Define a constraint clause that the node within the named table have at least one property that satisfies the full-text search expression. |
QueryBuilder.ConstraintBuilder |
search(String table,
String propertyName,
String searchExpression)
Define a constraint clause that the node within the named table have a value for the named property that satisfies the full-text search expression. |
protected QueryBuilder.ConstraintBuilder |
setConstraint(Constraint constraint)
|
QueryBuilder.DynamicOperandBuilder |
upperCaseOf()
Begin a constraint against the uppercase form of a dynamic operand. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected QueryBuilder.ConstraintBuilder(QueryBuilder.ConstraintBuilder parent)
| Method Detail |
|---|
public QueryBuilder end()
public QueryBuilder.ConstraintBuilder openParen()
closeParen().
closeParen()public QueryBuilder.ConstraintBuilder closeParen()
IllegalStateException - if there was not an open parenthesis to
closepublic QueryBuilder.ConstraintBuilder and()
public QueryBuilder.ConstraintBuilder or()
public QueryBuilder.ConstraintBuilder not()
protected QueryBuilder.ConstraintBuilder buildLogicalConstraint()
public QueryBuilder.ConstraintBuilder isSameNode(String table,
String asNodeAtPath)
table - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clauseasNodeAtPath - the path to the node
public QueryBuilder.ConstraintBuilder isChild(String childTable,
String parentPath)
childTable - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clauseparentPath - the path to the parent node
public QueryBuilder.ConstraintBuilder isBelowPath(String descendantTable,
String ancestorPath)
descendantTable - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clauseancestorPath - the path to the ancestor node
public QueryBuilder.ConstraintBuilder hasProperty(String table,
String propertyName)
table - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clausepropertyName - the name of the property
public QueryBuilder.ConstraintBuilder search(String table,
String searchExpression)
table - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clausesearchExpression - the full-text search expression
public QueryBuilder.ConstraintBuilder search(String table,
String propertyName,
String searchExpression)
table - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clausepropertyName - the name of the property to be searchedsearchExpression - the full-text search expression
protected QueryBuilder.ComparisonBuilder comparisonBuilder(DynamicOperand operand)
public QueryBuilder.ComparisonBuilder length(String table,
String property)
length in interface QueryBuilder.DynamicOperandBuildertable - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clauseproperty - the name of the property; may not be null and must refer to a
valid property name
org.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#length(java.lang.String,
java.lang.String)
public QueryBuilder.ComparisonBuilder propertyValue(String table,
String property)
propertyValue in interface QueryBuilder.DynamicOperandBuildertable - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clauseproperty - the name of the property; may not be null and must refer to a
valid property name
org.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#propertyValue(String,
String)public QueryBuilder.ComparisonBuilder fullTextSearchScore(String table)
fullTextSearchScore in interface QueryBuilder.DynamicOperandBuildertable - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clause
org.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#fullTextSearchScore(String)public QueryBuilder.ComparisonBuilder depth(String table)
depth in interface QueryBuilder.DynamicOperandBuildertable - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clause
org.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#depth(java.lang.String)public QueryBuilder.ComparisonBuilder nodeLocalName(String table)
nodeLocalName in interface QueryBuilder.DynamicOperandBuildertable - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clause
org.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#nodeLocalName(String)public QueryBuilder.ComparisonBuilder nodeName(String table)
nodeName in interface QueryBuilder.DynamicOperandBuildertable - the name of the table; may not be null and must refer to a
valid name or alias of a table appearing in the FROM clause
org.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#nodeName(String)public QueryBuilder.DynamicOperandBuilder upperCaseOf()
upperCaseOf in interface QueryBuilder.DynamicOperandBuilderorg.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#upperCaseOf()public QueryBuilder.DynamicOperandBuilder lowerCaseOf()
lowerCaseOf in interface QueryBuilder.DynamicOperandBuilderorg.modeshape.graph.query.QueryBuilder.DynamicOperandBuilder#lowerCaseOf()protected QueryBuilder.ConstraintBuilder setConstraint(Constraint constraint)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||