public class JdbcOracleCursorType extends Object implements SqlTaggedMetaType
| Modifier and Type | Field and Description |
|---|---|
private static Integer |
JDBC_TYPE
The value of ORACLE_CURSOR.
|
protected org.slf4j.Logger |
logger
The internal slf4j logger.
|
| Constructor and Description |
|---|
JdbcOracleCursorType() |
| Modifier and Type | Method and Description |
|---|---|
void |
addScalar(SqlTypeFactory typeFactory,
SqlQuery query,
String dbName,
Class<?>... attributeTypes)
Declares a scalar query result, which is an SQL query execution output value.
|
Class<?>[] |
getClassTypes()
Returns the list of Java class types related to this META type.
|
String[] |
getMetaTypes()
Returns the list of names of this META type.
|
Object |
getProviderSqlType()
Returns the type provided by the stack on top of which the SQL Processor works.
|
void |
setParameter(SqlRuntimeContext runtimeCtx,
SqlQuery query,
String paramName,
Object inputValue,
boolean ingoreError,
Class<?>... inputTypes)
Binds an input value to a named query parameter.
|
void |
setResult(SqlRuntimeContext runtimeCtx,
Object resultInstance,
String attributeName,
Object resultValue,
boolean ingoreError)
Initializes the attribute of the result class with output value from the SQL query execution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddScalarEntryLog, error, getResult, setParameterEntryLog, setResultEntryLogprotected final org.slf4j.Logger logger
private static final Integer JDBC_TYPE
public Object getProviderSqlType()
getProviderSqlType in interface SqlMetaTypepublic Class<?>[] getClassTypes()
getClassTypes in interface SqlTaggedMetaTypepublic String[] getMetaTypes()
getMetaTypes in interface SqlTaggedMetaTypepublic void addScalar(SqlTypeFactory typeFactory, SqlQuery query, String dbName, Class<?>... attributeTypes)
addScalar in interface SqlMetaTypetypeFactory - the SQL Type factoryquery - 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 nameattributeTypes - the Java types of of the attribute in the result classpublic void setResult(SqlRuntimeContext runtimeCtx, Object resultInstance, String attributeName, Object resultValue, boolean ingoreError) throws SqlRuntimeException
setResult in interface SqlMetaTyperuntimeCtx - the runtimeCtx contextresultInstance - the instance of the result classattributeName - the name of the attribute in the result classresultValue - the query execution output valueingoreError - ignore improper output value handlingSqlRuntimeException - in the case of any problem with the output values handlingpublic void setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes) throws SqlRuntimeException
setParameter in interface SqlMetaTyperuntimeCtx - the runtimeCtx contextquery - the SQL Engine query, an adapter or proxy to the internal JDBC or ORM staffparamName - the name of the parameteringoreError - ignore improper input value handlinginputTypes - the Java types of the attribute in the input POJOSqlRuntimeException - in the case of any problem with the input values handlingCopyright © 2018. All rights reserved.