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)
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) throws ParseException
query
- the query stringParseException
- if parsing failspublic 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 © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"