TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory:
TYPO3\CMS\Core\SingletonInterface Tx_Extbase_Persistence_QOM_QueryObjectModelFactory

Public Member Functions

 selector ($nodeTypeName, $selectorName='')
 
 statement ($statement, array $boundVariables=array())
 
 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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! The Query Object Model Factory

Definition at line 19 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 88 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 100 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 171 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 195 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 124 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 184 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 76 of file QueryObjectModelFactory.php.

◆ 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 62 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 147 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 111 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 136 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 35 of file QueryObjectModelFactory.php.

◆ statement()

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

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 49 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 a upper-case string; non-null
Returns
the operand; non-null
Exceptions

Definition at line 158 of file QueryObjectModelFactory.php.

Member Data Documentation

◆ $objectManager

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

Definition at line 25 of file QueryObjectModelFactory.php.