|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.impl.SqlMetaIdent
class SqlMetaIdent
A META SQL sub-element. It represents a dynamic input value.
Schematically:
SqlMetaIdent
+-SqlMetaIdentItem.SqlMetaIdentItem...^SqlMyType^value
| Field Summary | |
|---|---|
private SqlInputValue.Case |
caseConversion
Which conversion should be done on input value. |
private java.util.List<SqlMetaIdentItem> |
elements
The list of sub-elements. |
(package private) org.slf4j.Logger |
logger
The internal slf4j logger. |
private boolean |
not
An indicator, which is used to control, how the input value is added to the final ANSI SQL. |
private SqlType |
sqlType
The type of this input value. |
| Fields inherited from interface org.sqlproc.engine.impl.SqlMetaElement |
|---|
AND_PREFIX, CONST_PREFIX, IDENT_PREFIX, IDENT_PREFIX_LEN, IDENT_SEPARATOR, OR_PREFIX |
| Constructor Summary | |
|---|---|
SqlMetaIdent(SqlInputValue.Case caseConversion)
Creates a new instance of this entity. |
|
SqlMetaIdent(SqlInputValue.Case caseConversion,
boolean not)
Creates a new instance of this entity. |
|
SqlMetaIdent(SqlInputValue.Case caseConversion,
boolean not,
SqlType type)
Creates a new instance of this entity. |
|
| Method Summary | |
|---|---|
(package private) void |
addIdent(SqlMetaIdentItem element)
Adds a new name. |
(package private) void |
addIdent(java.lang.String name)
Adds a new name. |
(package private) SqlType |
getSqlType()
Returns the type of this input value. |
(package private) boolean |
isNot()
Returns the indicator, which is used to control, how the input value is added to the final ANSI SQL. |
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 |
setHibernateType(java.lang.String sHibernateType)
Sets Hibernate type of this input value. |
(package private) void |
setMetaType(java.lang.String sMetaType)
Sets the internal type of this input value. |
(package private) void |
setNot(boolean not)
Sets the indicator, which is used to control, how the input value is added to the final ANSI SQL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final org.slf4j.Logger logger
private SqlInputValue.Case caseConversion
private boolean not
private java.util.List<SqlMetaIdentItem> elements
private SqlType sqlType
| Constructor Detail |
|---|
SqlMetaIdent(SqlInputValue.Case caseConversion)
caseConversion - which conversion should be done on inputValue
SqlMetaIdent(SqlInputValue.Case caseConversion,
boolean not)
caseConversion - which conversion should be done on inputValuenot - an indicator, which is used to control, how the input value is added to the final ANSI SQL
SqlMetaIdent(SqlInputValue.Case caseConversion,
boolean not,
SqlType type)
caseConversion - which conversion should be done on inputValuenot - an indicator, which is used to control, how the input value is added to the final ANSI SQLtype - the type of this input value, which can be Hibernate or an internal type| Method Detail |
|---|
void addIdent(java.lang.String name)
name - the next name in the list of namesvoid addIdent(SqlMetaIdentItem element)
element - an object representation of the next name in the list of namesvoid setMetaType(java.lang.String sMetaType)
sMetaType - a String representation of the internal typevoid setHibernateType(java.lang.String sHibernateType)
sHibernateType - a String representation of Hibernate typeSqlType getSqlType()
void setNot(boolean not)
not - a new indicator valueboolean isNot()
public SqlProcessResult process(SqlProcessContext ctx)
process in interface SqlMetaElementctx - the crate for all input parameters and the context of processingpublic boolean processExpression(SqlProcessContext ctx)
processExpression in interface SqlMetaLogOperandctx - the context for a dynamic ANSI SQL Query generation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||