phpcr-utils/src/PHPCR/Util/QOM/Sql2ToQomQueryConverter.php
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.
\PHPCR\Util\QOM\Sql2ToQomQueryConverter
Properties
Methods
__construct(\PHPCR\Query\QOM\QueryObjectModelFactoryInterface $factory) : void
Instantiate a converter
Name | Type | Description |
---|---|---|
$factory | \PHPCR\Query\QOM\QueryObjectModelFactoryInterface |
fetchTokenWithoutBrackets() : string
Get the next token and make sure to remove the brackets if the token is in the [ns:name] notation
Type | Description |
---|---|
string |
parse(string $sql2) : \PHPCR\Query\QOM\QueryObjectModelInterface;
6.7.1.
Query Parse an SQL2 query and return the corresponding QOM QueryObjectModel
Name | Type | Description |
---|---|---|
$sql2 | string |
Type | Description |
---|---|
\PHPCR\Query\QOM\QueryObjectModelInterface; |
parseChildNodeJoinCondition() : \PHPCR\Query\QOM\ChildNodeJoinConditionInterface
6.7.10 ChildNodeJoinCondition Parse an SQL2 child node join condition and return a QOM\ChildNodeJoinCondition
Type | Description |
---|---|
\PHPCR\Query\QOM\ChildNodeJoinConditionInterface |
parseColumn() : \PHPCR\Query\QOM\ColumnInterface
Parse a single SQL2 column definition and return a QOM\Column
Type | Description |
---|---|
\PHPCR\Query\QOM\ColumnInterface |
parseColumns() : array
6.7.39 Column Parse an SQL2 columns definition and return an array of QOM\Column
Type | Description |
---|---|
array | of array |
parseComparison() : \PHPCR\Query\QOM\ComparisonInterface
6.7.16 Comparison
Type | Description |
---|---|
\PHPCR\Query\QOM\ComparisonInterface |
parseConstraint() : \PHPCR\Query\QOM\ConstraintInterface
6.7.12 Constraint 6.7.13 And 6.7.14 Or
Type | Description |
---|---|
\PHPCR\Query\QOM\ConstraintInterface |
parseDescendantNodeJoinCondition() : \PHPCR\Query\QOM\DescendantNodeJoinConditionInterface
6.7.11 DescendantNodeJoinCondition Parse an SQL2 descendant node join condition and return a QOM\DescendantNodeJoinCondition
Type | Description |
---|---|
\PHPCR\Query\QOM\DescendantNodeJoinConditionInterface |
parseDynamicOperand() : \PHPCR\Query\QOM\DynamicOperandInterface
6.7.26 DynamicOperand 6.7.28 Length 6.7.29 NodeName 6.7.30 NodeLocalName 6.7.31 FullTextSearchScore 6.7.32 LowerCase 6.7.33 UpperCase Parse an SQL2 dynamic operand
Type | Description |
---|---|
\PHPCR\Query\QOM\DynamicOperandInterface |
parseEquiJoin() : \PHPCR\Query\QOM\EquiJoinConditionInterface
6.7.8.
EquiJoinCondition Parse an SQL2 equijoin condition and return a QOM\EquiJoinCondition
Type | Description |
---|---|
\PHPCR\Query\QOM\EquiJoinConditionInterface |
parseFullTextSearch() : \PHPCR\Query\QOM\FullTextSearchInterface
6.7.19 FullTextSearch
Type | Description |
---|---|
\PHPCR\Query\QOM\FullTextSearchInterface |
parseIdentifier() : array
Parse something that is expected to be a property identifier.
Type | Description |
---|---|
array | with property name and selector name if specified, null otherwise |
parseJoin(string $leftSelector) : void
6.7.5.
Join 6.7.6. Join type Parse an SQL2 join source and return a QOM\Join
Name | Type | Description |
---|---|---|
$leftSelector | string | the left selector as it has been read by parseSource return \PHPCR\Query\QOM\JoinInterface |
parseJoinCondition() : \PHPCR\Query\QOM\JoinConditionInterface
6.7.7.
JoinCondition Parse an SQL2 join condition and return a QOM\Joincondition
Type | Description |
---|---|
\PHPCR\Query\QOM\JoinConditionInterface |
parseLiteral() : \PHPCR\Query\QOM\LiteralInterface
6.7.34 Literal Parse an SQL2 literal value
Type | Description |
---|---|
\PHPCR\Query\QOM\LiteralInterface |
parseNot() : \PHPCR\Query\QOM\NotInterface
6.7.15 Not
Type | Description |
---|---|
\PHPCR\Query\QOM\NotInterface |
parseOperator() : string
6.7.17 Operator
Type | Description |
---|---|
string | a constant from QueryObjectModelConstantsInterface |
parsePath() : void
Parse a JCR path consisting of either a simple path (a JCR name that contains only SQL-legal characters) or a path (simple path or quoted path) enclosed in square brackets.
See JCR Spec § 6.7.23.
6.7.23. Path
parsePropertyExistence() : \PHPCR\Query\QOM\PropertyExistenceInterface
6.7.18 PropertyExistence
Type | Description |
---|---|
\PHPCR\Query\QOM\PropertyExistenceInterface |
parsePropertyValue() : \PHPCR\Query\QOM\PropertyValueInterface
6.7.27 PropertyValue Parse an SQL2 property value
Type | Description |
---|---|
\PHPCR\Query\QOM\PropertyValueInterface |
parseSameNodeJoinCondition() : \PHPCR\Query\QOM\SameNodeJoinConditionInterface
6.7.9 SameNodeJoinCondition Parse an SQL2 same node join condition and return a QOM\SameNodeJoinCondition
Type | Description |
---|---|
\PHPCR\Query\QOM\SameNodeJoinConditionInterface |
parseSelector() : \PHPCR\Query\QOM\SelectorInterface
6.7.3.
Selector Parse an SQL2 selector and return a QOM\Selector
Type | Description |
---|---|
\PHPCR\Query\QOM\SelectorInterface |
parseSource() : \PHPCR\Query\QOM\SourceInterface
6.7.2.
Source Parse an SQL2 source definition and return the corresponding QOM Source
Type | Description |
---|---|
\PHPCR\Query\QOM\SourceInterface |
parseStaticOperand() : \PHPCR\Query\QOM\StaticOperandInterface
Parse an SQL2 static operand 6.7.35 BindVariable 6.7.36 Prefix
Type | Description |
---|---|
\PHPCR\Query\QOM\StaticOperandInterface |