패키지 | coldfusion.air |
클래스 | public class SyncManager |
상속 | SyncManager Object |
구현 | IEventDispatcher |
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
속성 | 정의 주체 | ||
---|---|---|---|
autoCommit : Boolean = false
If autoCommit is set to true, then the changes from the offline database
will be commited to the server after save/update/saveUpdate or remove function is invoked. | SyncManager | ||
cfContextRoot : String
Context root of the ColdFusion server. | SyncManager | ||
cfPort : int
Port where the ColdFusion server is running. | SyncManager | ||
cfServer : String
Name or IP address of the ColdFusion server. | SyncManager | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
destination : String
Specifies the destination for the remoting call. | SyncManager | ||
secureHttp : Boolean
Boolean value that specifies if secure HTTP is used:
yes: uses secure HTTP
no: does not use secure HTTP
| SyncManager | ||
syncCFC : String
Fully qualified CFC name that implements the CFIDE.AIR.ISyncManager interface. | SyncManager |
메서드 | 정의 주체 | ||
---|---|---|---|
Creates an instance of the SyncManager class. | SyncManager | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | SyncManager | ||
Dispatches an event into the event flow. | SyncManager | ||
Fetches the data from the server. | SyncManager | ||
Returns the Session instance that is currently open. | SyncManager | ||
Returns the RemoteObject instance used by the offline library to make the
remote object call. | SyncManager | ||
Checks whether the EventDispatcher object has any listeners registered
for a specific type of event. | SyncManager | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
openSession(dbfile:File, id:uint, encryptionKey:ByteArray = null, cacheDirectory:File = null):coldfusion.air:SessionToken
Creates a session with a specific database file. | SyncManager | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
Removes a listener from the EventDispatcher object. | SyncManager | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of its
ancestors for the specified event type. | SyncManager |
이벤트 | 요약 | 정의 주체 | ||
---|---|---|---|---|
Dispatched when a session service call fails. | SyncManager | |||
Dispatched when a syncmanager call returns successfully. | SyncManager |
autoCommit | 속성 |
public var autoCommit:Boolean = false
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
If autoCommit is set to true, then the changes from the offline database will be commited to the server after save/update/saveUpdate or remove function is invoked. Effectively, it would be equivalent to calling session.commit() function after the save/update/saveUpdate/remove functions are executed.
cfContextRoot | 속성 |
public var cfContextRoot:String
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Context root of the ColdFusion server.
cfPort | 속성 |
public var cfPort:int
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Port where the ColdFusion server is running.
cfServer | 속성 |
public var cfServer:String
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Name or IP address of the ColdFusion server.
destination | 속성 |
public var destination:String
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Specifies the destination for the remoting call.
secureHttp | 속성 |
public var secureHttp:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Boolean value that specifies if secure HTTP is used:
yes
: uses secure HTTPno
: does not use secure HTTP
syncCFC | 속성 |
public var syncCFC:String
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Fully qualified CFC name that implements the CFIDE.AIR.ISyncManager
interface.
SyncManager | () | 생성자 |
public function SyncManager()
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Creates an instance of the SyncManager class.
addEventListener | () | 메서드 |
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
매개 변수
type:String — The type of event.
| |
listener:Function — The listener function that processes the event.
| |
useCapture:Boolean (default = false ) — Determines whether the listener works in the capture phase or the target and bubbling phases:
| |
priority:int (default = 0 ) — The priority level of the event listener. The priority is designated by a signed 32-bit integer.
| |
useWeakReference:Boolean (default = false ) — Determines whether the reference to the listener is strong or weak.
|
dispatchEvent | () | 메서드 |
public function dispatchEvent(evt:Event):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Dispatches an event into the event flow.
매개 변수
evt:Event — The Event object that is dispatched into the event flow.
If the event is being redispatched, a clone of the event is created automatically.
|
Boolean — A value of true if the event was successfully dispatched.
A value of false indicates failure or that preventDefault() was called on the event.
|
fetch | () | 메서드 |
public function fetch(fetchMethod:String, ... args):mx.rpc:AsyncToken
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Fetches the data from the server.
매개 변수
fetchMethod:String — The name of the fetch method to be executed on the server.
| |
... args — The arguments for fetchMethod
|
mx.rpc:AsyncToken — An AsyncToken with which call backs can be registered.
|
getCurrentSession | () | 메서드 |
getRemoteObject | () | 메서드 |
public function getRemoteObject():RemoteObject
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Returns the RemoteObject
instance used by the offline library to make the
remote object call.
RemoteObject |
hasEventListener | () | 메서드 |
public function hasEventListener(type:String):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Checks whether the EventDispatcher object has any listeners registered
for a specific type of event. This allows you to determine where an
EventDispatcher object has altered handling of an event type in the event flow hierarchy.
To determine whether a specific event type actually triggers an event listener, use willTrigger()
.
매개 변수
type:String — The type of event.
|
Boolean — A value of true if a listener of the specified type is registered;
false otherwise.
|
openSession | () | 메서드 |
public function openSession(dbfile:File, id:uint, encryptionKey:ByteArray = null, cacheDirectory:File = null):coldfusion.air:SessionToken
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9.0.1 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Creates a session with a specific database file.
매개 변수
dbfile:File — The File reference associated with the database file
| |
id:uint — Unique session ID per session
| |
encryptionKey:ByteArray (default = null ) — Optional key to encrypt the database files
| |
cacheDirectory:File (default = null ) — Optional directory where the cache database file, used internally by the framework, is stored. By default, the
cache file is stored in the flash.filesystem.File.applicationStorageDirectory.
|
coldfusion.air:SessionToken — The session token associated with the call
|
removeEventListener | () | 메서드 |
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Removes a listener from the EventDispatcher object.
매개 변수
type:String — The type of event.
| |
listener:Function — The listener object to remove.
| |
useCapture:Boolean (default = false ) — Specifies whether the listener was registered for the capture phase
or the target and bubbling phases.
|
willTrigger | () | 메서드 |
public function willTrigger(type:String):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | ColdFusion 9 |
런타임 버전: | Flash Player 9, AIR 1.0 |
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
매개 변수
type:String — The type of event.
|
Boolean — A value of true if a listener of the specified type will be triggered;
false otherwise.
|
fault | 이벤트 |
coldfusion.air.events.SyncFaultEvent
속성 SyncFaultEvent.type =
coldfusion.air.events.SyncFaultEvent.FAULT
Dispatched when a session service call fails.
The type of the event.result | 이벤트 |
coldfusion.air.events.SyncResultEvent
속성 SyncResultEvent.type =
coldfusion.air.events.SyncResultEvent.RESULT
Dispatched when a syncmanager call returns successfully.
The type of the event.Tue Jun 12 2018, 03:17 PM Z