class SqlMetaAndOr extends Object implements SqlMetaElement
Schematically:
SqlMetaAndOr { SqlMetaIfItem | SqlMetaIfItem...} {& SqlMetaIfItem | SqlMetaIfItem...} {| SqlMetaIfItem | SqlMetaIfItem...}
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SqlMetaAndOr.Type
The enumeration of types.
|
Modifier and Type | Field and Description |
---|---|
(package private) List<SqlMetaIfItem> |
elements
The list of sub-elements based on ANTLR grammar.
|
(package private) org.slf4j.Logger |
logger
The internal slf4j logger.
|
(package private) SqlMetaAndOr.Type |
type
The type if this element.
|
AND_PREFIX, CONST_PREFIX, IDENT_PREFIX, IDENT_SEPARATOR, lCONST_PREFIX, lIDENT_PREFIX, OR_PREFIX, SET_PREFIX, VALUES_PREFIX, WHERE_PREFIX
Constructor and Description |
---|
SqlMetaAndOr(SqlMetaAndOr.Type type)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addElement(SqlMetaIfItem element)
Adds a new sub-element.
|
(package private) String |
getPrefix()
Returns one of the next ANSI SQL fragments:
, AND or OR . |
SqlProcessResult |
process(SqlProcessContext ctx)
The main contract for a dynamic ANSI SQL Query generation.
|
final org.slf4j.Logger logger
List<SqlMetaIfItem> elements
SqlMetaAndOr.Type type
SqlMetaAndOr(SqlMetaAndOr.Type type)
type
- the type, which is used to control, how the related ANSI SQL fragment is added to the final ANSI SQL.void addElement(SqlMetaIfItem element)
element
- new sub-element, based on ANTLR grammarString getPrefix()
, AND
or OR
.public SqlProcessResult process(SqlProcessContext ctx)
process
in interface SqlMetaElement
ctx
- the crate for all input parameters and the context of processingCopyright © 2014. All Rights Reserved.