class SqlType extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
The internal type, which means special processing of the input/output value.
|
private SqlMetaType |
metaType
The internal META type, which means special processing of the input/output value.
|
private String |
metaTypeName
The name of the internal META type.
|
private String |
value
Right now only for the special of the enumeration type of the input value.
|
| Constructor and Description |
|---|
SqlType()
Creates a new instance with unspecified internal type.
|
SqlType(String metaTypeName,
SqlMetaType metaType)
Creates a new instance with specified internal type.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) SqlMetaType |
getMetaType(SqlProcessContext ctx)
Returns the internal type.
|
String |
getMetaTypeName()
Returns the name of the internal META type.
|
String |
getValue()
Returns the value.
|
(package private) void |
setParameter(SqlProcessContext ctx,
SqlQuery query,
String paramName,
Object inputValue,
Class<?>... inputTypes)
Bind an input value to a named query parameter.
|
(package private) void |
setResult(SqlProcessContext ctx,
Object resultInstance,
String attributeName,
Object resultValue)
Initializes the attribute of the result class with output values from SQL query execution.
|
void |
setValue(String value)
Sets the value.
|
String |
toString()
For debug purposes.
|
protected final org.slf4j.Logger logger
private String metaTypeName
private SqlMetaType metaType
private String value
SqlType()
SqlType(String metaTypeName, SqlMetaType metaType)
metaTypeName - the internal type namemetaType - the internal typepublic String getMetaTypeName()
SqlMetaType getMetaType(SqlProcessContext ctx)
ctx - the crate for all input parameters and the context of processingvoid setResult(SqlProcessContext ctx, Object resultInstance, String attributeName, Object resultValue) throws SqlRuntimeException
ctx - the crate for all input parameters and the context of processingresultInstance - the instance of the result classattributeName - the name of the attribute in the result classresultValue - Query execution output valueSqlRuntimeException - in the case of any problem with output values handlingvoid setParameter(SqlProcessContext ctx, SqlQuery query, String paramName, Object inputValue, Class<?>... inputTypes) throws SqlRuntimeException
ctx - the crate for all input parameters and the context of processingquery - the SQL Engine query, an adapter or proxy to the internal JDBC or ORM staffparamName - the name of the parameterinputTypes - the Java types of the attribute in the input POJOSqlRuntimeException - in the case of any problem with input values handlingpublic String getValue()
public void setValue(String value)
value - the value for special enumeration treatmentCopyright © 2017. All rights reserved.