クラスの使用
org.springframework.integration.mongodb.dsl.MongoDbOutboundGatewaySpec
MongoDbOutboundGatewaySpec を使用するパッケージ
org.springframework.integration.mongodb.dsl 内の MongoDbOutboundGatewaySpec 使用
修飾子と型メソッド説明MongoDbOutboundGatewaySpec.collectionCallback(MessageCollectionCallback<P> collectionCallback) リクエストメッセージコンテキストで実行するデータベース操作を指定するMessageCollectionCallbackのインスタンスへの参照。MongoDbOutboundGatewaySpec.collectionName(StringSE collectionName) 使用する MongoDb コレクションの名前を特定します。MongoDbOutboundGatewaySpec.collectionNameExpression(StringSE collectionNameExpression) 使用する MongoDb コレクションの名前を識別するStringSE 値に解決される必要がある SpEL 式。MongoDbOutboundGatewaySpec.collectionNameFunction(FunctionSE<Message<P>, StringSE> collectionNameFunction) MongoDbOutboundGatewaySpec.entityClass(ClassSE<?> entityClass) MongoDbOutboundGatewaySpec.expectSingleResult(boolean expectSingleResult) このパラメーターは、findOne照会を使用して、データベースから 1 つの結果オブジェクトのみが返されることを示します。static MongoDbOutboundGatewaySpecMongoDb.outboundGateway(MongoOperations mongoTemplate) 提供されたMongoOperationsに基づいてMongoDbOutboundGatewaySpecビルダーインスタンスを作成します。static MongoDbOutboundGatewaySpecMongoDb.outboundGateway(MongoDatabaseFactory mongoDbFactory, MongoConverter mongoConverter) MongoDbQueryのString表現(例: query("{'name' : 'Bob' }"))。MongoDbOutboundGatewaySpec.queryExpression(StringSE queryExpression) Stringクエリ ( "query" プロパティを参照してください)、または MongoDbQueryのインスタンス (例: queryExpression("new BasicQuery('{''address.state' ' : ''PA' '}')")) に解決される SpEL 式。MongoDbOutboundGatewaySpec.queryFunction(FunctionSE<Message<P>, Query> queryFunction) Queryインスタンスに解決される必要があるFunctionSE。