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(com.mongodb.WriteConcern defaultWriteConcern,
MongoActionOperation mongoActionOperation,
String collectionName,
Class<?> entityType,
org.bson.Document document,
org.bson.Document query)
MongoAction.defaultWriteConcern - the default write concern.mongoActionOperation - action being taken against the collectioncollectionName - the collection name, must not be null or empty.entityType - the POJO that is being operated againstdocument - the converted Document from the POJO or Spring Update objectquery - the converted Document from the Spring Query objectpublic String getCollectionName()
public com.mongodb.WriteConcern getDefaultWriteConcern()
public Class<?> getEntityType()
public MongoActionOperation getMongoActionOperation()
public org.bson.Document getQuery()
public org.bson.Document getDocument()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.