Interface EntityTransactionContext
- All Known Implementing Classes:
EntityTransactionContextImpl
public interface EntityTransactionContext
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCreatedEntity
(Entity entity) Add a newly created entity which should be automatically saved before transaction commit.void
addDeletedEntity
(Entity entity) Entity which should be deleted before transaction commit (and after inserts).void
clear()
Remove all cached data for the current session.void
Execute all tracked entity operations (insert/delete) for the current session/transaction.
-
Method Details
-
addCreatedEntity
Add a newly created entity which should be automatically saved before transaction commit. -
addDeletedEntity
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.
-