| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | SqlGenerator.DefaultWriter
The default SQL writer. |
| pack-priv class | SqlGenerator.FunctionArguments
SQL function processing code redirects generated SQL output to an instance of this class which catches function arguments. |
| pack-priv static interface | SqlGenerator.SqlWriter
Writes SQL fragments. |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private static final Logger | |
| private LinkedList | |
| private ParseErrorHandler | |
| private final ASTPrinter | |
| public static boolean | |
| private SessionFactoryImplementor | |
| private final boolean | |
| private int | |
| private SqlGenerator. | writer
all append invocations on the buf should go through this Output instance variable. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | beginFunctionTemplate(AST node, AST nameNode)
Overrides org. |
| private String | |
| protected void | |
| protected void | |
| protected void | |
| public List | |
| public ParseErrorHandler | |
| public String | |
| protected void | nestedFromFragment(AST d, AST parent)
Overrides org. |
| protected void | optionalSpace()
Overrides org. |
| protected void | |
| protected void | |
| public static void | |
| public void | reportError(RecognitionException e)
Overrides antlr. Implements org. |
| public void | reportError(String s)
Overrides antlr. Implements org. |
| public void | reportWarning(String s)
Overrides antlr. Implements org. |
| public void | |
| public void | |
| private void |
| collectedParameters | back to summary |
|---|---|
| private List<E> collectedParameters | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| outputStack | back to summary |
|---|---|
| private LinkedList<SqlGenerator. | |
| parseErrorHandler | back to summary |
|---|---|
| private ParseErrorHandler parseErrorHandler | |
| printer | back to summary |
|---|---|
| private final ASTPrinter printer | |
| REGRESSION_STYLE_CROSS_JOINS | back to summary |
|---|---|
| public static boolean REGRESSION_STYLE_CROSS_JOINS | |
| sessionFactory | back to summary |
|---|---|
| private SessionFactoryImplementor sessionFactory | |
| trace | back to summary |
|---|---|
| private final boolean trace | |
| traceDepth | back to summary |
|---|---|
| private int traceDepth Hides antlr. | |
| writer | back to summary |
|---|---|
| private SqlGenerator. all append invocations on the buf should go through this Output instance variable. The value of this variable may be temporarily substituted by sql function processing code to catch generated arguments. This is because sql function templates need arguments as separate string chunks that will be assembled into the target dialect-specific function call. | |
| SqlGenerator | back to summary |
|---|---|
| public SqlGenerator(SessionFactoryImplementor sfi) | |
| beginFunctionTemplate | back to summary |
|---|---|
| protected void beginFunctionTemplate(AST node, AST nameNode) Overrides org. | |
| buildTraceNodeName | back to summary |
|---|---|
| private String buildTraceNodeName(AST tree) | |
| commaBetweenParameters | back to summary |
|---|---|
| protected void commaBetweenParameters(String comma) Overrides org. | |
| endFunctionTemplate | back to summary |
|---|---|
| protected void endFunctionTemplate(AST node) Overrides org. | |
| fromFragmentSeparator | back to summary |
|---|---|
| protected void fromFragmentSeparator(AST a) Overrides org. | |
| getCollectedParameters | back to summary |
|---|---|
| public List | |
| getParseErrorHandler | back to summary |
|---|---|
| public ParseErrorHandler getParseErrorHandler() | |
| getSQL | back to summary |
|---|---|
| public String getSQL() | |
| nestedFromFragment | back to summary |
|---|---|
| protected void nestedFromFragment(AST d, AST parent) Overrides org. | |
| optionalSpace | back to summary |
|---|---|
| protected void optionalSpace() Overrides org. Doc from org. Add a aspace if the previous token was not a space or a parenthesis. | |
| out | back to summary |
|---|---|
| protected void out(String s) Overrides org. | |
| out | back to summary |
|---|---|
| protected void out(AST n) Overrides org. | |
| panic | back to summary |
|---|---|
| public static void panic() Hides antlr. | |
| reportError | back to summary |
|---|---|
| public void reportError(RecognitionException e) Overrides antlr. Implements org. Doc from antlr. Parser error-reporting function can be overridden in subclass | |
| reportError | back to summary |
|---|---|
| public void reportError(String s) Overrides antlr. Implements org. Doc from antlr. Parser error-reporting function can be overridden in subclass | |
| reportWarning | back to summary |
|---|---|
| public void reportWarning(String s) Overrides antlr. Implements org. Doc from antlr. Parser warning-reporting function can be overridden in subclass | |
| traceIn | back to summary |
|---|---|
| public void traceIn(String ruleName, AST tree) Overrides antlr. | |
| traceOut | back to summary |
|---|---|
| public void traceOut(String ruleName, AST tree) Overrides antlr. | |
| writeCrossJoinSeparator | back to summary |
|---|---|
| private void writeCrossJoinSeparator() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | commaBetweenParameters(String
either " , " or ", " comma)Implements org. |
| DefaultWriter | back to summary |
|---|---|
| pack-priv DefaultWriter() | |
| clause | back to summary |
|---|---|
| public void clause(String clause) Implements org. | |
| commaBetweenParameters | back to summary |
|---|---|
| public void commaBetweenParameters(String comma) Implements org. Doc from org. todo remove this hack The parameter is either ", " or " , ". This is needed to pass sql generating tests as the old sql generator uses " , " in the WHERE and ", " in SELECT.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | commaBetweenParameters(String
either " , " or ", " comma)Implements org. |
| public List |
| argInd | back to summary |
|---|---|
| private int argInd | |
| args | back to summary |
|---|---|
| private final List<String> args | |
| FunctionArguments | back to summary |
|---|---|
| pack-priv FunctionArguments() | |
| clause | back to summary |
|---|---|
| public void clause(String clause) Implements org. | |
| commaBetweenParameters | back to summary |
|---|---|
| public void commaBetweenParameters(String comma) Implements org. Doc from org. todo remove this hack The parameter is either ", " or " , ". This is needed to pass sql generating tests as the old sql generator uses " , " in the WHERE and ", " in SELECT.
| |
| getArgs | back to summary |
|---|---|
| public List | |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | commaBetweenParameters(String
either " , " or ", " comma)todo remove this hack The parameter is either ", " or " , ". |
| clause | back to summary |
|---|---|
| public void clause(String clause) | |
| commaBetweenParameters | back to summary |
|---|---|
| public void commaBetweenParameters(String comma) todo remove this hack The parameter is either ", " or " , ". This is needed to pass sql generating tests as the old sql generator uses " , " in the WHERE and ", " in SELECT.
| |