TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 selector ($nodeTypeName, $selectorName='')
 
 statement ($statement, array $boundVariables=[])
 
 join (SourceInterface $left, SourceInterface $right, $joinType, JoinConditionInterface $joinCondition)
 
 equiJoinCondition ($selector1Name, $property1Name, $selector2Name, $property2Name)
 
 _and (ConstraintInterface $constraint1, ConstraintInterface $constraint2)
 
 _or (ConstraintInterface $constraint1, ConstraintInterface $constraint2)
 
 not (ConstraintInterface $constraint)
 
 comparison (PropertyValueInterface $operand1, $operator, $operand2)
 
 propertyValue ($propertyName, $selectorName='')
 
 lowerCase (PropertyValueInterface $operand)
 
 upperCase (PropertyValueInterface $operand)
 
 ascending (DynamicOperandInterface $operand)
 
 descending (DynamicOperandInterface $operand)
 
 bindVariable ($bindVariableName)
 

Protected Attributes

 $objectManager
 

Detailed Description

The Query Object Model Factory

Definition at line 20 of file QueryObjectModelFactory.php.

Member Function Documentation

◆ _and()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::_and ( ConstraintInterface  $constraint1,
ConstraintInterface  $constraint2 
)

Performs a logical conjunction of two other constraints.

Parameters
ConstraintInterface$constraint1the first constraint; non-null
ConstraintInterface$constraint2the second constraint; non-null
Returns
the And constraint; non-null
Exceptions

Definition at line 100 of file QueryObjectModelFactory.php.

◆ _or()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::_or ( ConstraintInterface  $constraint1,
ConstraintInterface  $constraint2 
)

Performs a logical disjunction of two other constraints.

Parameters
ConstraintInterface$constraint1the first constraint; non-null
ConstraintInterface$constraint2the second constraint; non-null
Returns
the Or constraint; non-null
Exceptions

Definition at line 113 of file QueryObjectModelFactory.php.

◆ ascending()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::ascending ( DynamicOperandInterface  $operand)

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
DynamicOperandInterface$operandthe operand by which to order; non-null
Returns
OrderingInterface the ordering
Exceptions

Definition at line 190 of file QueryObjectModelFactory.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING.

◆ bindVariable()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::bindVariable (   $bindVariableName)

Evaluates to the value of a bind variable.

Parameters
string$bindVariableNamethe bind variable name; non-null
Returns
BindVariableValueInterface the operand; non-null
Exceptions

Definition at line 216 of file QueryObjectModelFactory.php.

◆ comparison()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::comparison ( PropertyValueInterface  $operand1,
  $operator,
  $operand2 
)

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

Parameters
PropertyValueInterface$operand1the first operand; non-null
string$operatorthe operator; one of QueryObjectModelConstants.JCR_OPERATOR_*
\TYPO3\CMS\Extbase\Persistence\Generic\Qom\StaticOperandInterface$operand2the second operand; non-null
Returns
the constraint; non-null
Exceptions

Definition at line 139 of file QueryObjectModelFactory.php.

◆ descending()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::descending ( DynamicOperandInterface  $operand)

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
DynamicOperandInterface$operandthe operand by which to order; non-null
Returns
OrderingInterface the ordering
Exceptions

Definition at line 204 of file QueryObjectModelFactory.php.

References TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_DESCENDING.

◆ equiJoinCondition()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::equiJoinCondition (   $selector1Name,
  $property1Name,
  $selector2Name,
  $property2Name 
)

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

Parameters
string$selector1Namethe name of the first selector; non-null
string$property1Namethe property name in the first selector; non-null
string$selector2Namethe name of the second selector; non-null
string$property2Namethe property name in the second selector; non-null
Returns
the constraint; non-null
Exceptions

Definition at line 87 of file QueryObjectModelFactory.php.

◆ injectObjectManager()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::injectObjectManager ( \TYPO3\CMS\Extbase\Object\ObjectManagerInterface  $objectManager)
Parameters
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface$objectManager

Definition at line 30 of file QueryObjectModelFactory.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory\$objectManager.

◆ join()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::join ( SourceInterface  $left,
SourceInterface  $right,
  $joinType,
JoinConditionInterface  $joinCondition 
)

Performs a join between two node-tuple sources.

Parameters
SourceInterface$leftthe left node-tuple source; non-null
SourceInterface$rightthe right node-tuple source; non-null
string$joinTypeone of QueryObjectModelConstants.JCR_JOIN_TYPE_*
JoinConditionInterface$joinCondition
Returns
the join; non-null

Definition at line 72 of file QueryObjectModelFactory.php.

◆ lowerCase()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::lowerCase ( PropertyValueInterface  $operand)

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

Parameters
PropertyValueInterface$operandthe operand whose value is converted to a lower-case string; non-null
Returns
the operand; non-null
Exceptions

Definition at line 164 of file QueryObjectModelFactory.php.

◆ not()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::not ( ConstraintInterface  $constraint)

Performs a logical negation of another constraint.

Parameters
ConstraintInterface$constraintthe constraint to be negated; non-null
Returns
the Not constraint; non-null
Exceptions

Definition at line 125 of file QueryObjectModelFactory.php.

◆ propertyValue()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::propertyValue (   $propertyName,
  $selectorName = '' 
)

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

Parameters
string$propertyNamethe property name; non-null
string$selectorNamethe selector name; non-null
Returns
the operand; non-null
Exceptions

Definition at line 152 of file QueryObjectModelFactory.php.

◆ selector()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::selector (   $nodeTypeName,
  $selectorName = '' 
)

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

Parameters
string$nodeTypeNamethe name of the required node type; non-null
string$selectorNamethe selector name; optional
Returns
the selector
Exceptions

Definition at line 43 of file QueryObjectModelFactory.php.

◆ statement()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::statement (   $statement,
array  $boundVariables = [] 
)

Sets a statement as constraint. This is not part of the JCR 2.0 Specification!

Parameters
string | \TYPO3\CMS\Core\Database\PreparedStatement$statementThe statement
array$boundVariablesAn array of variables to bind to the statement
Returns

Definition at line 58 of file QueryObjectModelFactory.php.

◆ upperCase()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::upperCase ( PropertyValueInterface  $operand)

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

Parameters
PropertyValueInterface$operandthe operand whose value is converted to an upper-case string; non-null
Returns
the operand; non-null
Exceptions

Definition at line 176 of file QueryObjectModelFactory.php.

Member Data Documentation

◆ $objectManager

TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::$objectManager
protected