Package | Description |
---|---|
org.springframework.data.mongodb.core |
MongoDB core support.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
MongoTemplate.execute(DbCallback<T> action) |
<T> T |
MongoOperations.execute(DbCallback<T> action)
Executes a
DbCallback translating any exceptions as necessary. |
<T> T |
MongoTemplate.executeInSession(DbCallback<T> action) |
<T> T |
MongoOperations.executeInSession(DbCallback<T> action)
Executes the given
DbCallback within the same connection to the database so as to ensure consistency in a
write heavy environment where you may read the data that you wrote. |
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.