패키지 | mx.data |
인터페이스 | public interface IChangeObject |
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Conflicts represent an error that has occurred due to an update operation. Conflicts are generated for many reasons. For example, another client has updated the same property of an item.
Conflicts are determined by both the remote destination and the local DataService. A conflict detected by the DataService is considered a local conflict. A conflict detected by the remote destination is a remote conflict.
This interface is used when detecting local conflicts.
Local conflicts are determined by the ConflictDetector
object.
To customize local conflict detection the ConflictDetector
can be extended and assigned to the DataService.conflictDetector
property.
속성 | 정의 주체 | ||
---|---|---|---|
changedPropertyNames : Array [읽기 전용]
The list of property names which changed as part of an
update. | IChangeObject | ||
currentVersion : Object [읽기 전용]
Current version of the item. | IChangeObject | ||
identity : Object [읽기 전용]
Identity of the item being changed. | IChangeObject | ||
message : DataMessage [읽기 전용]
Provides access to the local DataMessage object corresponding
to the local changes. | IChangeObject | ||
newVersion : Object [읽기 전용]
Remote destinations new version of the item. | IChangeObject | ||
previousVersion : Object [읽기 전용]
Previous version of the item. | IChangeObject |
메서드 | 정의 주체 | ||
---|---|---|---|
Declares that a conflict occurred while processing this change. | IChangeObject | ||
Returns the conflict created with a previous call to the
conflict() method. | IChangeObject | ||
Indicates if the change is due to a new item. | IChangeObject | ||
Indicates if the item was deleted. | IChangeObject | ||
Indicates if the change is due to an update. | IChangeObject |
changedPropertyNames | 속성 |
changedPropertyNames:Array
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The list of property names which changed as part of an update. If this property contains null, it is in indication that all properties may have changed.
구현
public function get changedPropertyNames():Array
currentVersion | 속성 |
identity | 속성 |
message | 속성 |
message:DataMessage
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Provides access to the local DataMessage object corresponding to the local changes.
구현
public function get message():DataMessage
newVersion | 속성 |
previousVersion | 속성 |
conflict | () | 메서드 |
public function conflict(description:String, properties:Array):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Declares that a conflict occurred while processing this change. The conflict is dispatched as a ConflictEvent event on the DataService object.
매개 변수
description:String — A String available on the
faultString property of the event's message
property.
| |
properties:Array — Indicate which properites are in
conflict.
|
getConflict | () | 메서드 |
public function getConflict():DataErrorMessage
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the conflict created with a previous call to the
conflict()
method.
DataErrorMessage — DataErrorMessage object describing the conflict.
|
isCreate | () | 메서드 |
isDelete | () | 메서드 |
isUpdate | () | 메서드 |
Tue Jun 12 2018, 03:17 PM Z