|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.impl.SqlType
class SqlType
The SQL type of a dynamic input value (SQL statement parameter) or an output value (SQL query scalar).
| Field Summary | |
|---|---|
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 |
value
Right now only for the special of the enumeration type of the input value. |
| Constructor Summary | |
|---|---|
SqlType()
Creates a new instance with unspecified internal type. |
|
SqlType(SqlMetaType metaType)
Creates a new instance with specified internal type. |
|
| Method Summary | |
|---|---|
(package private) SqlMetaType |
getMetaType(SqlProcessContext ctx)
Returns the internal type. |
String |
getValue()
Returns the value. |
(package private) void |
setParameter(SqlProcessContext ctx,
SqlQuery query,
String paramName,
Object inputValue,
Class<?> inputType)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
private SqlMetaType metaType
private String value
| Constructor Detail |
|---|
SqlType()
SqlType(SqlMetaType metaType)
metaType - the internal type| Method Detail |
|---|
SqlMetaType getMetaType(SqlProcessContext ctx)
ctx - the crate for all input parameters and the context of processing
void 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 value
SqlRuntimeException - in the case of any problem with output values handling
void setParameter(SqlProcessContext ctx,
SqlQuery query,
String paramName,
Object inputValue,
Class<?> inputType)
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 parameterinputValue - the possibly-null parameter value, a dynamic input value
SqlRuntimeException - in the case of any problem with input values handlingpublic String getValue()
public void setValue(String value)
value - the value for special enumeration treatmentpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||