public class SqlGenerator extends SqlGeneratorBase implements ErrorReporter
| Modifier and Type | Field and Description |
|---|---|
static boolean |
REGRESSION_STYLE_CROSS_JOINS |
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_2, _tokenSet_3, _tokenSet_4, _tokenSet_5, exprs_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNamesAGGREGATE, ALIAS, ALIAS_REF, ALL, AND, ANY, AS, ASCENDING, AVG, BETWEEN, BOGUS, BOTH, CASE, CASE2, CAST, CLASS, CLOSE, CLOSE_BRACKET, COLON, COMMA, CONCAT, CONSTANT, CONSTRUCTOR, COUNT, DELETE, DESCENDING, DISTINCT, DIV, DOT, ELEMENTS, ELSE, EMPTY, END, ENTITY_JOIN, ENTRY, EOF, EQ, ESCAPE, ESCqs, EXISTS, EXPONENT, EXPR_LIST, FALSE, FETCH, FILTER_ENTITY, FILTERS, FIRST, FLOAT_SUFFIX, FROM, FROM_FRAGMENT, FULL, GE, GROUP, GT, HAVING, HEX_DIGIT, ID_LETTER, ID_START_LETTER, IDENT, IMPLIED_FROM, IN, IN_LIST, INDEX_OP, INDICES, INNER, INSERT, INTO, IS, IS_NOT_NULL, IS_NULL, JAVA_CONSTANT, JOIN, JOIN_FRAGMENT, KEY, LAST, LE, LEADING, LEFT, LEFT_OUTER, LIKE, LITERAL_ascending, LITERAL_by, LITERAL_descending, LT, MAX, MEMBER, METHOD_CALL, METHOD_NAME, MIN, MINUS, MOD, NAMED_PARAM, NE, NEW, NOT, NOT_BETWEEN, NOT_IN, NOT_LIKE, NULL, NULL_TREE_LOOKAHEAD, NULLS, NUM_BIG_DECIMAL, NUM_BIG_INTEGER, NUM_DOUBLE, NUM_FLOAT, NUM_INT, NUM_LONG, OBJECT, OF, ON, OPEN, OPEN_BRACKET, OR, ORDER, ORDER_ELEMENT, OUTER, PARAM, PLUS, PROPERTIES, PROPERTY_REF, QUERY, QUOTED_STRING, RANGE, RESULT_VARIABLE_REF, RIGHT, RIGHT_OUTER, ROW_STAR, SELECT, SELECT_CLAUSE, SELECT_COLUMNS, SELECT_EXPR, SELECT_FROM, SET, SOME, SQL_NE, SQL_NODE, SQL_TOKEN, STAR, SUM, THEN, THETA_JOINS, TRAILING, TRUE, UNARY_MINUS, UNARY_PLUS, UPDATE, VALUE, VECTOR_EXPR, VERSIONED, WEIRD_IDENT, WHEN, WHERE, WITH, WS| Constructor and Description |
|---|
SqlGenerator(SessionFactoryImplementor sfi) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginFunctionTemplate(antlr.collections.AST node,
antlr.collections.AST nameNode) |
protected void |
betweenFunctionArguments() |
protected void |
endFunctionTemplate(antlr.collections.AST node) |
protected void |
fromFragmentSeparator(antlr.collections.AST a) |
java.util.List<ParameterSpecification> |
getCollectedParameters() |
ParseErrorHandler |
getParseErrorHandler() |
java.lang.String |
getSQL() |
protected void |
nestedFromFragment(antlr.collections.AST d,
antlr.collections.AST parent) |
protected void |
optionalSpace()
Add a aspace if the previous token was not a space or a parenthesis.
|
protected void |
out(antlr.collections.AST n) |
protected void |
out(java.lang.String s) |
static void |
panic() |
protected java.lang.String |
renderOrderByElement(java.lang.String expression,
java.lang.String order,
java.lang.String nulls)
Implementation note: This is just a stub.
|
void |
reportError(antlr.RecognitionException e) |
void |
reportError(java.lang.String s) |
void |
reportWarning(java.lang.String s) |
void |
traceIn(java.lang.String ruleName,
antlr.collections.AST tree) |
void |
traceOut(java.lang.String ruleName,
antlr.collections.AST tree) |
additiveExpr, addrExpr, aggregate, arguments, arithmeticExpr, binaryComparisonExpression, booleanExpr, booleanOp, captureExpressionFinish, captureExpressionStart, caseExpr, castExpression, castTargetType, comparisonExpr, conditionList, constant, count, countExpr, deleteStatement, distinctOrAll, exoticComparisonExpression, expr, filters, from, fromTable, getLastChar, getStringBuilder, groupExprs, hasText, inList, insertStatement, likeEscape, mapComponentReference, methodCall, multiplicativeExpr, nestedExpr, nestedExprAfterMinusDiv, nullOrdering, nullPrecedence, nyi, orderDirection, orderExprs, parameter, parenSelect, quantified, resetCapture, selectAtom, selectBooleanExpr, selectClause, selectColumn, selectExpr, selectStatement, separator, setClause, simpleExpr, simpleExprList, simpleOrTupleExpr, sqlToken, statement, tableJoin, thetaJoins, tupleExpr, updateStatement, whereClause, whereClauseExpr, whereExprpublic SqlGenerator(SessionFactoryImplementor sfi)
public void traceIn(java.lang.String ruleName,
antlr.collections.AST tree)
traceIn in class antlr.TreeParserpublic void traceOut(java.lang.String ruleName,
antlr.collections.AST tree)
traceOut in class antlr.TreeParserpublic java.util.List<ParameterSpecification> getCollectedParameters()
protected void out(java.lang.String s)
out in class SqlGeneratorBaseprotected void out(antlr.collections.AST n)
out in class SqlGeneratorBaseprotected void betweenFunctionArguments()
betweenFunctionArguments in class SqlGeneratorBasepublic void reportError(antlr.RecognitionException e)
reportError in interface ErrorReporterreportError in class antlr.TreeParserpublic void reportError(java.lang.String s)
reportError in interface ErrorReporterreportError in class antlr.TreeParserpublic void reportWarning(java.lang.String s)
reportWarning in interface ErrorReporterreportWarning in class antlr.TreeParserpublic ParseErrorHandler getParseErrorHandler()
public java.lang.String getSQL()
protected void optionalSpace()
SqlGeneratorBaseoptionalSpace in class SqlGeneratorBaseprotected void beginFunctionTemplate(antlr.collections.AST node,
antlr.collections.AST nameNode)
beginFunctionTemplate in class SqlGeneratorBaseprotected void endFunctionTemplate(antlr.collections.AST node)
endFunctionTemplate in class SqlGeneratorBasepublic static void panic()
protected void fromFragmentSeparator(antlr.collections.AST a)
fromFragmentSeparator in class SqlGeneratorBaseprotected void nestedFromFragment(antlr.collections.AST d,
antlr.collections.AST parent)
nestedFromFragment in class SqlGeneratorBaseprotected java.lang.String renderOrderByElement(java.lang.String expression,
java.lang.String order,
java.lang.String nulls)
SqlGeneratorBaserenderOrderByElement in class SqlGeneratorBaseCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.