public class StoredProcMessageHandler
extends org.springframework.integration.handler.AbstractMessageHandler
implements org.springframework.beans.factory.InitializingBean
ProcedureParameter
.
If you need to handle the return parameters of the called stored procedure
explicitly, please consider using a StoredProcOutboundGateway
instead.
Also, if you need to execute SQL Functions, please also use the
StoredProcOutboundGateway
. As functions are typically used to look up
values, only, the Stored Procedure message handler purposefully does not support
SQL function calls. If you believe there are valid use-cases for that, please file a
feature request at http://jira.springsource.org.Constructor and Description |
---|
StoredProcMessageHandler(StoredProcExecutor storedProcExecutor)
Constructor passing in the
StoredProcExecutor . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComponentType() |
protected void |
handleMessageInternal(org.springframework.messaging.Message<?> message)
Executes the Stored procedure, delegates to executeStoredProcedure(...).
|
getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public StoredProcMessageHandler(StoredProcExecutor storedProcExecutor)
StoredProcExecutor
.storedProcExecutor
- Must not be null.public java.lang.String getComponentType()
getComponentType
in interface org.springframework.integration.support.context.NamedComponent
getComponentType
in class org.springframework.integration.handler.AbstractMessageHandler
protected void handleMessageInternal(org.springframework.messaging.Message<?> message)
handleMessageInternal
in class org.springframework.integration.handler.AbstractMessageHandler