public class DefaultMongoTemplate extends Object implements MongoTemplate
| Constructor and Description |
|---|
DefaultMongoTemplate(com.mongodb.Mongo mongoDb) |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBCollection |
associationsCollection()
Returns a reference to the collection containing the association instances.
|
com.mongodb.DB |
database()
Returns the database for the axon sagas store.
|
com.mongodb.DBCollection |
sagaCollection()
Returns a reference to the collection containing the saga instances.
|
void |
setAssociationsCollectionName(String associationsCollectionName)
Changes the name of the collection to store associations in.
|
void |
setDatabaseName(String databaseName)
Changes the name of the database where axon events will be stored.
|
void |
setSagasCollectionName(String sagasCollectionName)
Changes the name of the collection to store the sagas in.
|
public com.mongodb.DBCollection sagaCollection()
MongoTemplatesagaCollection in interface MongoTemplatepublic com.mongodb.DBCollection associationsCollection()
MongoTemplateassociationsCollection in interface MongoTemplatepublic com.mongodb.DB database()
database in interface MongoTemplatepublic void setSagasCollectionName(String sagasCollectionName)
sagasCollectionName - String containing the name of the collection containing the sagaspublic void setAssociationsCollectionName(String associationsCollectionName)
associationsCollectionName - String containing the name of the collection containng the associationspublic void setDatabaseName(String databaseName)
databaseName - String containing the name of the database for axon eventsCopyright © 2012. All Rights Reserved.