|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.type.SqlMetaType
org.sqlproc.engine.type.SqlInternalType
org.sqlproc.engine.type.SqlProviderType
org.sqlproc.engine.type.SqlBigDecimalType
public abstract class SqlBigDecimalType
The META type BIGDECIMAL.
| Field Summary |
|---|
| Fields inherited from class org.sqlproc.engine.type.SqlMetaType |
|---|
logger |
| Constructor Summary | |
|---|---|
SqlBigDecimalType()
|
|
| Method Summary | |
|---|---|
void |
addScalar(SqlQuery query,
String dbName,
Class<?> attributeType)
Declares a scalar query result, which is an SQL query execution output value. |
Class<?>[] |
getClassTypes()
The list of Java class types related to this META type. |
String[] |
getMetaTypes()
The list of names of this META type. |
void |
setParameter(SqlQuery query,
String paramName,
Object inputValue,
Class<?> inputType,
boolean ingoreError)
Binds an input value to a named query parameter. |
void |
setResult(Object resultInstance,
String attributeName,
Object resultValue,
boolean ingoreError)
Initializes the attribute of the result class with output value from the SQL query execution. |
| Methods inherited from class org.sqlproc.engine.type.SqlProviderType |
|---|
getProviderSqlNullType, getProviderSqlType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlBigDecimalType()
| Method Detail |
|---|
public Class<?>[] getClassTypes()
getClassTypes in class SqlInternalTypepublic String[] getMetaTypes()
getMetaTypes in class SqlInternalType
public void addScalar(SqlQuery query,
String dbName,
Class<?> attributeType)
addScalar in class SqlMetaTypequery - the SQL Engine query, an adapter or proxy to the internal JDBC or ORM staffdbName - the name of a database query output, it can be the column name or the alias nameattributeType - the Java type of of the attribute in the result class
public void setResult(Object resultInstance,
String attributeName,
Object resultValue,
boolean ingoreError)
throws SqlRuntimeException
setResult in class SqlMetaTyperesultInstance - the instance of the result classattributeName - the name of the attribute in the result classresultValue - the query execution output valueingoreError - ignore improper output value handling
SqlRuntimeException - in the case of any problem with the output values handling
public void setParameter(SqlQuery query,
String paramName,
Object inputValue,
Class<?> inputType,
boolean ingoreError)
throws SqlRuntimeException
setParameter in class SqlMetaTypequery - 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 valueingoreError - ignore improper input value handling
SqlRuntimeException - in the case of any problem with the input values handling
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||