|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.impl.type.SqlMetaType
public abstract class SqlMetaType
The common ancestor of all SQL META Types. These internal types are devoted for the special processing of the input/output values.
| Field Summary | |
|---|---|
static java.util.Map<java.lang.Class<?>,SqlMetaType> |
CLASS_TO_TYPE_MAP
The immutable map between a Java class type and an internal type. |
static SqlMetaType |
DEFAULT
Singleton instance of default type. |
static SqlMetaType |
ENUM_INT
Singleton instance of Integer based enumeration type. |
static SqlMetaType |
ENUM_STRING
Singleton instance of String based enumeration type. |
protected org.slf4j.Logger |
logger
The internal type, which means special processing of the input/output value. |
static java.util.Map<java.lang.String,SqlMetaType> |
META_TO_TYPE_MAP
The immutable map between a String representation of an internal types and an internal types. |
static SqlMetaType[] |
TYPES
Singleton instances of generic types. |
| Constructor Summary | |
|---|---|
SqlMetaType()
|
|
| Method Summary | |
|---|---|
abstract void |
setParameter(org.hibernate.Query query,
java.lang.String paramName,
java.lang.Object inputValue,
java.lang.Class<?> inputType,
boolean ingoreError)
Bind an input value to a named query parameter. |
abstract void |
setResult(java.lang.Object resultInstance,
java.lang.String attributeName,
java.lang.Object resultValue,
boolean ingoreError)
Initializes the attribute of the result class with output values from SQL query execution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
public static final SqlMetaType DEFAULT
public static final SqlMetaType ENUM_INT
public static final SqlMetaType ENUM_STRING
public static final SqlMetaType[] TYPES
public static java.util.Map<java.lang.Class<?>,SqlMetaType> CLASS_TO_TYPE_MAP
public static java.util.Map<java.lang.String,SqlMetaType> META_TO_TYPE_MAP
| Constructor Detail |
|---|
public SqlMetaType()
| Method Detail |
|---|
public abstract void setResult(java.lang.Object resultInstance,
java.lang.String attributeName,
java.lang.Object resultValue,
boolean ingoreError)
throws SqlRuntimeException
resultInstance - the instance of the result classattributeName - the name of the attribute in the result classresultValue - Query execution output valueingoreError - ignore inproper output value handling
SqlRuntimeException - in the case of any problem with output values handling
public abstract void setParameter(org.hibernate.Query query,
java.lang.String paramName,
java.lang.Object inputValue,
java.lang.Class<?> inputType,
boolean ingoreError)
throws SqlRuntimeException
query - the object-oriented representation of a Hibernate queryparamName - the name of the parameterinputValue - the possibly-null parameter value, a dynamic input valueingoreError - ignore inproper input value handling
SqlRuntimeException - in the case of any problem with input values handling
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||