패키지 | mx.data |
클래스 | public class Conflict |
상속 | Conflict ![]() ![]() |
구현 | IExternalizable |
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
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.
Custom assemblers can generate a remote conflict for any operation when
processing an update.
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.
All conflicts must be resolved before changes can be committed.
속성 | 정의 주체 | ||
---|---|---|---|
cause : DataMessage [읽기 전용]
The DataMessage object that caused the conflict. | Conflict | ||
causedByLocalCommit : Boolean [읽기 전용]
Contains true if this conflict resulted from commiting a
local change to the remote destination,
and false if it resulted from a pushed change conflicting with a local change. | Conflict | ||
clientObject : Object [읽기 전용]
The state of the client object (whose property was changed)
at the time of the conflict. | Conflict | ||
![]() | constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | |
destination : String [읽기 전용]
The destination for the data service of the item involved
in this conflict. | Conflict | ||
![]() | errorID : int [읽기 전용]
특정 오류 메시지와 연관된 참조 번호가 포함되어 있습니다. | Error | |
![]() | message : String
Error 객체에 연결된 메시지가 들어 있습니다. | Error | |
![]() | name : String
Error 객체의 이름이 들어 있습니다. | Error | |
originalObject : Object [읽기 전용]
The state of the original client object before its properties
were changed, as known at the time of the conflict. | Conflict | ||
propertyNames : Array [읽기 전용]
An Array of the names of the properties that were
in conflict between the client change and the remote item state. | Conflict | ||
resolved : Boolean [읽기 전용]
Indicates whether this Conflict has been resolved
(The acceptClient() or acceptServer() method has been
called). | Conflict | ||
serverObject : Object [읽기 전용]
The value of the server object whose property was to be changed. | Conflict | ||
serverObjectDeleted : Boolean [읽기 전용]
When the serverObject property of this class is null,
this property lets you know whether the server version is null
because the item was deleted on the server (true) or because
the item was removed from a fill that this client is subscribed to (false). | Conflict | ||
serverObjectReferencedIds : Object [읽기 전용]
If the serverObject has any properties with lazy="true",
returns an Object that stores the referencedId Arrays for
each lazily loaded property, using the property name as the
lookup key value. | Conflict |
메서드 | 정의 주체 | ||
---|---|---|---|
Requeues the current local changes and updates the property values such
that a subsequent call to DataService.commit() should
succeed, causing these changes to override the previous ones. | Conflict | ||
Removes the conflicting local change and applies the property values
found on the Conflict.serverObject property to the local item. | Conflict | ||
![]() |
오류의 구조가 문자열인 경우 오류에 대해 호출 스택을 반환합니다. | Error | |
![]() |
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | |
![]() |
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | |
Checks if this conflict describes the same item as the item of the given conflict. | Conflict | ||
![]() |
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | |
Conflict | |||
![]() |
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | |
![]() |
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | |
Returns a String representation of this Conflict object. | Conflict | ||
![]() |
지정된 객체의 프리미티브 값을 반환합니다. | Object | |
Conflict |
상수 | 정의 주체 | ||
---|---|---|---|
NONE : String = "none" [정적]
Conflict mode constant representing zero conflict detection. | Conflict | ||
OBJECT : String = "object" [정적]
Conflict mode constant representing object level conflict detection. | Conflict | ||
PROPERTY : String = "property" [정적]
Conflict mode constant representing property level conflict detection. | Conflict |
cause | 속성 |
cause:DataMessage
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The DataMessage object that caused the conflict.
구현
public function get cause():DataMessage
causedByLocalCommit | 속성 |
causedByLocalCommit:Boolean
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Contains true
if this conflict resulted from commiting a
local change to the remote destination,
and false
if it resulted from a pushed change conflicting with a local change.
구현
public function get causedByLocalCommit():Boolean
clientObject | 속성 |
destination | 속성 |
originalObject | 속성 |
originalObject:Object
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The state of the original client object before its properties were changed, as known at the time of the conflict.
구현
public function get originalObject():Object
propertyNames | 속성 |
propertyNames:Array
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
An Array of the names of the properties that were
in conflict between the client change and the remote item state.
All property names are String
values and exist in the
public namespace.
구현
public function get propertyNames():Array
resolved | 속성 |
resolved:Boolean
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates whether this Conflict has been resolved
(The acceptClient()
or acceptServer()
method has been
called).
구현
public function get resolved():Boolean
관련 API 요소
serverObject | 속성 |
serverObjectDeleted | 속성 |
serverObjectDeleted:Boolean
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
When the serverObject
property of this class is null,
this property lets you know whether the server version is null
because the item was deleted on the server (true) or because
the item was removed from a fill that this client is subscribed to (false).
This flag will return false if the serverObject
property is not null.
구현
public function get serverObjectDeleted():Boolean
serverObjectReferencedIds | 속성 |
serverObjectReferencedIds:Object
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
If the serverObject
has any properties with lazy="true"
,
returns an Object that stores the referencedId
Arrays for
each lazily loaded property, using the property name as the
lookup key value.
구현
public function get serverObjectReferencedIds():Object
acceptClient | () | 메서드 |
public function acceptClient():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Requeues the current local changes and updates the property values such
that a subsequent call to DataService.commit()
should
succeed, causing these changes to override the previous ones.
예제 ( 예제 사용 방법 )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
acceptServer | () | 메서드 |
public function acceptServer():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Removes the conflicting local change and applies the property values
found on the Conflict.serverObject
property to the local item.
예제 ( 예제 사용 방법 )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
matches | () | 메서드 |
public function matches(otherConflict:Conflict):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
런타임 버전: | Flash Player 9, AIR 1.5 |
Checks if this conflict describes the same item as the item of the given conflict.
매개 변수
otherConflict:Conflict — the other conflict object to compare.
|
Boolean — true if both conflict objects reference the same managed item.
|
readExternal | () | 메서드 |
public function readExternal(input:IDataInput):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
매개 변수
input:IDataInput |
toString | () | 메서드 |
writeExternal | () | 메서드 |
public function writeExternal(output:IDataOutput):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
매개 변수
output:IDataOutput |
NONE | 상수 |
public static const NONE:String = "none"
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing zero conflict detection.
OBJECT | 상수 |
public static const OBJECT:String = "object"
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing object level conflict detection.
PROPERTY | 상수 |
public static const PROPERTY:String = "property"
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing property level conflict detection.
Tue Jun 12 2018, 03:17 PM Z