public class MongoAction extends Object
WriteConcernResolver to determine a custom
WriteConcern based on this information.
| Constructor and Description |
|---|
MongoAction(com.mongodb.WriteConcern defaultWriteConcern,
MongoActionOperation mongoActionOperation,
String collectionName,
Class<?> entityType,
org.bson.Document document,
org.bson.Document query)
Create an instance of a
MongoAction. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionName() |
com.mongodb.WriteConcern |
getDefaultWriteConcern() |
org.bson.Document |
getDocument() |
Class<?> |
getEntityType() |
MongoActionOperation |
getMongoActionOperation() |
org.bson.Document |
getQuery() |
public MongoAction(@Nullable com.mongodb.WriteConcern defaultWriteConcern, MongoActionOperation mongoActionOperation, String collectionName, @Nullable Class<?> entityType, @Nullable org.bson.Document document, @Nullable org.bson.Document query)
MongoAction.defaultWriteConcern - the default write concern. Can be null.mongoActionOperation - action being taken against the collection. Must not be null.collectionName - the collection name, must not be null or empty.entityType - the POJO that is being operated against. Can be null.document - the converted Document from the POJO or Spring Update object. Can be null.query - the converted Document from the Spring Query object. Can be null.public String getCollectionName()
@Nullable public com.mongodb.WriteConcern getDefaultWriteConcern()
@Nullable public MongoActionOperation getMongoActionOperation()
@Nullable public org.bson.Document getQuery()
@Nullable public org.bson.Document getDocument()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.