|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.mongo3.common.AbstractMongoTemplate
public abstract class AbstractMongoTemplate
Abstract implementation for Mongo templates. Mongo templates give access to the collections in a Mongo Database used by components of the Axon Framework. The AbstractMongoTemplate takes care of the authentication against the Mongo database.
| Constructor Summary | |
|---|---|
protected |
AbstractMongoTemplate(com.mongodb.MongoClient mongoClient)
Initializes the MongoTemplate to connect using the given mongo instance and a database with default
name "axonframework". |
protected |
AbstractMongoTemplate(com.mongodb.MongoClient mongoClient,
String databaseName)
Initializes the MongoTemplate to connect using the given mongo instance and the database with given
databaseName. |
| Method Summary | |
|---|---|
protected com.mongodb.client.MongoDatabase |
database()
Returns a reference to the Database with the configured database name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractMongoTemplate(com.mongodb.MongoClient mongoClient)
mongo instance and a database with default
name "axonframework". The given userName and password, when not null, are
used to authenticate against the database.
mongoClient - The MongoClient instance configured to connect to the Mongo Server
protected AbstractMongoTemplate(com.mongodb.MongoClient mongoClient,
String databaseName)
mongo instance and the database with given
databaseName. The given userName and password, when not null,
are used to authenticate against the database.
mongoClient - The Mongo instance configured to connect to the Mongo ServerdatabaseName - The name of the database containing the data| Method Detail |
|---|
protected com.mongodb.client.MongoDatabase database()
userName and password are ignored if the database is already
in an authenticated state.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||