Package dev.morphia.transactions
Interface MorphiaTransaction<T>
-
- Type Parameters:
T- the entity type
public interface MorphiaTransaction<T>Defines the functional interface for executing statements within a transaction. Care should be take to use only the session reference passed rather than any direct reference to another Datastore.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Texecute(MorphiaSession session)Executes the transaction body
-
-
-
Method Detail
-
execute
@Nullable T execute(MorphiaSession session)
Executes the transaction body- Parameters:
session- the session to use- Returns:
- any result from the transaction
-
-