public class SQL2Parser extends Object
| Constructor and Description |
|---|
SQL2Parser(NamePathMapper namePathMapper,
NodeState types,
QueryEngineSettings settings)
Create a new parser.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeStringLiteral(String value) |
static int |
getPropertyTypeFromName(String name)
Get the property type from the given case insensitive name.
|
static boolean |
isInternal(String statement)
Whether the given statement is an internal query.
|
Query |
parse(String query)
as
parse(String, boolean) by providing true to the initialisation flag. |
Query |
parse(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(String query, boolean initialise) throws ParseException
query - the query stringinitialise - if performing the query init (true) or not (false)ParseException - if parsing failspublic Query parse(String query) throws ParseException
parse(String, boolean) by providing true to the initialisation flag.query - ParseExceptionpublic void setSupportSQL1(boolean sql1)
sql1 - the new valuepublic static int getPropertyTypeFromName(String name)
name - the property type name (case insensitive)PropertyType.UNDEFINED if unknownpublic void setAllowTextLiterals(boolean allowTextLiterals)
allowTextLiterals - public void setAllowNumberLiterals(boolean allowNumberLiterals)
public void setIncludeSelectorNameInWildcardColumns(boolean value)
public static boolean isInternal(String statement)
statement - the statement"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"