Package | Description |
---|---|
org.springframework.data.mongodb |
Spring Data's MongoDB abstraction.
|
org.springframework.data.mongodb.core |
MongoDB core support.
|
Modifier and Type | Method and Description |
---|---|
static SessionSynchronization |
SessionSynchronization.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionSynchronization[] |
SessionSynchronization.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static com.mongodb.client.MongoDatabase |
MongoDatabaseUtils.getDatabase(MongoDbFactory factory,
SessionSynchronization sessionSynchronization)
Obtain the default
database form the given factory . |
static com.mongodb.client.MongoDatabase |
MongoDatabaseUtils.getDatabase(String dbName,
MongoDbFactory factory,
SessionSynchronization sessionSynchronization)
Obtain the
database with given name form the given factory . |
Modifier and Type | Method and Description |
---|---|
void |
MongoTemplate.setSessionSynchronization(SessionSynchronization sessionSynchronization)
Define if
MongoTemplate should participate in transactions. |
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.