Uses of Class
org.springframework.integration.mongodb.dsl.MongoDbOutboundGatewaySpec
Package
Description
Provides MongoDB Components support for Java DSL.
-
Uses of MongoDbOutboundGatewaySpec in org.springframework.integration.mongodb.dsl
Modifier and TypeMethodDescriptionMongoDbOutboundGatewaySpec.collectionCallback
(MessageCollectionCallback<P> collectionCallback) Reference to an instance ofMessageCollectionCallback
which specifies the database operation to execute in the request message context.MongoDbOutboundGatewaySpec.collectionName
(String collectionName) Identify the name of the MongoDb collection to use.MongoDbOutboundGatewaySpec.collectionNameExpression
(String collectionNameExpression) A SpEL expression which should resolve to aString
value identifying the name of the MongoDb collection to use.MongoDbOutboundGatewaySpec.collectionNameFunction
(Function<Message<P>, String> collectionNameFunction) MongoDbOutboundGatewaySpec.entityClass
(Class<?> entityClass) The fully qualified name of the entity class to be passed tofind(..)
orfindOne(..)
method inMongoOperations
.MongoDbOutboundGatewaySpec.expectSingleResult
(boolean expectSingleResult) This parameter indicates that only one result object will be returned from the database by using afindOne
query.static MongoDbOutboundGatewaySpec
MongoDb.outboundGateway
(MongoOperations mongoTemplate) Create aMongoDbOutboundGatewaySpec
builder instance based on the providedMongoOperations
.static MongoDbOutboundGatewaySpec
MongoDb.outboundGateway
(MongoDatabaseFactory mongoDbFactory, MongoConverter mongoConverter) Create aMongoDbOutboundGatewaySpec
builder instance based on the providedMongoDatabaseFactory
andMongoConverter
.AString
representation of a MongoDbQuery
(e.g., query("{'name' : 'Bob'}")).MongoDbOutboundGatewaySpec.queryExpression
(String queryExpression) A SpEL expression which should resolve to aString
query (please refer to the 'query' property), or to an instance of MongoDbQuery
(e.q., queryExpression("new BasicQuery('{''address.state'' : ''PA''}')")).MongoDbOutboundGatewaySpec.queryFunction
(Function<Message<P>, Query> queryFunction)