패키지 | mx.data |
클래스 | public class CacheDataDescriptor |
상속 | CacheDataDescriptor EventDispatcher Object |
구현 | IExternalizable |
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
getCacheDescriptors()
method of the
associated service.
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
created : Date [읽기 전용]
The time in UTC that this cached data was
first created in the local store. | CacheDataDescriptor | ||
id : Object [읽기 전용]
The unique ID of the data cached. | CacheDataDescriptor | ||
lastAccessed : Date [읽기 전용]
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 [읽기 전용]
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 [읽기 전용]
The type of data this cache descriptor is associated with. | CacheDataDescriptor |
메서드 | 정의 주체 | ||
---|---|---|---|
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
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | EventDispatcher | ||
이벤트를 이벤트 흐름으로 전달합니다. | EventDispatcher | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
EventDispatcher 객체에서 리스너를 제거합니다. | EventDispatcher | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
[재정의]
Returns a String representation of the CacheDataDescriptor object. | CacheDataDescriptor | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher |
상수 | 정의 주체 | ||
---|---|---|---|
ALL : uint = 0 [정적]
Option for use with the getCacheDescriptors() method to indicate
the type of descriptors to return. | CacheDataDescriptor | ||
FILL : uint = 1 [정적]
Option for use with the getCacheDescriptors() method to indicate
the type of descriptors to return. | CacheDataDescriptor | ||
ITEM : uint = 2 [정적]
Option for use with the getCacheDescriptors() method to indicate
the type of descriptors to return. | CacheDataDescriptor |
created | 속성 |
created:Date
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get created():Date
id | 속성 |
id:Object
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get id():Object
lastAccessed | 속성 |
lastAccessed:Date
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get lastAccessed():Date
lastFilled | 속성 |
lastFilled:Date
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
런타임 버전: | 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.
구현
public function get lastFilled():Date
public function set lastFilled(value:Date):void
lastWrite | 속성 |
lastWrite:Date
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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
.
구현
public function get lastWrite():Date
metadata | 속성 |
metadata:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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".
구현
public function get metadata():Object
public function set metadata(value:Object):void
관련 API 요소
synced | 속성 |
public var synced:Boolean = false
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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 | 속성 |
type:uint
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get type():uint
CacheDataDescriptor | () | 생성자 |
public function CacheDataDescriptor(dataList:DataList = null)
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Initializes this descriptor with the specified cache item and associated id.
매개 변수dataList:DataList (default = null ) — DataList reference to the associated items.
|
toString | () | 메서드 |
override public function toString():String
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns a String representation of the CacheDataDescriptor object.
반환값String — A String representation of the CacheDataDescriptor object.
|
ALL | 상수 |
public static const ALL:uint = 0
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
관련 API 요소
FILL | 상수 |
public static const FILL:uint = 1
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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
.
관련 API 요소
예제 ( 예제 사용 방법 )
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 | 상수 |
public static const ITEM:uint = 2
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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
.
관련 API 요소
예제 ( 예제 사용 방법 )
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 }
Tue Jun 12 2018, 03:17 PM Z