|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.impl.type.SqlMetaType
org.sqlproc.engine.impl.type.SqlGenericType
org.sqlproc.engine.impl.type.SqlEnumStringType
public class SqlEnumStringType
The SQL META Types for ENUMSTRING.
| Field Summary |
|---|
| Fields inherited from class org.sqlproc.engine.impl.type.SqlMetaType |
|---|
CLASS_TO_TYPE_MAP, DEFAULT, ENUM_INT, ENUM_STRING, logger, META_TO_TYPE_MAP, TYPES |
| Constructor Summary | |
|---|---|
SqlEnumStringType()
|
|
| Method Summary | |
|---|---|
java.lang.Class<?>[] |
getClassTypes()
The list of Java class type; |
org.hibernate.type.Type |
getHibernateType()
The Hibernate type. |
java.lang.String[] |
getMetaTypes()
The list of String representation of the internal types, which means special processing of the input/output value. |
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. |
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 |
| Constructor Detail |
|---|
public SqlEnumStringType()
| Method Detail |
|---|
public org.hibernate.type.Type getHibernateType()
getHibernateType in class SqlGenericTypepublic java.lang.Class<?>[] getClassTypes()
getClassTypes in class SqlGenericTypepublic java.lang.String[] getMetaTypes()
getMetaTypes in class SqlGenericType
public void setResult(java.lang.Object resultInstance,
java.lang.String attributeName,
java.lang.Object resultValue,
boolean ingoreError)
throws SqlRuntimeException
setResult in class SqlGenericTyperesultInstance - 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 void setParameter(org.hibernate.Query query,
java.lang.String paramName,
java.lang.Object inputValue,
java.lang.Class<?> inputType,
boolean ingoreError)
throws SqlRuntimeException
setParameter in class SqlGenericTypequery - 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 | |||||||||