public class SQL2Parser
extends java.lang.Object
| Constructor and Description |
|---|
SQL2Parser(NamePathMapper namePathMapper,
NodeState types,
QueryEngineSettings settings)
Create a new parser.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escapeStringLiteral(java.lang.String value) |
static int |
getPropertyTypeFromName(java.lang.String name)
Get the property type from the given case insensitive name.
|
static boolean |
isInternal(java.lang.String statement)
Whether the given statement is an internal query.
|
Query |
parse(java.lang.String query)
as
parse(String, boolean) by providing true to the initialisation flag. |
Query |
parse(java.lang.String query,
boolean initialise)
Parse the statement and return the query.
|
void |
setAllowNumberLiterals(boolean allowNumberLiterals) |
void |
setAllowTextLiterals(boolean allowTextLiterals)
Enable or disable support for text literals in queries.
|
void |
setIncludeSelectorNameInWildcardColumns(boolean value) |
void |
setSupportSQL1(boolean sql1)
Enable or disable support for SQL-1 queries.
|
public SQL2Parser(NamePathMapper namePathMapper, NodeState types, QueryEngineSettings settings)
namePathMapper - the name-path mapper to usetypes - the node with the node type informationpublic Query parse(java.lang.String query, boolean initialise) throws java.text.ParseException
query - the query stringinitialise - if performing the query init (true) or not (false)java.text.ParseException - if parsing failspublic Query parse(java.lang.String query) throws java.text.ParseException
parse(String, boolean) by providing true to the initialisation flag.query - java.text.ParseExceptionpublic void setSupportSQL1(boolean sql1)
sql1 - the new valuepublic static int getPropertyTypeFromName(java.lang.String name)
name - the property type name (case insensitive)PropertyType.UNDEFINED if unknownpublic static java.lang.String escapeStringLiteral(java.lang.String value)
public void setAllowTextLiterals(boolean allowTextLiterals)
allowTextLiterals - public void setAllowNumberLiterals(boolean allowNumberLiterals)
public void setIncludeSelectorNameInWildcardColumns(boolean value)
public static boolean isInternal(java.lang.String statement)
statement - the statement"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"