Interface EntityTransactionContext

All Known Implementing Classes:
EntityTransactionContextImpl

public interface EntityTransactionContext
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a newly created entity which should be automatically saved before transaction commit.
    void
    Entity which should be deleted before transaction commit (and after inserts).
    void
    Remove all cached data for the current session.
    void
    Execute all tracked entity operations (insert/delete) for the current session/transaction.
  • Method Details

    • addCreatedEntity

      void addCreatedEntity(Entity entity)
      Add a newly created entity which should be automatically saved before transaction commit.
    • addDeletedEntity

      void addDeletedEntity(Entity entity)
      Entity which should be deleted before transaction commit (and after inserts).
    • executeEntityOperations

      void executeEntityOperations()
      Execute all tracked entity operations (insert/delete) for the current session/transaction.
    • clear

      void clear()
      Remove all cached data for the current session.