適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
mx.data 

IChangeObject  - AS3 ADEP Data Services

套件mx.data
介面public interface IChangeObject

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Data Services for Java EE 3
執行階段版本: Flash Player 9, AIR 1.1

Provides the methods and properties needed when detecting local conflicts.

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
公用方法
 方法定義自
  
conflict(description:String, properties:Array):void
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

屬性 
currentVersion:Object  [唯讀]

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Data Services for Java EE 3
執行階段版本: Flash Player 9, AIR 1.1

Current version of the item.



實作
    public function get currentVersion():Object

identity

屬性 
identity:Object  [唯讀]

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Data Services for Java EE 3
執行階段版本: Flash Player 9, AIR 1.1

Identity of the item being changed.



實作
    public function get identity():Object

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

屬性 
newVersion:Object  [唯讀]

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Data Services for Java EE 3
執行階段版本: Flash Player 9, AIR 1.1

Remote destinations new version of the item.



實作
    public function get newVersion():Object

previousVersion

屬性 
previousVersion:Object  [唯讀]

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Data Services for Java EE 3
執行階段版本: Flash Player 9, AIR 1.1

Previous version of the item.



實作
    public function get previousVersion():Object
方法詳細資訊

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

()方法 
public function isCreate():Boolean

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Data Services for Java EE 3
執行階段版本: Flash Player 9, AIR 1.1

Indicates if the change is due to a new item.

傳回值
Booleantrue if the change is due to a new item.

isDelete

()方法 
public function isDelete():Boolean

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Data Services for Java EE 3
執行階段版本: Flash Player 9, AIR 1.1

Indicates if the item was deleted.

傳回值
Booleantrue if the item was deleted.

isUpdate

()方法 
public function isUpdate():Boolean

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Data Services for Java EE 3
執行階段版本: Flash Player 9, AIR 1.1

Indicates if the change is due to an update.

傳回值
Booleantrue if the change is due to an update.




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。