Show TOC Anfang des Inhaltsbereichs

Diese Grafik wird im zugehörigen Text erklärtClass Structure: Entity Changed Event  Dokument im Navigationsbaum lokalisieren

The class EntityChangedEventstores information about changes to a single entity instance during one transaction. This differentiates from the class ValueObjectChangedData, which operates on the value object level.

You can have several value objects of the same entity instance in use by the same transaction. As a result, it is not sufficient to send a JMS message based on the changes in one value object. The data of this class will be fed by instances of the class ValueObjectChangedEvent.

Each time a value object is stored or deleted, the associated instance of ValueObjectChangedDatais merged into the corresponding instance transaction of EntityChangedEventof the context in which the value object was used.

Beispiel

public interface IEntityChangedEvent {

public static  final int STATE_NONE=0;

public static  final int STATE_CREATED=1;

public static  final int STATE_UPDATED=2;

public static  final int STATE_DELETED=3;

public String getObjectKey();

public void setObjectKey(String key);

public String getEntityName();

public int getState();

public String getOriginator();

public Map getOldProperties();

public Iterator getAttributeNames();

public void setAttribute(String name, Object value) throws EventException;

public Object getAttribute(String name);

}

 

Ende des Inhaltsbereichs