phpcr/src/PHPCR/Query/QOM/QueryObjectModelFactoryInterface.php

Show: PublicProtectedPrivateinherited
    Table of Contents
    This file is part of the PHPCR API and was originally ported from the Java JCR API to PHP by Karsten Dambekalns for the FLOW3 project.

    Copyright 2008-2011 Karsten Dambekalns karsten@typo3.org

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0
    

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

    License
    Apache Software License 2.0  
    Link
    http://phpcr.github.com/  

    \PHPCR\Query\QOM\QueryObjectModelFactoryInterface

    Package: Default
    A QueryObjectModelFactory creates instances of the JCR query object model.

    Refer to QueryObjectModelInterface for a description of the query object model.

    Parent(s)
    \PHPCR\Query\QOM\QueryObjectModelConstantsInterface
    Api
     

    Constants

    >VConstant  JCR_JOIN_TYPE_INNER = 'jcr.join.type.inner'
    >VConstant  JCR_JOIN_TYPE_LEFT_OUTER = 'jcr.join.type.left.outer'
    >VConstant  JCR_JOIN_TYPE_RIGHT_OUTER = 'jcr.join.type.right.outer'
    >VConstant  JCR_OPERATOR_EQUAL_TO = 'jcr.operator.equal.to'
    inherited
    The '=' comparison operator.
    Inherited from: \PHPCR\Query\QOM\QueryObjectModelConstantsInterface::JCR_OPERATOR_EQUAL_TO
    >VConstant  JCR_OPERATOR_NOT_EQUAL_TO = 'jcr.operator.not.equal.to'
    inherited
    The '!=' comparison operator.
    Inherited from: \PHPCR\Query\QOM\QueryObjectModelConstantsInterface::JCR_OPERATOR_NOT_EQUAL_TO
    >VConstant  JCR_OPERATOR_LESS_THAN = 'jcr.operator.less.than'
    inherited
    The '<' comparison operator.
    Inherited from: \PHPCR\Query\QOM\QueryObjectModelConstantsInterface::JCR_OPERATOR_LESS_THAN
    >VConstant  JCR_OPERATOR_LESS_THAN_OR_EQUAL_TO = 'jcr.operator.less.than.or.equal.to'
    >VConstant  JCR_OPERATOR_GREATER_THAN = 'jcr.operator.greater.than'
    inherited
    The '>' comparison operator.
    Inherited from: \PHPCR\Query\QOM\QueryObjectModelConstantsInterface::JCR_OPERATOR_GREATER_THAN
    >VConstant  JCR_OPERATOR_GREATER_THAN_OR_EQUAL_TO = 'jcr.operator.greater.than.or.equal.to'
    >VConstant  JCR_OPERATOR_LIKE = 'jcr.operator.like'
    inherited
    The 'like' comparison operator.
    Inherited from: \PHPCR\Query\QOM\QueryObjectModelConstantsInterface::JCR_OPERATOR_LIKE
    >VConstant  JCR_ORDER_ASCENDING = 'jcr.order.ascending'
    >VConstant  JCR_ORDER_DESCENDING = 'jcr.order.descending'

    Methods

    methodpublicandConstraint(\PHPCR\Query\QOM\ConstraintInterface $constraint1, \PHPCR\Query\QOM\ConstraintInterface $constraint2) : \PHPCR\Query\QOM\AndInterface

    Performs a logical conjunction of two other constraints.

    Parameters
    NameTypeDescription
    $constraint1\PHPCR\Query\QOM\ConstraintInterface

    the first constraint; non-null

    $constraint2\PHPCR\Query\QOM\ConstraintInterface

    the second constraint; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\AndInterfacethe And constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicascending(\PHPCR\Query\QOM\DynamicOperandInterface $operand) : \PHPCR\Query\QOM\OrderingInterface

    Orders by the value of the specified operand, in ascending order.

    The query is invalid if $operand does not evaluate to a scalar value.

    Parameters
    NameTypeDescription
    $operand\PHPCR\Query\QOM\DynamicOperandInterface

    the operand by which to order; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\OrderingInterfacethe ordering
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif the query is invalid
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicbindVariable(string $bindVariableName) : \PHPCR\Query\QOM\BindVariableValueInterface

    Evaluates to the value of a bind variable.

    The query is invalid if $bindVariableName is not a valid JCR prefix.

    Parameters
    NameTypeDescription
    $bindVariableNamestring

    the bind variable name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\BindVariableValueInterfacethe operand; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicchildNode(string $path, string $selectorName = null) : \PHPCR\Query\QOM\ChildNodeInterface

    Tests whether a node in the specified or default selector is a child of a node reachable by a specified absolute path.

    The query is invalid if:

    • $selectorName is not the name of a selector in the query
    • $path is not a syntactically valid absolute path Note: however, that if the path is syntactically valid but does not identify a node in the repository (or the node is not visible to this session, because of access control constraints), the query is valid but the constraint is not satisfied.
    Parameters
    NameTypeDescription
    $pathstring

    an absolute path; non-null

    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\ChildNodeInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicchildNodeJoinCondition(string $childSelectorName, string $parentSelectorName) : \PHPCR\Query\QOM\ChildNodeJoinConditionInterface

    Tests whether a first selector's node is a child of a second selector's node.

    The query is invalid if:

    • $childSelector is not the name of a selector in the query
    • $parentSelector is not the name of a selector in the query
    • $childSelector is the same as $parentSelector
    Parameters
    NameTypeDescription
    $childSelectorNamestring

    the name of the child selector; non-null

    $parentSelectorNamestring

    the name of the parent selector; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\ChildNodeJoinConditionInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpubliccolumn(string $propertyName, string $columnName = null, string $selectorName = null) : \PHPCR\Query\QOM\ColumnInterface

    Identifies a property in the specified or default selector to include in the tabular view of query results.

    The column name is the property name if not given.

    The query is invalid if:

    • $selectorName is not the name of a selector in the query
    • $propertyName is specified but it is not a syntactically valid JCR name
    • $propertyName is specified but does not evaluate to a scalar value
    • $propertyName is specified but $columnName is omitted
    • $propertyName is omitted but $columnName is specified
    • the columns in the tabular view are not uniquely named, whether those column names are specified by $columnName (if $propertyName is specified) or generated as described above (if $propertyName is omitted).

    If $propertyName is specified but, for a node-tuple, the selector node does not have a property named $propertyName, the query is valid and the column has null value.

    Parameters
    NameTypeDescription
    $propertyNamestring

    the property name, or null to include a column for each single-value non-residual property of the selector's node type

    $columnNamestring

    the column name; must be null if propertyName is null

    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\ColumnInterfacethe column; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif the query has no default selector or is otherwise invalid
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpubliccomparison(\PHPCR\Query\QOM\DynamicOperandInterface $operand1, string $operator, \PHPCR\Query\QOM\StaticOperandInterface $operand2) : \PHPCR\Query\QOM\ComparisonInterface

    Filters node-tuples based on the outcome of a binary operation.

    Parameters
    NameTypeDescription
    $operand1\PHPCR\Query\QOM\DynamicOperandInterface

    the first operand; non-null

    $operatorstring

    the operator; one of QueryObjectModelConstants.JCR_OPERATOR_*

    $operand2\PHPCR\Query\QOM\StaticOperandInterface

    the second operand; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\ComparisonInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpubliccreateQuery(\PHPCR\Query\QOM\SourceInterface $source, \PHPCR\Query\QOM\ConstraintInterface $constraint = null, array $orderings = array(), array $columns = array()) : \PHPCR\Query\QOM\QueryObjectModelInterface

    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.

    If the query is invalid, this method throws an InvalidQueryException. See the individual QOM factory methods for the validity criteria of each query element.

    Parameters
    NameTypeDescription
    $source\PHPCR\Query\QOM\SourceInterface

    the Selector or the node-tuple Source; non-null

    $constraint\PHPCR\Query\QOM\ConstraintInterface

    the constraint, or null if none

    $orderingsarray

    zero (empty array) or more instances of Ordering

    $columnsarray

    the array of Column definitions to return in the result. empty array is equivalent to the * in SQL2, meaning some fields.

    Returns
    TypeDescription
    \PHPCR\Query\QOM\QueryObjectModelInterfacethe query; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test and the parameters given fail that test. See the individual QOM factory methods for the validity criteria of each query element.
    \PHPCR\RepositoryExceptionif another error occurs.
    Details
    Api
     
    methodpublicdescendantNode(string $path, string $selectorName = null) : \PHPCR\Query\QOM\DescendantNodeInterface

    Tests whether a node in the specified or default selector is a descendant of a node reachable by a specified absolute path.

    The query is invalid if:

    • $selectorName is not the name of a selector in the query
    • $path is not a syntactically valid absolute path Note: however, that if the path is syntactically valid but does not identify a node in the repository (or the node is not visible to this session, because of access control constraints), the query is valid but the constraint is not satisfied.
    Parameters
    NameTypeDescription
    $pathstring

    an absolute path; non-null

    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\DescendantNodeInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicdescendantNodeJoinCondition(string $descendantSelectorName, string $ancestorSelectorName) : \PHPCR\Query\QOM\DescendantNodeJoinConditionInterface

    Tests whether a first selector's node is a descendant of a second selector's node.

    The query is invalid if:

    • $descendantSelector is not the name of a selector in the query
    • $ancestorSelector is not the name of a selector in the query
    • $descendantSelector is the same as $ancestorSelector
    Parameters
    NameTypeDescription
    $descendantSelectorNamestring

    the name of the descendant selector; non-null

    $ancestorSelectorNamestring

    the name of the ancestor selector; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\DescendantNodeJoinConditionInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicdescending(\PHPCR\Query\QOM\DynamicOperandInterface $operand) : \PHPCR\Query\QOM\OrderingInterface

    Orders by the value of the specified operand, in descending order.

    The query is invalid if $operand does not evaluate to a scalar value.

    Parameters
    NameTypeDescription
    $operand\PHPCR\Query\QOM\DynamicOperandInterface

    the operand by which to order; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\OrderingInterfacethe ordering
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif the query is invalid
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicequiJoinCondition(string $selector1Name, string $property1Name, string $selector2Name, string $property2Name) : \PHPCR\Query\QOM\EquiJoinConditionInterface

    Tests whether the value of a property in a first selector is equal to the value of a property in a second selector.

    The query is invalid if:

    • $selector1 is not the name of a selector in the query, or
    • $selector2 is not the name of a selector in the query, or
    • $selector1 is the same as $selector2, or
    • $property1 is not a syntactically valid JCR name, or
    • $property2 is not a syntactically valid JCR name, or
    • the value of $property1 is not the same property type as the value of $property2, or
    • $property1 is a multi-valued property, or
    • $property2 is a multi-valued property, or
    • $property1 is a BINARY property, or
    • $property2 is a BINARY property.
    Parameters
    NameTypeDescription
    $selector1Namestring

    the name of the first selector; non-null

    $property1Namestring

    the property name in the first selector; non-null

    $selector2Namestring

    the name of the second selector; non-null

    $property2Namestring

    the property name in the second selector; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\EquiJoinConditionInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicfullTextSearch(string $propertyName, string $fullTextSearchExpression, string $selectorName = null) : \PHPCR\Query\QOM\FullTextSearchInterface

    Performs a full-text search against the specified or default selector.

    The query is invalid if:

    • $selectorName is not the name of a selector in the query
    • $propertyName is specified but is not a syntactically valid JCR name
    • $fullTextSearchExpression does not conform to the full text search grammar

    If $propertyName is specified but, for a node-tuple, the selector node does not have a property named $propertyName, the query is valid but the constraint is not satisfied.

    Parameters
    NameTypeDescription
    $propertyNamestring

    the property name, or null to search all full-text indexed properties of the node (or node subgraph, in some implementations);

    $fullTextSearchExpressionstring

    the full-text search expression; non-null

    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\FullTextSearchInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicfullTextSearchScore(string $selectorName = null) : \PHPCR\Query\QOM\FullTextSearchScoreInterface

    Evaluates to a DOUBLE value equal to the full-text search score of a node in the specified or default selector.

    The query is invalid if $selectorName is not the name of a selector in the query.

    Parameters
    NameTypeDescription
    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\FullTextSearchScoreInterfacethe operand; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicjoin(\PHPCR\Query\QOM\SourceInterface $left, \PHPCR\Query\QOM\SourceInterface $right, string $joinType, \PHPCR\Query\QOM\JoinConditionInterface $joinCondition) : \PHPCR\Query\QOM\JoinInterface

    Performs a join between two node-tuple sources.

    The query is invalid if $left is the same source as $right.

    Parameters
    NameTypeDescription
    $left\PHPCR\Query\QOM\SourceInterface

    the left node-tuple source; non-null

    $right\PHPCR\Query\QOM\SourceInterface

    the right node-tuple source; non-null

    $joinTypestring

    one of QueryObjectModelConstants.JCR_JOIN_TYPE_*

    $joinCondition\PHPCR\Query\QOM\JoinConditionInterface

    the join condition; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\JoinInterfacethe join; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpubliclength(\PHPCR\Query\QOM\PropertyValueInterface $propertyValue) : \PHPCR\Query\QOM\LengthInterface

    Evaluates to the length (or lengths, if multi-valued) of a property.

    Parameters
    NameTypeDescription
    $propertyValue\PHPCR\Query\QOM\PropertyValueInterface

    the property value for which to compute the length; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\LengthInterfacethe operand; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicliteral(mixed $literalValue) : mixed

    Evaluates to a literal value.

    The query is invalid if no value is bound to $literalValue.

    Parameters
    NameTypeDescription
    $literalValuemixed

    the value

    Returns
    TypeDescription
    mixedthe operand; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpubliclowerCase(\PHPCR\Query\QOM\DynamicOperandInterface $operand) : \PHPCR\Query\QOM\LowerCaseInterface

    Evaluates to the lower-case string value (or values, if multi-valued) of an operand.

    Parameters
    NameTypeDescription
    $operand\PHPCR\Query\QOM\DynamicOperandInterface

    the operand whose value is converted to a lower-case string; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\LowerCaseInterfacethe operand; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicnodeLocalName(string $selectorName = null) : \PHPCR\Query\QOM\NodeLocalNameInterface

    Evaluates to a NAME value equal to the local (unprefixed) name of a node in the specified or default selector.

    The query is invalid if $selectorName is not the name of a selector in the query.

    Parameters
    NameTypeDescription
    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\NodeLocalNameInterfacethe operand; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif the query is invalid
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicnodeName(string $selectorName = null) : \PHPCR\Query\QOM\NodeNameInterface

    Evaluates to a NAME value equal to the prefix-qualified name of a node in the specified or default selector.

    The query is invalid if $selectorName is not the name of a selector in the query.

    Parameters
    NameTypeDescription
    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\NodeNameInterfacethe operand; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicnotConstraint(\PHPCR\Query\QOM\ConstraintInterface $constraint) : \PHPCR\Query\QOM\NotInterface

    Performs a logical negation of another constraint.

    Parameters
    NameTypeDescription
    $constraint\PHPCR\Query\QOM\ConstraintInterface

    the constraint to be negated; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\NotInterfacethe Not constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicorConstraint(\PHPCR\Query\QOM\ConstraintInterface $constraint1, \PHPCR\Query\QOM\ConstraintInterface $constraint2) : \PHPCR\Query\QOM\OrInterface

    Performs a logical disjunction of two other constraints.

    Parameters
    NameTypeDescription
    $constraint1\PHPCR\Query\QOM\ConstraintInterface

    the first constraint; non-null

    $constraint2\PHPCR\Query\QOM\ConstraintInterface

    the second constraint; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\OrInterfacethe Or constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicpropertyExistence(string $propertyName, string $selectorName = null) : \PHPCR\Query\QOM\PropertyExistenceInterface

    Tests the existence of a property in the specified or default selector.

    The query is invalid if:

    • $propertyName is not a syntactically valid JCR name
    • $selectorName is not the name of a selector in the query
    Parameters
    NameTypeDescription
    $propertyNamestring

    the property name; non-null

    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\PropertyExistenceInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicpropertyValue(string $propertyName, string $selectorName = null) : \PHPCR\Query\QOM\PropertyValueInterface

    Evaluates to the value (or values, if multi-valued) of a property in the specified or default selector.

    The query is invalid if: - $selectorName is not the name of a selector in the query - $propertyName is not a syntactically valid JCR name

    Parameters
    NameTypeDescription
    $propertyNamestring

    the property name; non-null

    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\PropertyValueInterfacethe operand; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif the query is invalid
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicsameNode(string $path, string $selectorName = null) : \PHPCR\Query\QOM\SameNodeInterface

    Tests whether a node in the specified or default selector is reachable by a specified absolute path.

    The query is invalid if:

    • $selectorName is not the name of a selector in the query
    • $path is not a syntactically valid absolute path. Note: however, that if the path is syntactically valid but does not identify a node in the repository (or the node is not visible to this session, because of access control constraints), the query is valid but the constraint is not satisfied.
    Parameters
    NameTypeDescription
    $pathstring

    an absolute path; non-null

    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\SameNodeInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif the query is invalid
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicsameNodeJoinCondition(string $selector1Name, string $selector2Name, string $selector2Path = null) : \PHPCR\Query\QOM\SameNodeJoinConditionInterface

    Tests whether a first selector's node is the same as a node identified by relative path from a second selector's node.

    The query is invalid if:

    • $selector1 is not the name of a selector in the query, or
    • $selector2 is not the name of a selector in the query, or
    • $selector1 is the same as $selector2, or
    • $selector2Path is not a syntactically valid relative path. Note: however, that if the path is syntactically valid but does not identify a node visible to the current session, the query is valid but the constraint is not satisfied.
    Parameters
    NameTypeDescription
    $selector1Namestring

    the name of the first selector; non-null

    $selector2Namestring

    the name of the second selector; non-null

    $selector2Pathstring

    the path relative to the second selector; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\SameNodeJoinConditionInterfacethe constraint; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicselector(string $nodeTypeName, string $selectorName = null) : \PHPCR\Query\QOM\SelectorInterface

    Selects a subset of the nodes in the repository based on node type.

    The query is invalid if $nodeTypeName or $selectorName is not a syntactically valid JCR name.

    The query is invalid if $selectorName is identical to the name of another selector in the query.

    If $nodeTypeName is a valid JCR name but not the name of a node type available in the repository, the query is valid but the selector selects no nodes.

    Parameters
    NameTypeDescription
    $nodeTypeNamestring

    the name of the required node type; non-null

    $selectorNamestring

    the selector name; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\SelectorInterfacethe selector; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    methodpublicupperCase(\PHPCR\Query\QOM\DynamicOperandInterface $operand) : \PHPCR\Query\QOM\UpperCaseInterface

    Evaluates to the upper-case string value (or values, if multi-valued) of an operand.

    Parameters
    NameTypeDescription
    $operand\PHPCR\Query\QOM\DynamicOperandInterface

    the operand whose value is converted to a upper-case string; non-null

    Returns
    TypeDescription
    \PHPCR\Query\QOM\UpperCaseInterfacethe operand; non-null
    Throws
    ExceptionDescription
    \PHPCR\Query\InvalidQueryExceptionif a particular validity test is possible on this method, the implementation chooses to perform that test (and not leave it until later) on createQuery, and the parameters given fail that test
    \PHPCR\RepositoryExceptionif the operation otherwise fails
    Details
    Api
     
    Documentation was generated by phpDocumentor 2.0.0a12.