Package | mx.data |
Class | public class DataServiceOfflineAdapter |
Inheritance | DataServiceOfflineAdapter Object |
Subclasses | SQLiteOfflineAdapter |
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Property | Defined By | ||
---|---|---|---|
destination : String [read-only]
Indicates the destination associated with this offline adapter. | DataServiceOfflineAdapter |
Method | Defined By | ||
---|---|---|---|
DataServiceOfflineAdapter | |||
Adds the specified offine 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
Supported only for SQLLite implementations
| DataServiceOfflineAdapter | ||
Returns the current fills that have been cached in the local store. | DataServiceOfflineAdapter | ||
Supported only for SQLLite implementations
| 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 | ||
Indicates whether an object has a specified property defined. | Object | ||
Initialize the cacheId store. | DataServiceOfflineAdapter | ||
initializeOfflineMetadata(metadata:Metadata):void
Supported only for SQLLite implementations
| DataServiceOfflineAdapter | ||
Returns true if the local store is "connected"; for example, if the local database is open. | DataServiceOfflineAdapter | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Returns true if custom queries are supported with this adapter. | DataServiceOfflineAdapter | ||
Indicates whether the specified property exists and is enumerable. | 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 specfied 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 | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Updates the specified properties of the specified offine item in the local store. | DataServiceOfflineAdapter | ||
It is used to update the items that were modified to the local store. | DataServiceOfflineAdapter | ||
Returns the primitive value of the specified object. | Object |
destination | property |
DataServiceOfflineAdapter | () | Constructor |
public function DataServiceOfflineAdapter()
addOfflineItem | () | method |
beginTransaction | () | method |
public function beginTransaction():void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Begins a transaction on the localStore.
close | () | method |
public function close():void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Closes the localStore associated with this adapter.
commit | () | method |
public function commit(dispatcher:IEventDispatcher = null, token:mx.rpc:AsyncToken = null, faultsOnly:Boolean = false):void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Commits any current changes to the local store.
Parameters
dispatcher:IEventDispatcher (default = null )
| |
token:mx.rpc:AsyncToken (default = null )
| |
faultsOnly:Boolean (default = false )
|
connect | () | method |
public function connect(cacheID:String):mx.rpc:AsyncToken
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Connect to the specified cache.
Parameters
cacheID:String |
mx.rpc:AsyncToken |
deleteOfflineItem | () | method |
deleteOfflineItems | () | method |
executeOfflineQuery | () | method |
public function executeOfflineQuery(propSpecifier:PropertySpecifier, args:Array, startIndex:int, numItems:int):mx.rpc:AsyncToken
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Supported only for SQLLite implementations
Parameters
propSpecifier:PropertySpecifier | |
args:Array | |
startIndex:int | |
numItems:int |
mx.rpc:AsyncToken |
getFillList | () | method |
getItemReferenceIds | () | method |
getItems | () | method |
public function getItems(uid:Array):Dictionary
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Restores all the items specified using the uid array specified for a given destination.
Parameters
uid:Array |
Dictionary —
|
getMessageCache | () | method |
initializeCacheStore | () | method |
public final function initializeCacheStore():void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | 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 | () | method |
public function initializeOfflineMetadata(metadata:Metadata):void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Supported only for SQLLite implementations
Parameters
metadata:Metadata |
isConnected | () | method |
isQuerySupported | () | method |
public function isQuerySupported():Boolean
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | 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.
ReturnsBoolean |
restoreQuery | () | method |
retrieveMetaData | () | method |
rollback | () | method |
public function rollback():void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Rolls back any current changes on the local store.
saveItems | () | method |
public function saveItems(items:Array):void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Add/Remove all the items specfied 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.
Parameters
items:Array |
saveMessageCache | () | method |
public final function saveMessageCache(messageCache:DataMessageCache, unmergedMessages:Array):void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | 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.
Parameters
messageCache:DataMessageCache | |
unmergedMessages:Array |
saveMetaData | () | method |
saveQuery | () | method |
updateOfflineItem | () | method |
public function updateOfflineItem(item:Object, propChangeList:Array):void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Updates the specified properties of the specified offine item in the local store.
Parameters
item:Object | |
propChangeList:Array |
updateOfflineItems | () | method |
public function updateOfflineItems(itemUpdates:Dictionary):void
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services for Java EE 3.1 |
Runtime Versions: | 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 propery change list is not used with default local shred object implementation as it is not needed
Parameters
itemUpdates:Dictionary |
Wed Nov 21 2018, 06:34 AM -08:00