|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object antlr.TreeParser org.hibernate.hql.antlr.SqlGeneratorBase org.hibernate.hql.ast.SqlGenerator
public class SqlGenerator
Generates SQL by overriding callback methods in the base class, which does the actual SQL AST walking.
Field Summary | |
---|---|
static boolean |
REGRESSION_STYLE_CROSS_JOINS
|
Fields inherited from class org.hibernate.hql.antlr.SqlGeneratorBase |
---|
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_2, _tokenSet_3, _tokenSet_4, _tokenSet_5 |
Fields inherited from class antlr.TreeParser |
---|
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames |
Constructor Summary | |
---|---|
SqlGenerator(SessionFactoryImplementor sfi)
|
Method Summary | |
---|---|
protected void |
beginFunctionTemplate(antlr.collections.AST node,
antlr.collections.AST nameNode)
|
protected void |
commaBetweenParameters(String comma)
|
protected void |
endFunctionTemplate(antlr.collections.AST node)
|
protected void |
fromFragmentSeparator(antlr.collections.AST a)
|
List |
getCollectedParameters()
|
ParseErrorHandler |
getParseErrorHandler()
|
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(String s)
|
static void |
panic()
|
void |
reportError(antlr.RecognitionException e)
|
void |
reportError(String s)
|
void |
reportWarning(String s)
|
void |
traceIn(String ruleName,
antlr.collections.AST tree)
|
void |
traceOut(String ruleName,
antlr.collections.AST tree)
|
Methods inherited from class org.hibernate.hql.antlr.SqlGeneratorBase |
---|
additiveExpr, addrExpr, aggregate, arguments, arithmeticExpr, binaryComparisonExpression, booleanExpr, booleanOp, caseExpr, comparisonExpr, conditionList, constant, count, countExpr, deleteStatement, distinctOrAll, exoticComparisonExpression, expr, filters, from, fromTable, getLastChar, getStringBuffer, groupExprs, hasText, inList, insertStatement, likeEscape, mapComponentReference, methodCall, multiplicativeExpr, nestedExpr, nestedExprAfterMinusDiv, nyi, orderDirection, orderExprs, parameter, parenSelect, quantified, selectAtom, selectClause, selectColumn, selectExpr, selectStatement, separator, setClause, simpleExpr, simpleExprList, sqlToken, statement, tableJoin, thetaJoins, updateStatement, whereClause, whereClauseExpr, whereExpr |
Methods inherited from class antlr.TreeParser |
---|
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, setASTFactory, setASTNodeClass, setASTNodeType, traceIndent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean REGRESSION_STYLE_CROSS_JOINS
Constructor Detail |
---|
public SqlGenerator(SessionFactoryImplementor sfi)
Method Detail |
---|
public void traceIn(String ruleName, antlr.collections.AST tree)
traceIn
in class antlr.TreeParser
public void traceOut(String ruleName, antlr.collections.AST tree)
traceOut
in class antlr.TreeParser
public List getCollectedParameters()
protected void out(String s)
out
in class SqlGeneratorBase
protected void out(antlr.collections.AST n)
out
in class SqlGeneratorBase
protected void commaBetweenParameters(String comma)
commaBetweenParameters
in class SqlGeneratorBase
public void reportError(antlr.RecognitionException e)
reportError
in interface ErrorReporter
reportError
in class antlr.TreeParser
public void reportError(String s)
reportError
in interface ErrorReporter
reportError
in class antlr.TreeParser
public void reportWarning(String s)
reportWarning
in interface ErrorReporter
reportWarning
in class antlr.TreeParser
public ParseErrorHandler getParseErrorHandler()
public String getSQL()
protected void optionalSpace()
SqlGeneratorBase
optionalSpace
in class SqlGeneratorBase
protected void beginFunctionTemplate(antlr.collections.AST node, antlr.collections.AST nameNode)
beginFunctionTemplate
in class SqlGeneratorBase
protected void endFunctionTemplate(antlr.collections.AST node)
endFunctionTemplate
in class SqlGeneratorBase
public static void panic()
protected void fromFragmentSeparator(antlr.collections.AST a)
fromFragmentSeparator
in class SqlGeneratorBase
protected void nestedFromFragment(antlr.collections.AST d, antlr.collections.AST parent)
nestedFromFragment
in class SqlGeneratorBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |