class SqlMetaIdent extends Object implements SqlMetaSimple, SqlMetaLogOperand
Schematically:
SqlMetaIdent +-SqlMetaIdentItem.SqlMetaIdentItem...^SqlMyType^value
Modifier and Type | Field and Description |
---|---|
private SqlInputValue.Code |
caseConversion
Which conversion should be done on input value.
|
private List<String> |
elements
The list of sub-elements.
|
private SqlInputValue.Mode |
inOutMode
Which mode of callable statement parameter it is.
|
(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.
|
(package private) Map<String,String> |
values
Values for a special identifier handling, for example a sequence for an identity.
|
AND_PREFIX, CONST_PREFIX, IDENT_PREFIX, IDENT_SEPARATOR, lCONST_PREFIX, lIDENT_PREFIX, OR_PREFIX, SET_PREFIX, VALUES_PREFIX, WHERE_PREFIX
Constructor and Description |
---|
SqlMetaIdent(SqlInputValue.Code caseConversion,
SqlInputValue.Mode inOutMode)
Creates a new instance of this entity.
|
SqlMetaIdent(SqlInputValue.Code caseConversion,
SqlInputValue.Mode inOutMode,
boolean not)
Creates a new instance of this entity.
|
SqlMetaIdent(SqlInputValue.Code caseConversion,
SqlInputValue.Mode inOutMode,
boolean not,
SqlType type)
Creates a new instance of this entity.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addIdent(String name)
Adds a new name.
|
List<String> |
getElements()
Returns the list of sub-elements.
|
(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 |
setMetaType(SqlMetaType metaType)
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.
|
void |
setValues(String value,
String value2)
Sets the values for a special identifier handling, for example a sequence for an identity.
|
final org.slf4j.Logger logger
private SqlInputValue.Code caseConversion
private SqlInputValue.Mode inOutMode
private boolean not
private List<String> elements
private SqlType sqlType
SqlMetaIdent(SqlInputValue.Code caseConversion, SqlInputValue.Mode inOutMode)
caseConversion
- which conversion should be done on inputValueSqlMetaIdent(SqlInputValue.Code caseConversion, SqlInputValue.Mode inOutMode, 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 SQLSqlMetaIdent(SqlInputValue.Code caseConversion, SqlInputValue.Mode inOutMode, 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 typevoid addIdent(String name)
name
- the next name in the list of namesvoid setMetaType(SqlMetaType metaType)
metaType
- an internal typepublic void setValues(String value, String value2)
value
- the value for a special treatment, might be an identifier of value2 or a value for a comparisonvalue2
- the value for a special treatment, might be a sequence name for an identity columnSqlType getSqlType()
void setNot(boolean not)
not
- a new indicator valueboolean isNot()
public List<String> getElements()
public SqlProcessResult process(SqlProcessContext ctx)
process
in interface SqlMetaElement
ctx
- the crate for all input parameters and the context of processingpublic boolean processExpression(SqlProcessContext ctx)
processExpression
in interface SqlMetaLogOperand
ctx
- the context for a dynamic ANSI SQL Query generationCopyright © 2015. All rights reserved.