类 SqlGenerator
- java.lang.Object
-
- antlr.TreeParser
-
- org.hibernate.hql.internal.antlr.SqlGeneratorBase
-
- org.hibernate.hql.internal.ast.SqlGenerator
-
- 所有已实现的接口:
SqlTokenTypes,ErrorReporter
public class SqlGenerator extends SqlGeneratorBase implements ErrorReporter
Generates SQL by overriding callback methods in the base class, which does the actual SQL AST walking.- 作者:
- Joshua Davis, Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static booleanREGRESSION_STYLE_CROSS_JOINS-
从类继承的字段 org.hibernate.hql.internal.antlr.SqlGeneratorBase
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_2, _tokenSet_3, _tokenSet_4, _tokenSet_5, exprs
-
从接口继承的字段 org.hibernate.hql.internal.antlr.SqlTokenTypes
AGGREGATE, 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
-
-
构造器概要
构造器 构造器 说明 SqlGenerator(SessionFactoryImplementor sfi)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidbeginFunctionTemplate(antlr.collections.AST node, antlr.collections.AST nameNode)protected voidbetweenFunctionArguments()protected voidendFunctionTemplate(antlr.collections.AST node)protected voidfromFragmentSeparator(antlr.collections.AST a)List<ParameterSpecification>getCollectedParameters()ParseErrorHandlergetParseErrorHandler()StringgetSQL()protected voidnestedFromFragment(antlr.collections.AST d, antlr.collections.AST parent)protected voidoptionalSpace()Add a aspace if the previous token was not a space or a parenthesis.protected voidout(antlr.collections.AST n)protected voidout(String s)static voidpanic()protected StringrenderOrderByElement(String expression, String order, String nulls)Implementation note: This is just a stub.voidreportError(antlr.RecognitionException e)voidreportError(String s)voidreportWarning(String s)voidtraceIn(String ruleName, antlr.collections.AST tree)voidtraceOut(String ruleName, antlr.collections.AST tree)-
从类继承的方法 org.hibernate.hql.internal.antlr.SqlGeneratorBase
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, whereExpr
-
-
-
-
构造器详细资料
-
SqlGenerator
public SqlGenerator(SessionFactoryImplementor sfi)
-
-
方法详细资料
-
traceIn
public void traceIn(String ruleName, antlr.collections.AST tree)
- 覆盖:
traceIn在类中antlr.TreeParser
-
traceOut
public void traceOut(String ruleName, antlr.collections.AST tree)
- 覆盖:
traceOut在类中antlr.TreeParser
-
getCollectedParameters
public List<ParameterSpecification> getCollectedParameters()
-
out
protected void out(String s)
- 覆盖:
out在类中SqlGeneratorBase
-
out
protected void out(antlr.collections.AST n)
- 覆盖:
out在类中SqlGeneratorBase
-
betweenFunctionArguments
protected void betweenFunctionArguments()
-
reportError
public void reportError(antlr.RecognitionException e)
- 指定者:
reportError在接口中ErrorReporter- 覆盖:
reportError在类中antlr.TreeParser
-
reportError
public void reportError(String s)
- 指定者:
reportError在接口中ErrorReporter- 覆盖:
reportError在类中antlr.TreeParser
-
reportWarning
public void reportWarning(String s)
- 指定者:
reportWarning在接口中ErrorReporter- 覆盖:
reportWarning在类中antlr.TreeParser
-
getParseErrorHandler
public ParseErrorHandler getParseErrorHandler()
-
getSQL
public String getSQL()
-
optionalSpace
protected void optionalSpace()
从类复制的说明:SqlGeneratorBaseAdd a aspace if the previous token was not a space or a parenthesis.- 覆盖:
optionalSpace在类中SqlGeneratorBase
-
beginFunctionTemplate
protected void beginFunctionTemplate(antlr.collections.AST node, antlr.collections.AST nameNode)
-
endFunctionTemplate
protected void endFunctionTemplate(antlr.collections.AST node)
- 覆盖:
endFunctionTemplate在类中SqlGeneratorBase
-
panic
public static void panic()
-
fromFragmentSeparator
protected void fromFragmentSeparator(antlr.collections.AST a)
-
nestedFromFragment
protected void nestedFromFragment(antlr.collections.AST d, antlr.collections.AST parent)- 覆盖:
nestedFromFragment在类中SqlGeneratorBase
-
renderOrderByElement
protected String renderOrderByElement(String expression, String order, String nulls)
从类复制的说明:SqlGeneratorBaseImplementation note: This is just a stub. SqlGenerator contains the effective implementation.- 覆盖:
renderOrderByElement在类中SqlGeneratorBase
-
-