クラス JdbcOutboundGateway
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractMessageProducingHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
org.springframework.integration.jdbc.outbound.JdbcOutboundGateway
- 実装されているすべてのインターフェース:
org.reactivestreams.Subscriber<Message<?>>、Aware、BeanClassLoaderAware、BeanFactoryAware、BeanNameAware、DisposableBean、InitializingBean、ApplicationContextAware、Ordered、ComponentSourceAware、ExpressionCapable、Orderable、MessageProducer、HeaderPropagationAware、IntegrationPattern、NamedComponent、IntegrationManagement、TrackableComponent、MessageHandler、reactor.core.CoreSubscriber<Message<?>>
- 既知の直属サブクラス
JdbcOutboundGateway
- 導入:
- 2.0
- 作成者:
- Dave Syer, Gunnar Hillert, Artem Bilan, Gary Russell
ネストされたクラスの要約
クラス org.springframework.integration.handler.AbstractReplyProducingMessageHandler から継承されたネストクラス / インターフェース
AbstractReplyProducingMessageHandler.RequestHandlerインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールドのサマリー
クラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたフィールド
messagingTemplateクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクターコンストラクター説明JdbcOutboundGateway(DataSourceSE dataSource, StringSE updateQuery) 提供されたDataSourceSE に基づいてインスタンスを構築し、SQL を更新します。JdbcOutboundGateway(DataSourceSE dataSource, StringSE updateQuery, StringSE selectQuery) 提供されたDataSourceSE に基づいてインスタンスを構築し、SQL を選択して更新します。JdbcOutboundGateway(JdbcOperations jdbcOperations, StringSE updateQuery) 提供されたJdbcOperationsに基づいてインスタンスを構築し、SQL を更新します。JdbcOutboundGateway(JdbcOperations jdbcOperations, StringSE updateQuery, @Nullable StringSE selectQuery) 提供されたJdbcOperationsに基づいてインスタンスを構築し、SQL を選択して更新します。メソッドのサマリー
修飾子と型メソッド説明protected voiddoInit()protected ObjectSEhandleRequestMessage(Message<?> requestMessage) サブクラスはこのメソッドを実装して、リクエストメッセージを処理する必要があります。voidsetKeysGenerated(boolean keysGenerated) 更新クエリが自動生成キーを使用した挿入であることを示すフラグ。デバッグレベルでログに記録されます。voidsetMaxRows(IntegerSE maxRows) クエリする行の最大数。voidsetReplySqlParameterSourceFactory(SqlParameterSourceFactory sqlParameterSourceFactory) /** Set aSqlParameterSourceFactoryfor select query.voidsetRequestPreparedStatementSetter(MessagePreparedStatementSetter requestPreparedStatementSetter) 更新クエリのMessagePreparedStatementSetterを設定します。voidsetRequestSqlParameterSourceFactory(SqlParameterSourceFactory sqlParameterSourceFactory) 更新クエリのSqlParameterSourceFactoryを設定します。voidsetRowMapper(RowMapper<?> rowMapper) 選択結果RowMapperを設定します。クラス org.springframework.integration.handler.AbstractReplyProducingMessageHandler から継承されたメソッド
doInvokeAdvisedRequestHandler, getBeanClassLoader, getIntegrationPatternType, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReplyクラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたメソッド
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, setupMessageProcessor, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeadersクラス org.springframework.integration.handler.AbstractMessageHandler から継承されたメソッド
handleMessage, onComplete, onError, onNext, onSubscribe, setObservationConventionクラス org.springframework.integration.handler.MessageHandlerSupport から継承されたメソッド
buildSendTimer, destroy, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース reactor.core.CoreSubscriber から継承されたメソッド
currentContextインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getThisAsインターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
JdbcOutboundGateway
提供されたDataSourceSE に基づいてインスタンスを構築し、SQL を更新します。- パラメーター:
dataSource- 実行用のDataSourceSE。updateQuery- 実行するクエリ。
JdbcOutboundGateway
提供されたDataSourceSE に基づいてインスタンスを構築し、SQL を選択して更新します。- パラメーター:
dataSource- 実行用のDataSourceSE。updateQuery- 実行する更新。selectQuery- 実行する選択。
JdbcOutboundGateway
提供されたJdbcOperationsに基づいてインスタンスを構築し、SQL を更新します。- パラメーター:
jdbcOperations- 実行用のJdbcOperations。updateQuery- 実行するクエリ。
JdbcOutboundGateway
public JdbcOutboundGateway(JdbcOperations jdbcOperations, StringSE updateQuery, @Nullable StringSE selectQuery) 提供されたJdbcOperationsに基づいてインスタンスを構築し、SQL を選択して更新します。- パラメーター:
jdbcOperations- 実行用のJdbcOperations。updateQuery- 実行する更新。selectQuery- 実行する選択。
メソッドの詳細
setMaxRows
クエリする行の最大数。値は、基になるJdbcPollingChannelAdapterに設定されます。また、応答を生成する前にチェックするために使用されます。結果に項目が 1 つしかなく、maxRowsが1に設定または構成されていない場合は、その項目のみが返されます。それ以外の場合は、リスト全体です。指定されていない場合、この値はデフォルトで1になります。このパラメーターは、selectQuery が指定されている場合にのみ適用されます。NULL 値は許可されません。- パラメーター:
maxRows- 選択する行数。null であってはなりません。- 関連事項:
setKeysGenerated
public void setKeysGenerated(boolean keysGenerated) 更新クエリが自動生成キーを使用した挿入であることを示すフラグ。デバッグレベルでログに記録されます。- パラメーター:
keysGenerated- 設定するフラグ値
setRequestSqlParameterSourceFactory
public void setRequestSqlParameterSourceFactory(SqlParameterSourceFactory sqlParameterSourceFactory) 更新クエリのSqlParameterSourceFactoryを設定します。- パラメーター:
sqlParameterSourceFactory- 使用するSqlParameterSourceFactory。
setRequestPreparedStatementSetter
public void setRequestPreparedStatementSetter(MessagePreparedStatementSetter requestPreparedStatementSetter) 更新クエリのMessagePreparedStatementSetterを設定します。- パラメーター:
requestPreparedStatementSetter- 使用するMessagePreparedStatementSetter。
setReplySqlParameterSourceFactory
/** Set aSqlParameterSourceFactoryfor select query.- パラメーター:
sqlParameterSourceFactory- 使用するSqlParameterSourceFactory。
setRowMapper
getComponentType
- 次で指定:
- インターフェース
NamedComponentのgetComponentType - オーバーライド:
- クラス
MessageHandlerSupportのgetComponentType
doInit
protected void doInit()- オーバーライド:
- クラス
AbstractReplyProducingMessageHandlerのdoInit
handleRequestMessage
クラスからコピーされた説明:AbstractReplyProducingMessageHandlerサブクラスはこのメソッドを実装して、リクエストメッセージを処理する必要があります。戻り値は、メッセージ、MessageBuilder、任意のプレーンオブジェクトです。基本クラスは、これらの開始点のいずれかからの返信メッセージの最終的な作成を処理します。戻り値が null の場合、メッセージフローはここで終了します。- 次で指定:
- クラス
AbstractReplyProducingMessageHandlerのhandleRequestMessage - パラメーター:
requestMessage- リクエストメッセージ。- 戻り値:
- メッセージを処理した結果、または
null