public class SQLParserUtil extends Object
Modifier and Type | Field and Description |
---|---|
static List<String> |
aggregateFunctions |
static List<String> |
controlCharacters |
static List<String> |
delimiters |
static List<String> |
keyWords |
static List<String> |
operators |
static List<String> |
specialFunctions |
static List<String> |
stringFunctions |
Constructor and Description |
---|
SQLParserUtil() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
extractInputMappingNames(String sql)
Extracts out the Input mappings names specified in the query
|
static List<String> |
extractOutputColumns(String sql)
This method returns the list of queried columns of a particular input sql string.
|
static List<String> |
getControlCharacters() |
static List<String> |
getDelimiters() |
static List<String> |
getKeyWords() |
static List<String> |
getOperators() |
static Queue<String> |
getTokens(String sql)
This particular method transform a particular SQL string to a set of tokens and returns
a queue which contains the tokens(String objects) produced by the logic of the method.
|
static boolean |
isAggregateFunction(String token) |
static boolean |
isControlCharacter(String token) |
static boolean |
isDelimiter(String token) |
static boolean |
isOperator(String token) |
static boolean |
isStringFunction(String token) |
public static boolean isAggregateFunction(String token)
public static boolean isStringFunction(String token)
public static Queue<String> getTokens(String sql)
sql
- Input SQL stringpublic static boolean isDelimiter(String token)
public static boolean isOperator(String token)
public static boolean isControlCharacter(String token)
public static List<String> extractOutputColumns(String sql) throws DataServiceFault
sql
- Input SQL stringDataServiceFault
- If any error occurs while parsing the SQL queryCopyright © 2019 WSO2. All rights reserved.