public class SqlSimpleParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SqlSimpleParser.IdToken |
static class |
SqlSimpleParser.Token |
static class |
SqlSimpleParser.Tokenizer |
| Constructor and Description |
|---|
SqlSimpleParser(String hintToken)
Creates a SqlSimpleParser
|
| Modifier and Type | Method and Description |
|---|---|
String |
simplifySql(String sql)
Turns a partially completed or syntactically incorrect sql statement into
a simplified, valid one that can be validated
|
String |
simplifySql(String sql,
int cursor)
Turns a partially completed or syntactically incorrect sql statement into
a simplified, valid one that can be passed into getCompletionHints().
|
public SqlSimpleParser(String hintToken)
hintToken - Hint tokenpublic String simplifySql(String sql, int cursor)
sql - A partial or syntactically incorrect sql statementcursor - to indicate column position in the query at which
completion hints need to be retrieved.public String simplifySql(String sql)
sql - A partial or syntactically incorrect sql statementCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.