Class StoredProcExecutorSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<StoredProcExecutorSpec, StoredProcExecutor>
org.springframework.integration.jdbc.dsl.StoredProcExecutorSpec
- All Implemented Interfaces:
DisposableBean
,FactoryBean<StoredProcExecutor>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
public class StoredProcExecutorSpec
extends IntegrationComponentSpec<StoredProcExecutorSpec, StoredProcExecutor>
A
StoredProcExecutor
configurer.- Since:
- 7.0
- Author:
- Jiandong Ma, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, target
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionignoreColumnMetaData
(boolean ignoreColumnMetaData) isFunction
(boolean isFunction) jdbcCallOperationsCacheSize
(int jdbcCallOperationsCacheSize) procedureParameter
(ProcedureParameter procedureParameter) Add aProcedureParameter
parameter to the targetStoredProcExecutor
.procedureParameters
(List<ProcedureParameter> procedureParameters) returningResultSetRowMapper
(String returningResultName, RowMapper<?> rowMapper) Add aRowMapper
for specific returning result from stored procedure execution.returningResultSetRowMappers
(Map<String, RowMapper<?>> returningResultSetRowMappers) returnValueRequired
(boolean returnValueRequired) skipUndeclaredResults
(boolean skipUndeclaredResults) sqlParameter
(SqlParameter sqlParameter) Add anSqlParameter
to the targetStoredProcExecutor
.sqlParameters
(List<SqlParameter> sqlParameters) sqlParameterSourceFactory
(SqlParameterSourceFactory sqlParameterSourceFactory) storedProcedureName
(String storedProcedureName) storedProcedureNameExpression
(Expression storedProcedureNameExpression) usePayloadAsParameterSource
(boolean usePayloadAsParameterSource) Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
Methods inherited from interface org.springframework.context.SmartLifecycle
isPauseable
-
Constructor Details
-
StoredProcExecutorSpec
-
-
Method Details
-
ignoreColumnMetaData
- Parameters:
ignoreColumnMetaData
- the ignoreColumnMetaData- Returns:
- the storedProcExecutor
- See Also:
-
procedureParameter
Add aProcedureParameter
parameter to the targetStoredProcExecutor
. This method can be called several times adding a new parameter each time.- Parameters:
procedureParameter
- the stored procedure parameter to add- Returns:
- the storedProcExecutor spec
- See Also:
-
procedureParameters
- Parameters:
procedureParameters
- the procedureParameters- Returns:
- the storedProcExecutor
- See Also:
-
sqlParameter
Add anSqlParameter
to the targetStoredProcExecutor
. This method can be called several times adding a new parameter each time.- Parameters:
sqlParameter
- theSqlParameter
to add- Returns:
- the storedProcExecutor
- See Also:
-
sqlParameters
- Parameters:
sqlParameters
- the sqlParameters- Returns:
- the storedProcExecutor
- See Also:
-
sqlParameterSourceFactory
public StoredProcExecutorSpec sqlParameterSourceFactory(SqlParameterSourceFactory sqlParameterSourceFactory) - Parameters:
sqlParameterSourceFactory
- the sqlParameterSourceFactory- Returns:
- the storedProcExecutor
- See Also:
-
storedProcedureName
- Parameters:
storedProcedureName
- the storedProcedureName- Returns:
- the storedProcExecutor
- See Also:
-
storedProcedureNameExpression
public StoredProcExecutorSpec storedProcedureNameExpression(Expression storedProcedureNameExpression) - Parameters:
storedProcedureNameExpression
- the storedProcedureNameExpression- Returns:
- the storedProcExecutor
- See Also:
-
usePayloadAsParameterSource
- Parameters:
usePayloadAsParameterSource
- the usePayloadAsParameterSource- Returns:
- the storedProcExecutor
- See Also:
-
isFunction
- Parameters:
isFunction
- the isFunction- Returns:
- the storedProcExecutor
- See Also:
-
returnValueRequired
- Parameters:
returnValueRequired
- the returnValueRequired- Returns:
- the storedProcExecutor
- See Also:
-
skipUndeclaredResults
- Parameters:
skipUndeclaredResults
- the skipUndeclaredResults- Returns:
- the storedProcExecutor
- See Also:
-
returningResultSetRowMapper
public StoredProcExecutorSpec returningResultSetRowMapper(String returningResultName, RowMapper<?> rowMapper) Add aRowMapper
for specific returning result from stored procedure execution.- Parameters:
returningResultName
- the name of procedure output parameter for returning resultrowMapper
- theRowMapper
for returning result- Returns:
- the storedProcExecutor
- See Also:
-
returningResultSetRowMappers
public StoredProcExecutorSpec returningResultSetRowMappers(Map<String, RowMapper<?>> returningResultSetRowMappers) - Parameters:
returningResultSetRowMappers
- the returningResultSetRowMappers- Returns:
- the storedProcExecutor
- See Also:
-
jdbcCallOperationsCacheSize
- Parameters:
jdbcCallOperationsCacheSize
- the jdbcCallOperationsCacheSize- Returns:
- the storedProcExecutor
- See Also:
-