Package de.hybris.platform.tx
Class AfterSaveEvent
java.lang.Object
de.hybris.platform.tx.AfterSaveEvent
An
AfterSaveEvent is created after a database operation on an item. The PK of the item is recorded,
and the type as well. There are three types supported: UPDATE, REMOVE, and CREATE.
-
Rules to create an
- for
CREATE: create + update(*) - for
UPDATE: update(+) - for
REMOVE: update(*) + remove
AfterSaveEvent when transaction is used and multiple operations have been executed on the
SAME item(Note: all of the operations are executed between one BEGIN and COMMIT database action):
-
NO
- create + update(*) + remove
AfterSaveEvent will be created when the transaction rolls back as well as under the following situation:
If there is no active transaction, each database operation on the item needs to be recorded so that an
AfterSaveEvent will be created.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UPDATE
public static final int UPDATE- See Also:
-
REMOVE
public static final int REMOVE- See Also:
-
CREATE
public static final int CREATE- See Also:
-
-
Constructor Details
-
Method Details