|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectantlr.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 |
|---|
| 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, traceDepth |
| Constructor Summary | |
|---|---|
SqlGenerator(SessionFactoryImplementor sfi)
|
|
| Method Summary | |
|---|---|
protected void |
beginFunctionTemplate(antlr.collections.AST m,
antlr.collections.AST i)
|
protected void |
commaBetweenParameters(String comma)
|
protected void |
endFunctionTemplate(antlr.collections.AST m)
|
protected void |
fromFragmentSeparator(antlr.collections.AST a)
|
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)
|
| 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, 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, traceIn, traceIndent, traceOut |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlGenerator(SessionFactoryImplementor sfi)
| Method Detail |
|---|
protected void out(String s)
out in class SqlGeneratorBaseprotected void out(antlr.collections.AST n)
out in class SqlGeneratorBaseprotected void commaBetweenParameters(String comma)
commaBetweenParameters in class SqlGeneratorBasepublic void reportError(antlr.RecognitionException e)
reportError in interface ErrorReporterreportError in class antlr.TreeParserpublic void reportError(String s)
reportError in interface ErrorReporterreportError in class antlr.TreeParserpublic void reportWarning(String s)
reportWarning in interface ErrorReporterreportWarning in class antlr.TreeParserpublic ParseErrorHandler getParseErrorHandler()
public String getSQL()
protected void optionalSpace()
SqlGeneratorBase
optionalSpace in class SqlGeneratorBase
protected void beginFunctionTemplate(antlr.collections.AST m,
antlr.collections.AST i)
beginFunctionTemplate in class SqlGeneratorBaseprotected void endFunctionTemplate(antlr.collections.AST m)
endFunctionTemplate in class SqlGeneratorBasepublic 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 | |||||||||