Paket | mx.data |
Sınıf | public class Conflict |
Miras Alma | Conflict Error Object |
Uygular | IExternalizable |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Özellik | Tanımlayan: | ||
---|---|---|---|
cause : DataMessage [salt okunur]
The DataMessage object that caused the conflict. | Conflict | ||
causedByLocalCommit : Boolean [salt okunur]
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 [salt okunur]
The state of the client object (whose property was changed)
at the time of the conflict. | Conflict | ||
constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | Object | ||
destination : String [salt okunur]
The destination for the data service of the item involved
in this conflict. | Conflict | ||
errorID : int [salt okunur]
Belirli bir hata mesajı ile ilişkili başvuru numarasını içerir. | Error | ||
message : String
Error nesnesi ile ilişkili mesajı içerir. | Error | ||
name : String
Error nesnesinin adını içerir. | Error | ||
originalObject : Object [salt okunur]
The state of the original client object before its properties
were changed, as known at the time of the conflict. | Conflict | ||
propertyNames : Array [salt okunur]
An Array of the names of the properties that were
in conflict between the client change and the remote item state. | Conflict | ||
resolved : Boolean [salt okunur]
Indicates whether this Conflict has been resolved
(The acceptClient() or acceptServer() method has been
called). | Conflict | ||
serverObject : Object [salt okunur]
The value of the server object whose property was to be changed. | Conflict | ||
serverObjectDeleted : Boolean [salt okunur]
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 [salt okunur]
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 |
Yöntem | Tanımlayan: | ||
---|---|---|---|
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 | ||
Hatanın oluştuğu zamanda, bir hata için dize şeklinde çağrı yığını döndürür. | Error | ||
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | ||
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | ||
Checks if this conflict describes the same item as the item of the given conflict. | Conflict | ||
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | ||
Conflict | |||
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | ||
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | ||
Returns a String representation of this Conflict object. | Conflict | ||
Belirtilen nesnenin temel değerini döndürür. | Object | ||
Conflict |
Sabit | Tanımlayan: | ||
---|---|---|---|
NONE : String = "none" [statik]
Conflict mode constant representing zero conflict detection. | Conflict | ||
OBJECT : String = "object" [statik]
Conflict mode constant representing object level conflict detection. | Conflict | ||
PROPERTY : String = "property" [statik]
Conflict mode constant representing property level conflict detection. | Conflict |
cause | özellik |
cause:DataMessage
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The DataMessage object that caused the conflict.
Uygulama
public function get cause():DataMessage
causedByLocalCommit | özellik |
causedByLocalCommit:Boolean
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get causedByLocalCommit():Boolean
clientObject | özellik |
clientObject:Object
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The state of the client object (whose property was changed) at the time of the conflict.
Uygulama
public function get clientObject():Object
destination | özellik |
destination:String
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The destination for the data service of the item involved in this conflict.
Uygulama
public function get destination():String
originalObject | özellik |
originalObject:Object
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get originalObject():Object
propertyNames | özellik |
propertyNames:Array
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get propertyNames():Array
resolved | özellik |
resolved:Boolean
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Indicates whether this Conflict has been resolved
(The acceptClient()
or acceptServer()
method has been
called).
Uygulama
public function get resolved():Boolean
İlgili API Öğeleri
serverObject | özellik |
serverObject:Object
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The value of the server object whose property was to be changed.
Uygulama
public function get serverObject():Object
serverObjectDeleted | özellik |
serverObjectDeleted:Boolean
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get serverObjectDeleted():Boolean
serverObjectReferencedIds | özellik |
serverObjectReferencedIds:Object
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get serverObjectReferencedIds():Object
acceptClient | () | yöntem |
public function acceptClient():void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Örnek ( Bu örnek nasıl kullanılır? )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
acceptServer | () | yöntem |
public function acceptServer():void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Örnek ( Bu örnek nasıl kullanılır? )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
matches | () | yöntem |
public function matches(otherConflict:Conflict):Boolean
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.5 |
Checks if this conflict describes the same item as the item of the given conflict.
Parametreler
otherConflict:Conflict — the other conflict object to compare.
|
Boolean — true if both conflict objects reference the same managed item.
|
readExternal | () | yöntem |
public function readExternal(input:IDataInput):void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Parametreler
input:IDataInput |
toString | () | yöntem |
public function toString():String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Returns a String representation of this Conflict object.
DöndürürString — A String representation of this Conflict object.
|
writeExternal | () | yöntem |
public function writeExternal(output:IDataOutput):void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Parametreler
output:IDataOutput |
NONE | Sabit |
public static const NONE:String = "none"
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing zero conflict detection.
OBJECT | Sabit |
public static const OBJECT:String = "object"
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing object level conflict detection.
PROPERTY | Sabit |
public static const PROPERTY:String = "property"
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing property level conflict detection.
Tue Jun 12 2018, 01:09 PM Z