Uses of Interface
org.sqlproc.engine.SqlRuntimeContext
-
Packages that use SqlRuntimeContext Package Description org.sqlproc.engine The public part of the SQL Processor implementation.org.sqlproc.engine.impl The private part of the SQL Processor implementation.org.sqlproc.engine.jdbc The adapters and proxies for the JDBC stack.org.sqlproc.engine.jdbc.type All the META types staff for the JDBC stack devoted to special handling of input/output values.org.sqlproc.engine.plugin The plugins are used to alter the behavior of the SQL Processor.org.sqlproc.engine.type All the META types staff devoted to special handling of input/output values. -
-
Uses of SqlRuntimeContext in org.sqlproc.engine
Methods in org.sqlproc.engine that return SqlRuntimeContext Modifier and Type Method Description (package private) SqlRuntimeContext
SqlQueryEngine.QueryExecutor. prepareQuery(SqlSession session, Class<E> resultClass, Object dynamicInputValues, SqlControl sqlControl)
(package private) SqlRuntimeContext
SqlQueryEngine.QueryExecutor. prepareQueryCount(SqlSession session, Object dynamicInputValues, SqlControl sqlControl)
Methods in org.sqlproc.engine with parameters of type SqlRuntimeContext Modifier and Type Method Description List<Map<String,Object>>
SqlQuery. callList(SqlRuntimeContext runtime)
Returns the stored procedure execution results as a List.Map<String,Object>
SqlQuery. callUnique(SqlRuntimeContext runtime)
Convenience method to return a single instance that matches the stored procedure execution, or null if the stored procedure execution returns no results.int
SqlQuery. callUpdate(SqlRuntimeContext runtime)
Executes the update, delete, insert statement or other statements in the stored procedure, which don't return the result set.(package private) Integer
SqlQueryEngine.QueryExecutor. execute(Class<E> resultClass, SqlControl sqlControl, SqlRowProcessor<E> sqlRowProcessor, SqlRuntimeContext runtimeContext)
(package private) List<E>
SqlQueryEngine.QueryExecutor. execute(Class<E> resultClass, SqlControl sqlControl, SqlRuntimeContext runtimeContext)
(package private) boolean
SqlQueryEngine.QueryExecutor. execute(SqlRuntimeContext runtimeContext, Map<String,Object> resultRow, Class<E> resultClass, SqlControl sqlControl, SqlRowProcessor<E> sqlRowProcessor, Map<String,Object> ids, boolean isPrimitiveWrapper)
(package private) Integer
SqlQueryEngine.QueryExecutor. executeCount(SqlRuntimeContext runtimeContext)
List<Map<String,Object>>
SqlQuery. list(SqlRuntimeContext runtime)
Returns the query results as a List.int
SqlQuery. query(SqlRuntimeContext runtime, SqlQuery.SqlQueryRowProcessor sqlQueryRowProcessor)
Process the query output using theSqlQuery.SqlQueryRowProcessor
.Map<String,Object>
SqlQuery. unique(SqlRuntimeContext runtime)
Convenience method to return a single instance that matches the query, or null if the query returns no results.int
SqlQuery. update(SqlRuntimeContext runtime)
Executes the update, delete or insert statement. -
Uses of SqlRuntimeContext in org.sqlproc.engine.impl
Classes in org.sqlproc.engine.impl that implement SqlRuntimeContext Modifier and Type Class Description class
SqlProcessContext
The crate (design pattern) for all input parameters for theSqlMetaStatement.process(org.sqlproc.engine.impl.SqlMetaStatement.Type, Object, SqlControl, SqlEngine)
Also can work as a context for a dynamic ANSI SQL query generation.Methods in org.sqlproc.engine.impl that return SqlRuntimeContext Modifier and Type Method Description SqlRuntimeContext
SqlMappingResult. getRuntimeContext()
Returns the public runtime contextSqlRuntimeContext
SqlProcessResult. getRuntimeContext()
Returns the public runtime context -
Uses of SqlRuntimeContext in org.sqlproc.engine.jdbc
Methods in org.sqlproc.engine.jdbc with parameters of type SqlRuntimeContext Modifier and Type Method Description List<Map<String,Object>>
JdbcQuery. callList(SqlRuntimeContext runtimeCtx)
Returns the stored procedure execution results as a List.Map<String,Object>
JdbcQuery. callUnique(SqlRuntimeContext runtimeCtx)
Convenience method to return a single instance that matches the stored procedure execution, or null if the stored procedure execution returns no results.int
JdbcQuery. callUpdate(SqlRuntimeContext runtimeCtx)
Executes the update, delete, insert statement or other statements in the stored procedure, which don't return the result set.List<Map<String,Object>>
JdbcQuery. list(SqlRuntimeContext runtimeCtx)
Returns the query results as a List.int
JdbcQuery. query(SqlRuntimeContext runtimeCtx, SqlQuery.SqlQueryRowProcessor sqlQueryRowProcessor)
Process the query output using theSqlQuery.SqlQueryRowProcessor
.Map<String,Object>
JdbcQuery. unique(SqlRuntimeContext runtimeCtx)
Convenience method to return a single instance that matches the query, or null if the query returns no results.int
JdbcQuery. update(SqlRuntimeContext runtimeCtx)
Executes the update, delete or insert statement. -
Uses of SqlRuntimeContext in org.sqlproc.engine.jdbc.type
Methods in org.sqlproc.engine.jdbc.type with parameters of type SqlRuntimeContext Modifier and Type Method Description void
JdbcOracleCursorType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
JdbcOtherType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
JdbcOracleCursorType. 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.void
JdbcOtherType. 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. -
Uses of SqlRuntimeContext in org.sqlproc.engine.plugin
Methods in org.sqlproc.engine.plugin with parameters of type SqlRuntimeContext Modifier and Type Method Description private Boolean
DefaultSqlPlugins. callMethod(SqlRuntimeContext runtimeCtx, String attributeName, Object parentObj, Map<String,String> values)
boolean
BeanUtilsPlugin. checkAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName)
Checks the attribute getter method existence.boolean
DefaultBeanUtilsPlugin. checkAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName)
Checks the attribute getter method existence.boolean
BeanUtilsPlugin. checkMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Class<?>... argTypes)
Checks the class method existence.boolean
BeanUtilsPlugin. checkMethod(SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args)
Checks the bean method existence.boolean
DefaultBeanUtilsPlugin. checkMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Class<?>... argTypes)
Checks the class method existence.boolean
DefaultBeanUtilsPlugin. checkMethod(SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args)
Checks the bean method existence.Object
BeanUtilsPlugin. getAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName)
Returns the value of the specified simple attribute of the specified bean.Object
DefaultBeanUtilsPlugin. getAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName)
Returns the value of the specified simple attribute of the specified bean.Class<?>[]
BeanUtilsPlugin. getAttributeParameterizedTypes(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName)
Returns the Java parameterized type info for the attribute, if there is one.Class<?>[]
DefaultBeanUtilsPlugin. getAttributeParameterizedTypes(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName)
Class<?>
BeanUtilsPlugin. getAttributeType(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName)
Returns the Java type info for the attribute, if there is one.Class<?>
DefaultBeanUtilsPlugin. getAttributeType(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName)
Class<?>
BeanUtilsPlugin. getEnumToClass(SqlRuntimeContext runtimeCtx, Class<?> clazz)
Returns the bean enumeration type.Class<?>
DefaultBeanUtilsPlugin. getEnumToClass(SqlRuntimeContext runtimeCtx, Class<?> clazz)
Returns the bean enumeration type.Object
BeanUtilsPlugin. getEnumToValue(SqlRuntimeContext runtimeCtx, Object bean)
Returns the bean enumeration value.Object
DefaultBeanUtilsPlugin. getEnumToValue(SqlRuntimeContext runtimeCtx, Object bean)
Returns the bean enumeration value.protected Method
DefaultBeanUtilsPlugin. getGetter(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName, boolean onlyCheck)
BeanUtilsPlugin.GetterType
BeanUtilsPlugin. getGetterType(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName)
Returns the attribute getter method types, if there is one.BeanUtilsPlugin.GetterType
BeanUtilsPlugin. getGetterType(SqlRuntimeContext runtimeCtx, Object bean, String attrName)
Returns the attribute getter method types, if there is one.BeanUtilsPlugin.GetterType
DefaultBeanUtilsPlugin. getGetterType(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName)
Returns the attribute getter method types, if there is one.BeanUtilsPlugin.GetterType
DefaultBeanUtilsPlugin. getGetterType(SqlRuntimeContext runtimeCtx, Object bean, String attrName)
Returns the attribute getter method types, if there is one.Object
BeanUtilsPlugin. getInstance(SqlRuntimeContext runtimeCtx, Class<?> clazz)
Returns the new class instanceObject
DefaultBeanUtilsPlugin. getInstance(SqlRuntimeContext runtimeCtx, Class<?> clazz)
Returns the new class instanceprotected Constructor<?>
DefaultBeanUtilsPlugin. getInstanceConstructor(SqlRuntimeContext runtimeCtx, Class<?> clazz)
protected Method
DefaultBeanUtilsPlugin. getSetter(SqlRuntimeContext runtimeCtx, Class<?> clazz, String attrName, boolean onlyCheck, Class<?>... attrTypes)
protected Method
DefaultBeanUtilsPlugin. getSetter(SqlRuntimeContext runtimeCtx, Object bean, String attrName, boolean onlyCheck, Class<?>... attrTypes)
Object
BeanUtilsPlugin. getValueToEnum(SqlRuntimeContext runtimeCtx, Class<?> clazz, Object val)
Returns the enumeration instance for the enumeration valueObject
DefaultBeanUtilsPlugin. getValueToEnum(SqlRuntimeContext runtimeCtx, Class<?> clazz, Object val)
Returns the enumeration instance for the enumeration valueString
DefaultSqlPlugins. identitySelect(SqlRuntimeContext runtimeCtx, String identitySelectName, Class<?> inputValueType)
Used to construct the identity SELECT SQL.String
SqlIdentityPlugin. identitySelect(SqlRuntimeContext runtimeCtx, String identitySelectName, Class<?> inputValueType)
Used to construct the identity SELECT SQL.Object
BeanUtilsPlugin. invokeMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Object... args)
Invokes the class method with the specified name and parameters.Object
BeanUtilsPlugin. invokeMethod(SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args)
Invokes the bean method with the specified name and parameters.protected Object
DefaultBeanUtilsPlugin. invokeMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, Object bean, String methodName, Object... args)
Object
DefaultBeanUtilsPlugin. invokeMethod(SqlRuntimeContext runtimeCtx, Class<?> clazz, String methodName, Object... args)
Invokes the class method with the specified name and parameters.protected Object
DefaultBeanUtilsPlugin. invokeMethod(SqlRuntimeContext runtimeCtx, Object bean, Method method, Object... args)
Object
DefaultBeanUtilsPlugin. invokeMethod(SqlRuntimeContext runtimeCtx, Object bean, String methodName, Object... args)
Invokes the bean method with the specified name and parameters.boolean
DefaultSqlPlugins. isNotEmpty(SqlRuntimeContext runtimeCtx, String attributeName, Object obj, Object parentObj, SqlMetaType sqlMetaType, String inOutModifier, boolean inSqlSetOrInsert, Map<String,String> values)
Used for the evaluation of the emptiness in the META SQL fragments.boolean
IsEmptyPlugin. isNotEmpty(SqlRuntimeContext runtimeCtx, String attributeName, Object obj, Object parentObj, SqlMetaType sqlMetaType, String inOutModifier, boolean inSqlSetOrInsert, Map<String,String> values)
Used for the evaluation of the emptiness in the META SQL fragments.protected boolean
DefaultSqlPlugins. isNotEmptyInternal(SqlRuntimeContext runtimeCtx, String attributeName, Object obj, Object parentObj, SqlMetaType sqlMetaType, String inOutModifier, boolean inSqlSetOrInsert, Map<String,String> values)
Used for the evaluation of the emptiness in the META SQL fragments.boolean
DefaultSqlPlugins. isTrue(SqlRuntimeContext runtimeCtx, String attributeName, Object obj, Object parentObj, SqlMetaType sqlMetaType, String inOutModifier, Map<String,String> values)
Used for the evaluation of the logical expression in the conditional META SQL fragments.boolean
IsTruePlugin. isTrue(SqlRuntimeContext runtimeCtx, String attributeName, Object obj, Object parentObj, SqlMetaType sqlMetaType, String inOutModifier, Map<String,String> values)
Used for the evaluation of the logical expression in the conditional META SQL fragments.SqlFromToPlugin.LimitType
DefaultSqlPlugins. limitQuery(SqlRuntimeContext runtimeCtx, String queryString, StringBuilder queryResult, Integer firstResult, Integer maxResults, boolean ordered)
Used to construct the FROM-TO SQL.SqlFromToPlugin.LimitType
SqlFromToPlugin. limitQuery(SqlRuntimeContext runtimeCtx, String queryString, StringBuilder queryResult, Integer firstResult, Integer maxResults, boolean ordered)
Used to construct the FROM-TO SQL.String
DefaultSqlPlugins. sequenceSelect(SqlRuntimeContext runtimeCtx, String sequenceName)
Used to construct the sequence SELECT SQL.String
SqlSequencePlugin. sequenceSelect(SqlRuntimeContext runtimeCtx, String sequenceName)
Used to construct the sequence SELECT SQL.void
BeanUtilsPlugin. setAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName, Object attrValue)
Sets the value of the specified simple attribute of the specified bean.void
DefaultBeanUtilsPlugin. setAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName, Object attrValue)
Sets the value of the specified simple attribute of the specified bean.boolean
BeanUtilsPlugin. simpleSetAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName, Object attrValue, Class<?>... attrTypes)
Sets the value of the specified simple attribute of the specified bean, if there is one.boolean
DefaultBeanUtilsPlugin. simpleSetAttribute(SqlRuntimeContext runtimeCtx, Object bean, String attrName, Object attrValue, Class<?>... attrTypes)
Sets the value of the specified simple attribute of the specified bean, if there is one. -
Uses of SqlRuntimeContext in org.sqlproc.engine.type
Methods in org.sqlproc.engine.type with parameters of type SqlRuntimeContext Modifier and Type Method Description Object
SqlInstantType. getResult(SqlRuntimeContext runtimeCtx, String attributeName, Object resultValue, boolean ingoreError)
Returns the attribute's result value (with possible conversion).Object
SqlLocalDateTimeType. getResult(SqlRuntimeContext runtimeCtx, String attributeName, Object resultValue, boolean ingoreError)
Returns the attribute's result value (with possible conversion).Object
SqlLocalDateType. getResult(SqlRuntimeContext runtimeCtx, String attributeName, Object resultValue, boolean ingoreError)
Returns the attribute's result value (with possible conversion).Object
SqlLocalTimeType. getResult(SqlRuntimeContext runtimeCtx, String attributeName, Object resultValue, boolean ingoreError)
Returns the attribute's result value (with possible conversion).default Object
SqlMetaType. getResult(SqlRuntimeContext runtimeCtx, String attributeName, Object resultValue, boolean ingoreError)
Returns the attribute's result value (with possible conversion).void
SqlByteArrayType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlDateTimeType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlDateType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlDefaultType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlEnumIntegerType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlEnumStringType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlFromDateType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlIdentityType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object identitySetter, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlInstantType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlLocalDateTimeType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlLocalDateType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlLocalTimeType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlMetaType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlOutValueType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object outValueSetter, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlTimestampType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlTimeType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.void
SqlToDateType. setParameter(SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
Binds an input value to a named query parameter.default void
SqlMetaType. setParameterEntryLog(org.slf4j.Logger logger, SqlMetaType sqlMetaType, SqlRuntimeContext runtimeCtx, SqlQuery query, String paramName, Object inputValue, boolean ingoreError, Class<?>... inputTypes)
void
SqlByteArrayType. 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.void
SqlDefaultType. 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.void
SqlEnumIntegerType. 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.void
SqlEnumStringType. 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.void
SqlFromDateType. setResult(SqlRuntimeContext runtimeCtx, Object pojo, String attributeName, Object resultValue, boolean ingoreError)
Initializes the attribute of the result class with output value from the SQL query execution.void
SqlIdentityType. 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.void
SqlInstantType. 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.void
SqlLocalDateTimeType. 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.void
SqlLocalDateType. 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.void
SqlLocalTimeType. 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.void
SqlMetaType. 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.void
SqlOutValueType. 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.void
SqlToDateType. setResult(SqlRuntimeContext runtimeCtx, Object pojo, String attributeName, Object resultValue, boolean ingoreError)
Initializes the attribute of the result class with output value from the SQL query execution.default void
SqlMetaType. setResultEntryLog(org.slf4j.Logger logger, SqlMetaType sqlMetaType, SqlRuntimeContext runtimeCtx, Object resultInstance, String attributeName, Object resultValue, boolean ingoreError)
-