Package dev.morphia.experimental
Interface MorphiaSession
-
- All Superinterfaces:
AdvancedDatastore
,AutoCloseable
,com.mongodb.client.ClientSession
,com.mongodb.session.ClientSession
,Closeable
,Datastore
- All Known Implementing Classes:
BaseMorphiaSession
,MorphiaSessionImpl
public interface MorphiaSession extends AdvancedDatastore, com.mongodb.client.ClientSession
Wraps a ClientSession reference for convenient use of MongoDB's multidocument transaction support.Developer note.This is an experimental item. Its function and presence are subject to change. Feedback on features and usability extremely welcome.
-
-
Method Summary
-
Methods inherited from interface dev.morphia.AdvancedDatastore
createAggregation, createQuery, createRef, createRef, createUpdateOperations, insert, insert, queryByExample
-
Methods inherited from interface com.mongodb.client.ClientSession
abortTransaction, commitTransaction, getPinnedServerAddress, getTransactionOptions, hasActiveTransaction, notifyMessageSent, setPinnedServerAddress, startTransaction, startTransaction, withTransaction, withTransaction
-
Methods inherited from interface com.mongodb.session.ClientSession
advanceClusterTime, advanceOperationTime, close, getClusterTime, getOperationTime, getOptions, getOriginator, getRecoveryToken, getServerSession, isCausallyConsistent, setRecoveryToken
-
Methods inherited from interface dev.morphia.Datastore
aggregate, aggregate, createAggregation, createQuery, createUpdateOperations, delete, delete, delete, delete, enableDocumentValidation, ensureCaps, ensureIndexes, ensureIndexes, find, find, find, findAndDelete, findAndDelete, findAndModify, findAndModify, findSession, getDatabase, getLoggedQuery, getMapper, getQueryFactory, getSession, insert, insert, insert, insert, merge, merge, merge, queryByExample, refresh, save, save, save, save, save, save, save, setQueryFactory, startSession, startSession, update, update, withTransaction, withTransaction
-
-