org.sqlproc.engine.impl.type
Class SqlDefaultType
java.lang.Object
org.sqlproc.engine.impl.type.SqlMetaType
org.sqlproc.engine.impl.type.SqlDefaultType
public class SqlDefaultType
- extends SqlMetaType
The SQL META Types for DEFAULT.
- Author:
- Vladimir Hudec
|
Method Summary |
private java.lang.Object |
handleBigDecimal(java.lang.Class<?> attributeType,
java.lang.Object resultValue)
|
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 |
SqlDefaultType
public SqlDefaultType()
setResult
public void setResult(java.lang.Object resultInstance,
java.lang.String attributeName,
java.lang.Object resultValue,
boolean ingoreError)
throws SqlRuntimeException
- Initializes the attribute of the result class with output values from SQL query execution.
- Specified by:
setResult in class SqlMetaType
- Parameters:
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
- Throws:
SqlRuntimeException - in the case of any problem with output values handling
setParameter
public void setParameter(org.hibernate.Query query,
java.lang.String paramName,
java.lang.Object inputValue,
java.lang.Class<?> inputType,
boolean ingoreError)
throws SqlRuntimeException
- Bind an input value to a named query parameter.
- Specified by:
setParameter in class SqlMetaType
- Parameters:
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
- Throws:
SqlRuntimeException - in the case of any problem with input values handling
handleBigDecimal
private java.lang.Object handleBigDecimal(java.lang.Class<?> attributeType,
java.lang.Object resultValue)
Copyright © 2011. All Rights Reserved.