Adobe® Flash® Platform için ActionScript® 3.0 Başvurusu
Ana Sayfa  |  Paket ve Sınıf Listesini Gizle |  Paketler  |  Sınıflar  |  Yenilikler  |  Dizin  |  Ekler  |  Niçin İngilizce?
Filtreler: Sunucudan Veri Alınıyor...
Sunucudan Veri Alınıyor...
mx.data 

Conflicts  - AS3 ADEP Data Services

Paketmx.data
Sınıfpublic class Conflicts
Miras AlmaConflicts Inheritance ArrayList Inheritance EventDispatcher Inheritance 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

The Conflicts class represents a list of conflicts. When conflicts are detected between changes made by a client and those made on the server, a Conflict object is created for each item which contains both the client and server versions of the data involved in that item at any given time.

You cannot commit any changes until all conflicts are resolved. At that point, the DataService.commit() method will call remove all of these conflicts. If you attempt to resolve a Conflict which was already resolved, an error is thrown.

An instance of this class can be accessed from the DataService.conflicts property.

Because this class implements IList it can be used with an ArrayCollection.list property, allowing it to participate as a data source for user interface controls and data binding.

Varsayılan MXML Özelliğisource



Genel Özellikler
 ÖzellikTanımlayan:
 Inheritedconstructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru.
Object
  length : int
[geçersiz kıl] [salt okunur] The length of the source Array.
Conflicts
  resolved : Boolean
[salt okunur] Indicates if there are any unresolved conflicts in the list.
Conflicts
  source : Array
[geçersiz kıl] An Array of Conflict objects.
Conflicts
 Inheriteduid : String
Provides access to the unique id for this list.
ArrayList
Genel Yöntemler
 YöntemTanımlayan:
  
Conflicts(dataService:ConcreteDataService = null)
Constructor.
Conflicts
  
This is a convenience method that iterates all of the conflicts within this list and invokes the Conflict.acceptClient() method.
Conflicts
  
This is a convenience method that iterates all of the conflicts within this list and invokes the Conflict.acceptClient() method.
Conflicts
 Inherited
addAll(addList:IList):void
Adds a list of items to the current list, placing them at the end of the list in the order they are passed.
ArrayList
 Inherited
addAllAt(addList:IList, index:int):void
Adds a list of items to the current list, placing them at the position index passed in to the function.
ArrayList
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder.
EventDispatcher
 Inherited
Add the specified item to the end of the list.
ArrayList
 Inherited
addItemAt(item:Object, index:int):void
Add the item at the specified index.
ArrayList
 Inherited
Olay akışına bir olay gönderir.
EventDispatcher
  
If there is an outstanding conflict for the given object, returns that conflict.
Conflicts
 Inherited
getItemAt(index:int, prefetch:int = 0):Object
Get the item at the specified index.
ArrayList
 Inherited
Return the index of the item if it is in the list such that getItemAt(index) == item.
ArrayList
 Inherited
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder.
EventDispatcher
 Inherited
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir.
Object
 Inherited
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir.
Object
 Inherited
itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
Notify the view that an item has been updated.
ArrayList
 Inherited
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir.
Object
  
raiseConflict(dataManager:DataManager, cause:DataMessage, serverObject:Object, conflictingProperties:Array):void
This method is used by the DataServiceAdapter implementation when it need to raise a conflict because a change is in conflict with the server version.
Conflicts
 Inherited
Remove all items from the list.
ArrayList
  
Removes all resolved conflicts from this collection.
Conflicts
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher nesnesinden bir dinleyiciyi kaldırır.
EventDispatcher
 Inherited
Removes the specified item from this list, should it exist.
ArrayList
 Inherited
Remove the item at the specified index and return it.
ArrayList
 Inherited
setItemAt(item:Object, index:int):Object
Place the item at the specified index.
ArrayList
 Inherited
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar.
Object
 Inherited
Return an Array that is populated in the same order as the IList implementation.
ArrayList
 Inherited
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür.
Object
  
[geçersiz kıl] Returns a String representation of this Conflicts object.
Conflicts
 Inherited
Belirtilen nesnenin temel değerini döndürür.
Object
 Inherited
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder.
EventDispatcher
Korunan Yöntemler
 YöntemTanımlayan:
 Inherited
