Class QueryObjectModelFactoryImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.query.qom.QueryObjectModelFactoryImpl
-
- All Implemented Interfaces:
QueryObjectModelConstants
,QueryObjectModelFactory
public class QueryObjectModelFactoryImpl extends Object implements QueryObjectModelFactory
The implementation of the corresponding JCR interface.
-
-
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(QueryManagerImpl queryManager, SessionContext sessionContext)
-
Method Summary
-
-
-
Constructor Detail
-
QueryObjectModelFactoryImpl
public QueryObjectModelFactoryImpl(QueryManagerImpl queryManager, SessionContext sessionContext)
-
-
Method Detail
-
and
public AndImpl and(Constraint constraint1, Constraint constraint2)
- Specified by:
and
in interfaceQueryObjectModelFactory
-
ascending
public OrderingImpl ascending(DynamicOperand operand)
- Specified by:
ascending
in interfaceQueryObjectModelFactory
-
bindVariable
public BindVariableValueImpl bindVariable(String bindVariableName)
- Specified by:
bindVariable
in interfaceQueryObjectModelFactory
-
childNode
public ChildNode childNode(String selectorName, String path)
- Specified by:
childNode
in interfaceQueryObjectModelFactory
-
childNodeJoinCondition
public ChildNodeJoinCondition childNodeJoinCondition(String childSelectorName, String parentSelectorName)
- Specified by:
childNodeJoinCondition
in interfaceQueryObjectModelFactory
-
column
public Column column(String selectorName, String propertyName, String columnName) throws RepositoryException
- Specified by:
column
in interfaceQueryObjectModelFactory
- Throws:
RepositoryException
-
comparison
public Comparison comparison(DynamicOperand operand1, String operator, StaticOperand operand2)
- Specified by:
comparison
in interfaceQueryObjectModelFactory
-
descendantNode
public DescendantNode descendantNode(String selectorName, String path)
- Specified by:
descendantNode
in interfaceQueryObjectModelFactory
-
descendantNodeJoinCondition
public DescendantNodeJoinCondition descendantNodeJoinCondition(String descendantSelectorName, String ancestorSelectorName)
- Specified by:
descendantNodeJoinCondition
in interfaceQueryObjectModelFactory
-
descending
public Ordering descending(DynamicOperand operand)
- Specified by:
descending
in interfaceQueryObjectModelFactory
-
equiJoinCondition
public EquiJoinCondition equiJoinCondition(String selector1Name, String property1Name, String selector2Name, String property2Name) throws RepositoryException
- Specified by:
equiJoinCondition
in interfaceQueryObjectModelFactory
- Throws:
RepositoryException
-
fullTextSearch
public FullTextSearch fullTextSearch(String selectorName, String propertyName, StaticOperand fullTextSearchExpression) throws RepositoryException
- Specified by:
fullTextSearch
in interfaceQueryObjectModelFactory
- Throws:
RepositoryException
-
fullTextSearchScore
public FullTextSearchScore fullTextSearchScore(String selectorName)
- Specified by:
fullTextSearchScore
in interfaceQueryObjectModelFactory
-
join
public Join join(Source left, Source right, String joinType, JoinCondition joinCondition)
- Specified by:
join
in interfaceQueryObjectModelFactory
-
length
public Length length(PropertyValue propertyValue)
- Specified by:
length
in interfaceQueryObjectModelFactory
-
literal
public Literal literal(Value literalValue)
- Specified by:
literal
in interfaceQueryObjectModelFactory
-
lowerCase
public LowerCase lowerCase(DynamicOperand operand)
- Specified by:
lowerCase
in interfaceQueryObjectModelFactory
-
nodeLocalName
public NodeLocalName nodeLocalName(String selectorName)
- Specified by:
nodeLocalName
in interfaceQueryObjectModelFactory
-
nodeName
public NodeName nodeName(String selectorName)
- Specified by:
nodeName
in interfaceQueryObjectModelFactory
-
not
public Not not(Constraint constraint)
- Specified by:
not
in interfaceQueryObjectModelFactory
-
or
public Or or(Constraint constraint1, Constraint constraint2)
- Specified by:
or
in interfaceQueryObjectModelFactory
-
propertyExistence
public PropertyExistence propertyExistence(String selectorName, String propertyName) throws RepositoryException
- Specified by:
propertyExistence
in interfaceQueryObjectModelFactory
- Throws:
RepositoryException
-
propertyValue
public PropertyValue propertyValue(String selectorName, String propertyName) throws RepositoryException
- Specified by:
propertyValue
in interfaceQueryObjectModelFactory
- Throws:
RepositoryException
-
sameNode
public SameNode sameNode(String selectorName, String path)
- Specified by:
sameNode
in interfaceQueryObjectModelFactory
-
sameNodeJoinCondition
public SameNodeJoinCondition sameNodeJoinCondition(String selector1Name, String selector2Name, String selector2Path)
- Specified by:
sameNodeJoinCondition
in interfaceQueryObjectModelFactory
-
selector
public Selector selector(String nodeTypeName, String selectorName) throws RepositoryException
- Specified by:
selector
in interfaceQueryObjectModelFactory
- Throws:
RepositoryException
-
upperCase
public UpperCase upperCase(DynamicOperand operand)
- Specified by:
upperCase
in interfaceQueryObjectModelFactory
-
createQuery
public QueryObjectModel createQuery(Source source, Constraint constraint, Ordering[] orderings, Column[] columns)
- Specified by:
createQuery
in interfaceQueryObjectModelFactory
-
-