Pakiet | mx.data |
Klasa | public class DataServiceOfflineAdapter |
Dziedziczenie | DataServiceOfflineAdapter Object |
Podklasy | SQLiteOfflineAdapter |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
destination : String [tylko do odczytu]
Indicates the destination associated with this offline adapter. | DataServiceOfflineAdapter |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
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 | ||
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | 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 | ||
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | ||
Returns true if custom queries are supported with this adapter. | DataServiceOfflineAdapter | ||
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | 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 | ||
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | ||
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | ||
Zwraca ciąg reprezentujący określony obiekt. | 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 | ||
Zwraca pierwotną wartość dla określonego obiektu. | Object |
destination | właściwość |
destination:String
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Indicates the destination associated with this offline adapter.
Implementacja
protected function get destination():String
DataServiceOfflineAdapter | () | Konstruktor |
public function DataServiceOfflineAdapter()
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constructor.
addOfflineItem | () | metoda |
public function addOfflineItem(item:Object):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Adds the specified offline item to the localStore.
Parametry
item:Object — The item to save to the local store.
|
beginTransaction | () | metoda |
public function beginTransaction():void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Begins a transaction on the localStore.
close | () | metoda |
public function close():void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Closes the localStore associated with this adapter.
commit | () | metoda |
public function commit(dispatcher:IEventDispatcher = null, token:mx.rpc:AsyncToken = null, faultsOnly:Boolean = false):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Commits any current changes to the local store.
Parametry
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 | () | metoda |
public function connect(cacheID:String):mx.rpc:AsyncToken
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Connect to the specified cache.
Parametry
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 | () | metoda |
public function deleteOfflineItem(uid:String):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Deletes the specified offine item with the matching uid from the local store.
Parametry
uid:String — the uid of the item to delete.
|
deleteOfflineItems | () | metoda |
public function deleteOfflineItems(uidArray:Array):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Deletes the specified set of offine items with the matching uids from the local store.
Parametry
uidArray:Array — array of uids of items to delete.
|
executeOfflineQuery | () | metoda |
public function executeOfflineQuery(propSpecifier:PropertySpecifier, args:Array, startIndex:int, numItems:int):mx.rpc:AsyncToken
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Execute a query against the offline cache. Supported only for SQLLite implementations.
Parametry
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 | () | metoda |
public function getFillList():Array
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns the current fills that have been cached in the local store.
ZwracaArray — an array of fills that are cached.
|
getItemReferenceIds | () | metoda |
public function getItemReferenceIds(uid:String, propName:String):Array
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | 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.
Parametry
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 | () | metoda |
public function getItems(uid:Array):Dictionary
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Restores all the items specified using the uid array specified for a given destination.
Parametry
uid:Array — an array of uids to fetch
|
Dictionary — a map of uid to items
|
getMessageCache | () | metoda |
public final function getMessageCache():Object
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Restores the message cache from the offline store. The subclasses cannot override this functionality.
ZwracaObject — the message cache
|
initializeCacheStore | () | metoda |
public final function initializeCacheStore():void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | 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 | () | metoda |
public function initializeOfflineMetadata(metadata:Metadata):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Initializes the offline cache. Supported only for SQLLite implementations.
Parametry
metadata:Metadata — the metadata describing the destination.
|
isConnected | () | metoda |
public function isConnected():Boolean
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns true if the local store is "connected"; for example, if the local database is open.
ZwracaBoolean — true if local store is connected.
|
isQuerySupported | () | metoda |
public function isQuerySupported():Boolean
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | 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.
ZwracaBoolean — true if the adapter supports arbitrary queries against cached data.
|
restoreQuery | () | metoda |
public function restoreQuery(queryParams:Object):Object
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Restores queries.
Parametry
queryParams:Object — the query parameters for the query
|
Object — the descriptor of the query
|
retrieveMetaData | () | metoda |
rollback | () | metoda |
public function rollback():void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Rolls back any current changes on the local store.
saveItems | () | metoda |
public function saveItems(items:Array):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | 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.
Parametry
items:Array — an array of items to save
|
saveMessageCache | () | metoda |
public final function saveMessageCache(messageCache:DataMessageCache, unmergedMessages:Array):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | 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.
Parametry
messageCache:DataMessageCache — the message cache
| |
unmergedMessages:Array — an array of unmerged messages
|
saveMetaData | () | metoda |
public function saveMetaData(metadata:Object):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Save the meta data configuration for a given destination.
Parametry
metadata:Object — the metadata to save
|
saveQuery | () | metoda |
public function saveQuery(queryParams:Object, data:Object):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Saves queries to be replayed offline later.
Parametry
queryParams:Object — the parameters of the query
| |
data:Object — the data to store in the referenced columns
|
updateOfflineItem | () | metoda |
public function updateOfflineItem(item:Object, propChangeList:Array):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | 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.
Parametry
item:Object — the item to update, containing new values.
| |
propChangeList:Array — a list of properties that are being updated.
|
updateOfflineItems | () | metoda |
public function updateOfflineItems(itemUpdates:Dictionary):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Wersje środowiska wykonawczego: | 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.
Parametry
itemUpdates:Dictionary — the map of items to the array of changed properties
|
Tue Jun 12 2018, 12:06 PM Z