|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The ChangeObject interface is the public interface for the JavaAdapter's synchronization methods.
| Method Summary | |
void |
addChangedPropertyName(String propertyName)
If the adapter modifies an additional property, not changed on the client, you can use this method to add that property to the list of changes so it is pushed to other clients. |
void |
conflict(Object serverVersion)
Declares that a conflict occurred while processing this change. |
void |
conflict(Object serverVersion,
boolean conflictOnProperty)
Declares that a conflict occurred while processing this change. |
void |
fail()
Declares that a failure occurred while processing this change. |
void |
fail(String description)
Declares that a failure occurred while processing this change. |
String[] |
getChangedPropertyNames()
Returns the list of property names which changed as part of this update. |
Map |
getChangedValues()
Gets a map of property names and their current values on the item. |
flex.data.messages.DataMessage |
getMessage()
Accesses the underlying Message transmitted by the client for the change. |
Object |
getNewVersion()
Gets the current version known to the client, which is the proposed new version for the server. |
Object |
getObjectId()
Gets the identity of the changed object instance |
Object |
getPreviousValue(String propertyName)
Gets the previous value of the named property on the item. |
Object |
getPreviousVersion()
Gets the previous version known to the client. |
boolean |
isCreate()
Inspects what sort of change occurred on the current item. |
boolean |
isDelete()
Inspect what sort of change occurred on the current item. |
boolean |
isUpdate()
Inspects what sort of change occurred on the current item. |
void |
setNewVersion(Object o)
Sets the current version of the item. |
| Method Detail |
public Object getObjectId()
public Object getPreviousVersion()
public Object getNewVersion()
public void setNewVersion(Object o)
public boolean isCreate()
public boolean isUpdate()
public boolean isDelete()
public String[] getChangedPropertyNames()
public void addChangedPropertyName(String propertyName)
public Map getChangedValues()
public Object getPreviousValue(String propertyName)
public flex.data.messages.DataMessage getMessage()
public void fail()
public void fail(String description)
public void conflict(Object serverVersion)
public void conflict(Object serverVersion,
boolean conflictOnProperty)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||