|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectantlr.TreeParser
org.hibernate.hql.internal.antlr.SqlGeneratorBase
org.hibernate.hql.internal.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.internal.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 |
betweenFunctionArguments()
|
protected void |
endFunctionTemplate(antlr.collections.AST node)
|
protected void |
fromFragmentSeparator(antlr.collections.AST a)
|
List<ParameterSpecification> |
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()
|
protected String |
renderOrderByElement(String expression,
String order,
String nulls)
Implementation note: This is just a stub. |
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 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.TreeParserpublic List<ParameterSpecification> getCollectedParameters()
protected void out(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(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 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 SqlGeneratorBase
protected void nestedFromFragment(antlr.collections.AST d,
antlr.collections.AST parent)
nestedFromFragment in class SqlGeneratorBase
protected String renderOrderByElement(String expression,
String order,
String nulls)
SqlGeneratorBase
renderOrderByElement in class SqlGeneratorBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||