|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FarragoSessionParser
FarragoSessionParser represents an object capable of parsing Farrago SQL statements.
Method Summary | |
---|---|
SqlParserPos |
getCurrentPosition()
|
FarragoSessionDdlValidator |
getDdlValidator()
|
String |
getJdbcKeywords()
|
String |
getSourceString()
|
FarragoSessionStmtValidator |
getStmtValidator()
|
String |
getSubstring(SqlParserPos start,
SqlParserPos end)
Gets a substring from the text currently being parsed. |
EigenbaseException |
newPositionalError(SqlValidatorException ex)
Wraps a validation error with the current position information of the parser. |
Object |
parseSqlText(FarragoSessionStmtValidator stmtValidator,
FarragoSessionDdlValidator ddlValidator,
String sql,
boolean expectStatement)
Parses an SQL expression. |
Method Detail |
---|
Object parseSqlText(FarragoSessionStmtValidator stmtValidator, FarragoSessionDdlValidator ddlValidator, String sql, boolean expectStatement)
stmtValidator
- the statement validator to useddlValidator
- the validator to use for lookup during parsing if
this turns out to be a DDL statement; may be null if DDL is not allowedsql
- the SQL text to be parsedexpectStatement
- if true, expect a statement; if false, expect a
row-expression
SqlParserPos getCurrentPosition()
String getJdbcKeywords()
FarragoSessionDdlValidator getDdlValidator()
FarragoSessionStmtValidator getStmtValidator()
String getSourceString()
EigenbaseException newPositionalError(SqlValidatorException ex)
ex
- exception to be wrapped
String getSubstring(SqlParserPos start, SqlParserPos end)
start
- start position (inclusive) of substringend
- end position (exclusive) of substring
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |