Pakket | mx.data |
Klasse | public class CacheDataDescriptor |
Overerving | CacheDataDescriptor EventDispatcher Object |
Implementatie | IExternalizable |
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
getCacheDescriptors()
method of the
associated service.
Verwante API-elementen
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
created : Date [alleen-lezen]
The time in UTC that this cached data was
first created in the local store. | CacheDataDescriptor | ||
id : Object [alleen-lezen]
The unique ID of the data cached. | CacheDataDescriptor | ||
lastAccessed : Date [alleen-lezen]
The time in UTC that this cached data was
last accessed from the local store. | CacheDataDescriptor | ||
lastFilled : Date
The time in UTC that this cached data was last filled from a remote
server. | CacheDataDescriptor | ||
lastWrite : Date [alleen-lezen]
The time in UTC that this cached data was
last written to the local store. | CacheDataDescriptor | ||
metadata : Object
Provides access to custom information stored along with this data in the
local store. | CacheDataDescriptor | ||
synced : Boolean = false
Contains true if this query was synced when it was requested from the server. | CacheDataDescriptor | ||
type : uint [alleen-lezen]
The type of data this cache descriptor is associated with. | CacheDataDescriptor |
Methode | Gedefinieerd door | ||
---|---|---|---|
CacheDataDescriptor(dataList:DataList = null)
Initializes this descriptor with the specified cache item and associated
id. | CacheDataDescriptor | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt. | EventDispatcher | ||
Verzendt een gebeurtenis naar de gebeurtenisstroom. | EventDispatcher | ||
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis. | EventDispatcher | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Verwijdert een listener uit het object EventDispatcher. | EventDispatcher | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
[overschrijven]
Returns a String representation of the CacheDataDescriptor object. | CacheDataDescriptor | ||
Retourneert de primitieve waarde van het opgegeven object. | Object | ||
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis. | EventDispatcher |
Constante | Gedefinieerd door | ||
---|---|---|---|
ALL : uint = 0 [statisch]
Option for use with the getCacheDescriptors() method to indicate
the type of descriptors to return. | CacheDataDescriptor | ||
FILL : uint = 1 [statisch]
Option for use with the getCacheDescriptors() method to indicate
the type of descriptors to return. | CacheDataDescriptor | ||
ITEM : uint = 2 [statisch]
Option for use with the getCacheDescriptors() method to indicate
the type of descriptors to return. | CacheDataDescriptor |
created | eigenschap |
created:Date
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The time in UTC that this cached data was
first created in the local store.
This value is set when autoSave
is true
is called
and a fill()
, getItem()
,
or createItem()
request for data that is not already in the local
store is completed; or saveCache()
is called.
Invocations of these methods when the data is already cached will
change the last accessed time.
The last updated time will also be updated if the cached data is updated
as a result of the request.
Implementatie
public function get created():Date
id | eigenschap |
id:Object
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The unique ID of the data cached.
This is the value that the service uses to uniquely identify this data.
For collections of items this is the value defined by the remote
destination when a fill request is made.
For single managed objects (SMOs) this is a map of name value pairs for
the item as defined by the <identity>
tag in
the services-config.xml file.
Implementatie
public function get id():Object
lastAccessed | eigenschap |
lastAccessed:Date
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The time in UTC that this cached data was
last accessed from the local store.
This value is set when a fill()
,
getItem()
, or createItem()
request for
data that is not already in the local store is completed.
Implementatie
public function get lastAccessed():Date
lastFilled | eigenschap |
lastFilled:Date
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
Runtimeversies: | Flash Player 10.1, AIR 2.0 |
The time in UTC that this cached data was last filled from a remote server. Used to restore the fillTimestamp field of a dataList, which allows subsequent synchronizeFill() calls to know which changed data to retrieve from the server.
Implementatie
public function get lastFilled():Date
public function set lastFilled(value:Date):void
lastWrite | eigenschap |
lastWrite:Date
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The time in UTC that this cached data was
last written to the local store.
This value is set when autoSave
is true
is called and a fill()
, getItem()
,
or createItem()
request for data that is not already in the local
store is completed; or saveCache()
is called.
The last write time will be updated if the cached data is updated
as a result of the request or a pushed update occurs
when autoSave
is true
.
Implementatie
public function get lastWrite():Date
metadata | eigenschap |
metadata:Object
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Provides access to custom information stored along with this data in the local store. Values assigned to this property must be serializable, that is, implement flash.util.IExternalizable or descend from no UI based objects. Typically this value is a string description of the data's relevance within the system. For example "All gold customers" or "All orders over $10K".
Implementatie
public function get metadata():Object
public function set metadata(value:Object):void
Verwante API-elementen
synced | eigenschap |
public var synced:Boolean = false
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Contains true
if this query was synced when it was requested from the server.
A synced query is one for which the server pushes change notifications to the client.
Therefore, a true
value indicates an up to date, with respect to the server,
query at the time of its persistence to the local store.
type | eigenschap |
type:uint
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The type of data this cache descriptor is associated with. Valid values are:
CacheDataDescriptor.FILL
- descriptor is for a filled collection.CacheDataDescriptor.ITEM
- descriptor is for a managed item.
Implementatie
public function get type():uint
CacheDataDescriptor | () | Constructor |
public function CacheDataDescriptor(dataList:DataList = null)
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Initializes this descriptor with the specified cache item and associated id.
ParametersdataList:DataList (default = null ) — DataList reference to the associated items.
|
toString | () | methode |
override public function toString():String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Returns a String representation of the CacheDataDescriptor object.
Geretourneerde waardeString — A String representation of the CacheDataDescriptor object.
|
ALL | Constante |
public static const ALL:uint = 0
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Option for use with the getCacheDescriptors()
method to indicate
the type of descriptors to return.
This constant indicates that descriptors for both filled collections and
single managed objects should be returned.
Verwante API-elementen
FILL | Constante |
public static const FILL:uint = 1
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Option for use with the getCacheDescriptors()
method to indicate
the type of descriptors to return.
This constant indicates that only descriptors for filled collections
should be returned.
This constant is also used to indicate the value of a descriptor's
type
.
Verwante API-elementen
Voorbeeld ( Hoe dit voorbeeld te gebruiken )
var desc:CacheDataDescriptor = CacheDataDescriptor(descriptors.getItemAt(0)); if (desc.type == CacheDataDescriptor.FILL) { // this descriptor contains attribute data for a filled collection } else if (desc.type == CacheDataDescriptor.ITEM) { // this descriptor contains attribute data for a single managed item }
ITEM | Constante |
public static const ITEM:uint = 2
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Option for use with the getCacheDescriptors()
method to indicate
the type of descriptors to return.
This constant indicates that only descriptors for single managed objects
collections should be returned.
This constant is also used to indicate the value of a descriptor's
type
.
Verwante API-elementen
Voorbeeld ( Hoe dit voorbeeld te gebruiken )
var desc:CacheDataDescriptor = CacheDataDescriptor(descriptors.getItemAt(0)); if (desc.type == CacheDataDescriptor.FILL) { // this descriptor contains attribute data for a filled collection } else if (desc.type == CacheDataDescriptor.ITEM) { // this descriptor contains attribute data for a single managed item }
Wed Jun 13 2018, 11:42 AM Z