class SqlMetaLogExpr extends Object implements SqlMetaElement, SqlMetaLogOperand
Schematically:
SqlMetaLogExpr
SqlMetaIdent
SqlMetaConst
SqlMetaLogOperator
SqlMetaLogExpr for embedded ()
| Modifier and Type | Field and Description |
|---|---|
(package private) List<SqlMetaLogOperand> |
elements
The list of sub-elements based on ANTLR grammar.
|
(package private) org.slf4j.Logger |
logger
The internal slf4j logger.
|
private boolean |
not
The indicator, which reverses the final logical value.
|
AND_PREFIX, CONST_PREFIX, IDENT_PREFIX, IDENT_SEPARATOR, lCONST_PREFIX, lIDENT_PREFIX, OR_PREFIX, SET_PREFIX, VALUES_PREFIX, WHERE_PREFIX| Constructor and Description |
|---|
SqlMetaLogExpr()
Creates a new instance.
|
SqlMetaLogExpr(boolean not)
Creates a new instance of this entity.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addElement(SqlMetaLogOperand element)
Adds a new sub-element.
|
(package private) boolean |
isNot()
Returns the indicator, which reverses the final logical value.
|
SqlProcessResult |
process(SqlProcessContext ctx)
The main contract for a dynamic ANSI SQL Query generation.
|
boolean |
processExpression(SqlProcessContext ctx)
The main contract to evaluate a logical value of META SQL sub-elements.
|
(package private) void |
setNot(boolean not)
Sets the indicator, which reverses the final logical value.
|
final org.slf4j.Logger logger
private boolean not
List<SqlMetaLogOperand> elements
SqlMetaLogExpr()
SqlMetaLogExpr(boolean not)
not - the indicator, which reverses the final logical valuevoid addElement(SqlMetaLogOperand element)
element - new sub-element, based on ANTLR grammarboolean isNot()
void setNot(boolean not)
not - a new value of the indicatorpublic boolean processExpression(SqlProcessContext ctx)
processExpression in interface SqlMetaLogOperandctx - the context for a dynamic ANSI SQL Query generationpublic SqlProcessResult process(SqlProcessContext ctx)
process in interface SqlMetaElementctx - the crate for all input parameters and the context of processingCopyright © 2014. All Rights Reserved.