Called when any of the contained items in the list dispatch an ObjectChange event.
ArrayList
 Inherited
If the item is an IEventDispatcher, watch it for updates.
ArrayList
 Inherited
If the item is an IEventDispatcher, stop watching it for updates.
ArrayList
Olaylar
 Olay Özet Tanımlayan:
 Inherited[broadcast olayı] Flash Player veya AIR uygulaması işletim sistemi odağına gelip etkin olduğunda gönderilir.EventDispatcher
 InheritedDispatched when the IList has been updated in some way.ArrayList
 Inherited[broadcast olayı] Çalışan Flash Player veya AIR uygulaması sistem odağını kaybettiğinde ve etkin olmayan duruma geldiğinde gönderilir.EventDispatcher
Özellik Ayrıntısı

length

özellik
length:int  [salt okunur] [geçersiz kıl]

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 length of the source Array.

Bu özellik veri ciltleme kaynağı olarak kullanılabilir. Bu özellik değiştirildiğinde, collectionChange olayını gönderir.



Uygulama
    override public function get length():int

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 if there are any unresolved conflicts in the list. When this returns true all conflicts have been resolved and DataService.commit() can be called without an error.

Bu özellik veri ciltleme kaynağı olarak kullanılabilir. Bu özellik değiştirildiğinde, propertyChange olayını gönderir.



Uygulama
    public function get resolved():Boolean

source

özellik 
source:Array[geçersiz kıl]

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 Conflict objects.



Uygulama
    override public function get source():Array
    override public function set source(value:Array):void
Yapıcı Ayrıntı

Conflicts

()Yapıcı
public function Conflicts(dataService:ConcreteDataService = null)

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

Constructor.

Parametreler
dataService:ConcreteDataService (default = null) — The DataService that caused the conflict.
Yöntem Ayrıntısı

acceptAllClient

()yöntem
public function acceptAllClient():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

This is a convenience method that iterates all of the conflicts within this list and invokes the Conflict.acceptClient() method. Once completed this method will clear all of the conflicts in the list. Calling this method will requeue each local change and update all property values such that a subsequent call to DataService.commit() should succeed, allowing these changes to override the current ones.

İlgili API Öğeleri

acceptAllServer

()yöntem 
public function acceptAllServer():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

This is a convenience method that iterates all of the conflicts within this list and invokes the Conflict.acceptClient() method. Once completed this method will clear all of the conflicts in the list. Calling this method removes the conflicting local change and applies the property values found on each Conflict.serverObject within the list to each related local item.

İlgili API Öğeleri

getConflict

()yöntem 
public function getConflict(item:Object):Conflict

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 there is an outstanding conflict for the given object, returns that conflict. Otherwise, returns null.

Parametreler

item:Object — The object to check for conflicts.

Döndürür
Conflict — A Conflict object if there is a conflict, and null otherwise.

raiseConflict

()yöntem 
public function raiseConflict(dataManager:DataManager, cause:DataMessage, serverObject:Object, conflictingProperties:Array):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

This method is used by the DataServiceAdapter implementation when it need to raise a conflict because a change is in conflict with the server version.

Parametreler

dataManager:DataManager — The DataManager instance.
 
cause:DataMessage — The DataMessage object that caused the conflict. The cause should be the pending change which is in conflict with the server.
 
serverObject:Object — The value of the server object whose property was to be changed.
 
conflictingProperties:Array — 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.

removeAllResolved

()yöntem 
public function removeAllResolved():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 all resolved conflicts from this collection.

toString

()yöntem 
override 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 Conflicts object.

Döndürür
String — A String representation of this Conflicts object.




[ X ]Niçin İngilizce?
ActionScript 3.0 Başvurusu'ndaki içerik İngilizce görünür

ActionScript 3.0 Başvurusu'nun tüm bölümleri tüm dillere çevrilmemiştir. Bir dil öğesi çevrilmediğinde İngilizce görünür. Örneğin, ga.controls.HelpBox sınıfı hiçbir dile çevrilmez. Bu nedenle, başvurunun Türkçe versiyonunda ga.controls.HelpBox sınıfı İngilizce görünür.