Package org.sqlproc.engine.impl
Class SqlMetaText
- java.lang.Object
-
- org.sqlproc.engine.impl.SqlMetaText
-
- All Implemented Interfaces:
SqlMetaElement
,SqlMetaSimple
class SqlMetaText extends Object implements SqlMetaSimple
A META SQL sub-element. It represents a text without any semantic value for a META SQL generation.- Author:
- Vladimir Hudec
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.slf4j.Logger
logger
The internal slf4j logger.private String
sql
An ANSI SQL fragment from META SQL.-
Fields inherited from interface org.sqlproc.engine.impl.SqlMetaElement
AND_PREFIX, CONST_PREFIX, IDENT_PREFIX, IDENT_SEPARATOR, lCONST_PREFIX, lIDENT_PREFIX, OR_PREFIX, SET_PREFIX, VALUES_PREFIX, WHERE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description SqlMetaText(String sql)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isWhite()
Returns an indicator that the text fragment is empty.SqlProcessResult
process(SqlProcessContext ctx)
The main contract for a dynamic ANSI SQL Query generation.
-
-
-
Field Detail
-
logger
final org.slf4j.Logger logger
The internal slf4j logger.
-
sql
private String sql
An ANSI SQL fragment from META SQL.
-
-
Constructor Detail
-
SqlMetaText
SqlMetaText(String sql)
Creates a new instance. It's used from inside ANTLR parser.- Parameters:
sql
- the ANSI SQL fragment from META SQL
-
-
Method Detail
-
isWhite
public boolean isWhite()
Returns an indicator that the text fragment is empty.- Returns:
- an indicator that the text fragment is empty
-
process
public SqlProcessResult process(SqlProcessContext ctx)
The main contract for a dynamic ANSI SQL Query generation. Also known as a META SQL processing. The composite pattern main contract. All ANTLR grammar based elements must implement this contract.- Specified by:
process
in interfaceSqlMetaElement
- Parameters:
ctx
- the crate for all input parameters and the context of processing
-
-