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.
    Developer note.
    This is an experimental item. Its function and presence are subject to change. Feedback on features and usability extremely welcome.
    • Method Detail

      • execute

        T execute​(MorphiaSession session)
        Executes the transaction body
        session - the session to use
        any result from the transaction