套件 | mx.data |
類別 | public class DataServiceOfflineAdapter |
繼承 | DataServiceOfflineAdapter Object |
子類別 | SQLiteOfflineAdapter |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
destination : String [唯讀]
Indicates the destination associated with this offline adapter. | DataServiceOfflineAdapter |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | DataServiceOfflineAdapter | ||
Adds the specified offline item to the localStore. | DataServiceOfflineAdapter | ||
Begins a transaction on the localStore. | DataServiceOfflineAdapter | ||
Closes the localStore associated with this adapter. | DataServiceOfflineAdapter | ||
commit(dispatcher:IEventDispatcher = null, token:mx.rpc:AsyncToken = null, faultsOnly:Boolean = false):void
Commits any current changes to the local store. | DataServiceOfflineAdapter | ||
Connect to the specified cache. | DataServiceOfflineAdapter | ||
Deletes the specified offine item with the matching uid from the local store. | DataServiceOfflineAdapter | ||
Deletes the specified set of offine items with the matching uids from the local store. | DataServiceOfflineAdapter | ||
executeOfflineQuery(propSpecifier:PropertySpecifier, args:Array, startIndex:int, numItems:int):mx.rpc:AsyncToken
Execute a query against the offline cache. | DataServiceOfflineAdapter | ||
Returns the current fills that have been cached in the local store. | DataServiceOfflineAdapter | ||
Get the ids of the associated items for a given item uid and an association property. | DataServiceOfflineAdapter | ||
Restores all the items specified using the uid array specified for a given destination. | DataServiceOfflineAdapter | ||
Restores the message cache from the offline store. | DataServiceOfflineAdapter | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Initialize the cacheId store. | DataServiceOfflineAdapter | ||
initializeOfflineMetadata(metadata:Metadata):void
Initializes the offline cache. | DataServiceOfflineAdapter | ||
Returns true if the local store is "connected"; for example, if the local database is open. | DataServiceOfflineAdapter | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
Returns true if custom queries are supported with this adapter. | DataServiceOfflineAdapter | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Restores queries. | DataServiceOfflineAdapter | ||
Look up the metadata for a given destination. | DataServiceOfflineAdapter | ||
Rolls back any current changes on the local store. | DataServiceOfflineAdapter | ||
Add/Remove all the items specified within the dictionary. | DataServiceOfflineAdapter | ||
Saves the pending uncommitted messages and unmerges messages. | DataServiceOfflineAdapter | ||
Save the meta data configuration for a given destination. | DataServiceOfflineAdapter | ||
Saves queries to be replayed offline later. | DataServiceOfflineAdapter | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
Updates the specified properties of the specified offline item in the local store. | DataServiceOfflineAdapter | ||
It is used to update the items that were modified to the local store. | DataServiceOfflineAdapter | ||
會傳回指定之物件的基本值。 | Object |
destination | 屬性 |
DataServiceOfflineAdapter | () | 建構函式 |
public function DataServiceOfflineAdapter()
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
addOfflineItem | () | 方法 |
beginTransaction | () | 方法 |
public function beginTransaction():void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Begins a transaction on the localStore.
close | () | 方法 |
public function close():void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Closes the localStore associated with this adapter.
commit | () | 方法 |
public function commit(dispatcher:IEventDispatcher = null, token:mx.rpc:AsyncToken = null, faultsOnly:Boolean = false):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Commits any current changes to the local store.
參數
dispatcher:IEventDispatcher (default = null ) — where to send success or fail events.
| |
token:mx.rpc:AsyncToken (default = null ) — the AsyncToken to use for any events.
| |
faultsOnly:Boolean (default = false ) — Send only fault events. Success events are not propagated.
|
connect | () | 方法 |
public function connect(cacheID:String):mx.rpc:AsyncToken
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Connect to the specified cache.
參數
cacheID:String — the identifier of the cache to connect to.
|
mx.rpc:AsyncToken — AsyncToken You can use this token to register one or more callback
functions to receive result or fault events from this operation.
|
deleteOfflineItem | () | 方法 |
deleteOfflineItems | () | 方法 |
public function deleteOfflineItems(uidArray:Array):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Deletes the specified set of offine items with the matching uids from the local store.
參數
uidArray:Array — array of uids of items to delete.
|
executeOfflineQuery | () | 方法 |
public function executeOfflineQuery(propSpecifier:PropertySpecifier, args:Array, startIndex:int, numItems:int):mx.rpc:AsyncToken
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Execute a query against the offline cache. Supported only for SQLLite implementations.
參數
propSpecifier:PropertySpecifier — PropertySpecifier to determine the subset of properties to be returned.
| |
args:Array — the query parameters.
| |
startIndex:int — start index for a paged query
| |
numItems:int — number of items to retrieve for a paged query or -1 to retrieve all.
|
mx.rpc:AsyncToken — AsyncToken You can use this token to register one or more callback
functions to receive result or fault events from this operation.
|
getFillList | () | 方法 |
getItemReferenceIds | () | 方法 |
public function getItemReferenceIds(uid:String, propName:String):Array
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Get the ids of the associated items for a given item uid and an association property. Supported only for SQLLite implementations.
參數
uid:String — the uid of the item owning the association.
| |
propName:String — the association property name.
|
Array — an array of ids for referenced items of the association.
|
getItems | () | 方法 |
public function getItems(uid:Array):Dictionary
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Restores all the items specified using the uid array specified for a given destination.
參數
uid:Array — an array of uids to fetch
|
Dictionary — a map of uid to items
|
getMessageCache | () | 方法 |
public final function getMessageCache():Object
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Restores the message cache from the offline store. The subclasses cannot override this functionality.
傳回值Object — the message cache
|
initializeCacheStore | () | 方法 |
public final function initializeCacheStore():void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Initialize the cacheId store. The cacheId store will be created the first time the application is initialized or prepopulated if schema is create at design time.
initializeOfflineMetadata | () | 方法 |
public function initializeOfflineMetadata(metadata:Metadata):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Initializes the offline cache. Supported only for SQLLite implementations.
參數
metadata:Metadata — the metadata describing the destination.
|
isConnected | () | 方法 |
isQuerySupported | () | 方法 |
public function isQuerySupported():Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns true if custom queries are supported with this adapter. If false, then the LiveCycle Data Services 3.0 "BLOB" behavior is in place. If true, then the SQLite "property per column" behavior is in place.
傳回值Boolean — true if the adapter supports arbitrary queries against cached data.
|
restoreQuery | () | 方法 |
retrieveMetaData | () | 方法 |
rollback | () | 方法 |
public function rollback():void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Rolls back any current changes on the local store.
saveItems | () | 方法 |
public function saveItems(items:Array):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Add/Remove all the items specified within the dictionary. If the dictionary contains the managed object, then it is persisted to the local store. If it contains the UID as the key, then the item is removed from the store.
參數
items:Array — an array of items to save
|
saveMessageCache | () | 方法 |
public final function saveMessageCache(messageCache:DataMessageCache, unmergedMessages:Array):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Saves the pending uncommitted messages and unmerges messages. This is no need for subclasses to provide their own custom implementation of persisting the message cache and hence this cannot be overridden.
參數
messageCache:DataMessageCache — the message cache
| |
unmergedMessages:Array — an array of unmerged messages
|
saveMetaData | () | 方法 |
saveQuery | () | 方法 |
public function saveQuery(queryParams:Object, data:Object):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Saves queries to be replayed offline later.
參數
queryParams:Object — the parameters of the query
| |
data:Object — the data to store in the referenced columns
|
updateOfflineItem | () | 方法 |
public function updateOfflineItem(item:Object, propChangeList:Array):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Updates the specified properties of the specified offline item in the local store. The property change list is not used with default local shared object implementation as it is not needed.
參數
item:Object — the item to update, containing new values.
| |
propChangeList:Array — a list of properties that are being updated.
|
updateOfflineItems | () | 方法 |
public function updateOfflineItems(itemUpdates:Dictionary):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
執行階段版本: | Flash Player 9, AIR 1.1 |
It is used to update the items that were modified to the local store. It takes in a dictionary where the key passed in is the updated item self and the value would be a array of the properties changes. The property change list is not used with default local shared object implementation as it is not needed.
參數
itemUpdates:Dictionary — the map of items to the array of changed properties
|
Tue Jun 12 2018, 03:47 PM Z