|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.impl.SqlMetaConst
org.sqlproc.engine.impl.SqlMetaOperator
class SqlMetaOperator
A META SQL sub-element. It represents a dynamic SQL operator.
| Field Summary | |
|---|---|
(package private) boolean |
dynamicInputValue
An indicator the dynamic input values are used. |
| Fields inherited from class org.sqlproc.engine.impl.SqlMetaConst |
|---|
logger, values |
| 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 | |
|---|---|
SqlMetaOperator(boolean dynamicInputValue,
List<String> elements)
Creates a new instance of this entity using the list of sub-elements. |
|
SqlMetaOperator(SqlInputValue.Code caseConversion)
Creates a new instance of this entity. |
|
SqlMetaOperator(SqlInputValue.Code caseConversion,
boolean not)
Creates a new instance of this entity. |
|
SqlMetaOperator(SqlInputValue.Code caseConversion,
boolean not,
SqlType type)
Creates a new instance of this entity. |
|
| Method Summary | |
|---|---|
(package private) String |
getData(Object obj)
Returns a String representation of input values, after a possible transformation process. |
(package private) String |
getDefaultData()
Returns a default input value in the case the input attribute is null. |
(package private) Class<?> |
getFieldType(SqlProcessContext ctx,
Class<?> attributeType,
String attributeName)
Returns the static input attribute type. |
(package private) Object |
getInputValues(SqlProcessContext ctx)
Returns the static or dynamic input values. |
(package private) Object |
getProperty(SqlProcessContext ctx,
Object obj,
String item)
Returns the static input attribute value. |
| Methods inherited from class org.sqlproc.engine.impl.SqlMetaConst |
|---|
addConst, getElements, getSqlType, isNot, process, processExpression, setElements, setMetaType, setNot, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
boolean dynamicInputValue
| Constructor Detail |
|---|
public SqlMetaOperator(SqlInputValue.Code 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
public SqlMetaOperator(SqlInputValue.Code 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 SQLpublic SqlMetaOperator(SqlInputValue.Code caseConversion)
caseConversion - which conversion should be done on inputValue
public SqlMetaOperator(boolean dynamicInputValue,
List<String> elements)
dynamicInputValue - an indicator the dynamic input values are usedelements - the list of sub-elements| Method Detail |
|---|
Object getInputValues(SqlProcessContext ctx)
getInputValues in class SqlMetaConstctx - the crate for all input parameters and the context of processing
String getDefaultData()
getDefaultData in class SqlMetaConst
Class<?> getFieldType(SqlProcessContext ctx,
Class<?> attributeType,
String attributeName)
getFieldType in class SqlMetaConstctx - the crate for all input parameters and the context of processingattributeType - parents typeattributeName - the attribute name
Object getProperty(SqlProcessContext ctx,
Object obj,
String item)
getProperty in class SqlMetaConstctx - the crate for all input parameters and the context of processingobj - the static input value POJOitem - the attribute name
String getData(Object obj)
getData in class SqlMetaConstobj - a raw input value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||