Show TOC Anfang des Inhaltsbereichs

Diese Grafik wird im zugehörigen Text erklärt Class Structure: Value Object Changed Data  Dokument im Navigationsbaum lokalisieren

You use this class to store data of a single value object that has been modified. Each value object references its own instance of the class ValueObjectChangedData and records changes to the value object.

You use value objects that are created and stored by entity services. Since an entity service can produce several value objects for the same instance during one transaction, changes in the other value objects have to be recorded separately.

An example of methods used to register old and new properties including dynamic values, is detailed below.

Beispiel

public class ValueObjectChangedData {

public ValueObjectChangedData(IBusinessObject source) {…}

public IBusinessObject getSource() {…}

public void registerOldValue(String propName, Object propValue) {… }

public void registerNewValue(String propName, Object propValue) {…}

public void registerNewDynamicValue(String propName, Object propValue)  {

registerNewValue(NS_NEW_DYN, propName, propValue);

}

protected void registerNewValue(String namespace, String propName, Object propValue) {…}

public void registerOldValue(String propName, int number) {…}

public void registerNewValue(String propName, int number) {…}

public void registerOldValue(String propName, boolean bool) {…}

public void registerNewValue(String propName, boolean bool) {…}

public Object getOldValue(String propName) {…}

public Object getNewValue(String propName) {…}

public Map getOldProperties() {…}

public Map getNewProperties() {…}

}

 

Ende des Inhaltsbereichs