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) : voidInstantiate a converter
| Name | Type | Description |
|---|---|---|
| $factory | \PHPCR\Query\QOM\QueryObjectModelFactoryInterface |

fetchTokenWithoutBrackets() : stringGet 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\ChildNodeJoinConditionInterface6.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\ColumnInterfaceParse a single SQL2 column definition and return a QOM\Column
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\ColumnInterface |

parseColumns() : array6.7.39 Column Parse an SQL2 columns definition and return an array of QOM\Column
| Type | Description |
|---|---|
| array | of array |

parseComparison() : \PHPCR\Query\QOM\ComparisonInterface6.7.16 Comparison
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\ComparisonInterface |

parseConstraint() : \PHPCR\Query\QOM\ConstraintInterface6.7.12 Constraint 6.7.13 And 6.7.14 Or
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\ConstraintInterface |

parseDescendantNodeJoinCondition() : \PHPCR\Query\QOM\DescendantNodeJoinConditionInterface6.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\DynamicOperandInterface6.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\EquiJoinConditionInterface6.7.8.
EquiJoinCondition Parse an SQL2 equijoin condition and return a QOM\EquiJoinCondition
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\EquiJoinConditionInterface |

parseFullTextSearch() : \PHPCR\Query\QOM\FullTextSearchInterface6.7.19 FullTextSearch
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\FullTextSearchInterface |

parseIdentifier() : arrayParse 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) : void6.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\JoinConditionInterface6.7.7.
JoinCondition Parse an SQL2 join condition and return a QOM\Joincondition
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\JoinConditionInterface |

parseLiteral() : \PHPCR\Query\QOM\LiteralInterface6.7.34 Literal Parse an SQL2 literal value
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\LiteralInterface |

parseNot() : \PHPCR\Query\QOM\NotInterface6.7.15 Not
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\NotInterface |

parseOperator() : string6.7.17 Operator
| Type | Description |
|---|---|
| string | a constant from QueryObjectModelConstantsInterface |

parsePath() : voidParse 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\PropertyExistenceInterface6.7.18 PropertyExistence
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\PropertyExistenceInterface |

parsePropertyValue() : \PHPCR\Query\QOM\PropertyValueInterface6.7.27 PropertyValue Parse an SQL2 property value
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\PropertyValueInterface |

parseSameNodeJoinCondition() : \PHPCR\Query\QOM\SameNodeJoinConditionInterface6.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\SelectorInterface6.7.3.
Selector Parse an SQL2 selector and return a QOM\Selector
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\SelectorInterface |

parseSource() : \PHPCR\Query\QOM\SourceInterface6.7.2.
Source Parse an SQL2 source definition and return the corresponding QOM Source
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\SourceInterface |

parseStaticOperand() : \PHPCR\Query\QOM\StaticOperandInterfaceParse an SQL2 static operand 6.7.35 BindVariable 6.7.36 Prefix
| Type | Description |
|---|---|
| \PHPCR\Query\QOM\StaticOperandInterface |