Show TOC Start of Content Area

This graphic is explained in the accompanying text Class Structure: Value Object Changed Data  Locate the document in its SAP Library structure

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.

Example

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() {…}

}

 

End of Content Area