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,
com.mongodb.DBObject document,
com.mongodb.DBObject query)
Create an instance of a
MongoAction. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionName() |
com.mongodb.WriteConcern |
getDefaultWriteConcern() |
com.mongodb.DBObject |
getDocument() |
Class<?> |
getEntityClass()
Deprecated.
use
getEntityType() instead. |
Class<?> |
getEntityType() |
MongoActionOperation |
getMongoActionOperation() |
com.mongodb.DBObject |
getQuery() |
public MongoAction(com.mongodb.WriteConcern defaultWriteConcern,
MongoActionOperation mongoActionOperation,
String collectionName,
Class<?> entityType,
com.mongodb.DBObject document,
com.mongodb.DBObject 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 DBObject from the POJO or Spring Update objectquery - the converted DBOjbect from the Spring Query objectpublic String getCollectionName()
public com.mongodb.WriteConcern getDefaultWriteConcern()
@Deprecated public Class<?> getEntityClass()
getEntityType() instead.public Class<?> getEntityType()
public MongoActionOperation getMongoActionOperation()
public com.mongodb.DBObject getQuery()
public com.mongodb.DBObject getDocument()
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.