flex.data.adapters
Class ASObjectAdapter

java.lang.Object
  extended by flex.management.ManageableComponent
      extended by flex.messaging.services.ServiceAdapter
          extended by flex.data.adapters.JavaAdapter
              extended by flex.data.adapters.ASObjectAdapter
All Implemented Interfaces:
flex.data.adapters.JavaAdapterConstants, Manageable, FlexComponent, FlexConfigurable, MessagingSecurity

public class ASObjectAdapter
extends JavaAdapter

Adapter for managing transient in-memory ASObjects that are created and consumed only by Flash clients. This adapter provides no backing store.


Nested Class Summary
 
Nested classes/interfaces inherited from class flex.data.adapters.JavaAdapter
JavaAdapter.FillMethod, JavaAdapter.GetMethod, JavaAdapter.QueryMethod
 
Field Summary
 
Fields inherited from class flex.data.adapters.JavaAdapter
LOG_CATEGORY
 
Fields inherited from interface flex.data.adapters.JavaAdapterConstants
AUTO_REFRESH_ELEMENT, CONFLICT_MODE_DEFAULT, CONFLICT_MODE_DELETE_ATTR, CONFLICT_MODE_UPDATE_ATTR, COUNT_ELEMENT, FILL_CONTAINS_METHOD_ELEMENT, FILL_ELEMENT, GET_ELEMENT, METHOD_NAME_ELEMENT, ORDERED_ELEMENT, PARAM_TYPES_ELEMENT, SECURITY_CONSTRAINT_ELEMENT, SECURITY_REF_ATTR, SECURITY_RUN_AS_ELEMENT, SYNC_ELEMENT
 
Constructor Summary
ASObjectAdapter()
          Constructs an unmanaged ASObjectAdapter.
ASObjectAdapter(boolean enableManagement)
          Constructs an ASObjectAdapter with the indicated management.
 
Method Summary
 boolean fillNeedsAutoRefresh(Object args)
          All ASObject queries need to be auto refreshed
 Object getAdapterState()
          Return an object, usually a Collection, representing any shared state for the adapter.
 String getDeleteConflictMode()
          Returns the delete-conflict-mode property of the ASObjectAdapter.
 String getUpdateConflictMode()
          Returns the update-conflict-mode property of the ASObjectAdapter.
 void initialize(String id, ConfigMap properties)
          Initializes the JavaAdapter with the properties.
 void setAdapterState(Object adapterState)
          Set an object, usually a Collection, to represent shared state for the adapter.
 void setDeleteConflictMode(String deleteConflictModeString)
          Sets the delete-conflict-mode property of the ASObjectAdapter.
 void setUpdateConflictMode(String updateConflictModeString)
          Sets the update-conflict-mode property of the ASObjectAdapter.
 void start()
          Starts the adapter.
 
Methods inherited from class flex.data.adapters.JavaAdapter
addCountMethod, addCountMethod, addFillMethod, addFillMethod, addFillMethod, allowSend, allowSubscribe, getCountMethods, getFillMethods, getGetMethod, getSecurityConstraintManager, getSyncMethod, invoke, setDestination, setGetMethod, setSecurityConstraintManager, setSyncMethod, stop
 
Methods inherited from class flex.messaging.services.ServiceAdapter
getDestination, handlesSubscriptions, manage
 
Methods inherited from class flex.management.ManageableComponent
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setId, setManaged, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASObjectAdapter

public ASObjectAdapter()
Constructs an unmanaged ASObjectAdapter.


ASObjectAdapter

public ASObjectAdapter(boolean enableManagement)
Constructs an ASObjectAdapter with the indicated management.

Parameters:
enableManagement - true if the AsObjecttAdapter is manageable; otherwise false.
Method Detail

initialize

public void initialize(String id,
                       ConfigMap properties)
Description copied from class: JavaAdapter
Initializes the JavaAdapter with the properties.

Specified by:
initialize in interface FlexConfigurable
Overrides:
initialize in class JavaAdapter
Parameters:
id - Id of the ManageableComponent.
properties - Properties for the JavaAdapter.

start

public void start()
Description copied from class: JavaAdapter
Starts the adapter.

Specified by:
start in interface FlexComponent
Overrides:
start in class JavaAdapter

getDeleteConflictMode

public String getDeleteConflictMode()
Returns the delete-conflict-mode property of the ASObjectAdapter.

Returns:
The delete-conflict-mode property of the ASObjectAdapter.

setDeleteConflictMode

public void setDeleteConflictMode(String deleteConflictModeString)
Sets the delete-conflict-mode property of the ASObjectAdapter. Conflict modes determine whether to check for conflicts at all and if so whether to check on changed properties only or whether to verify that the client had correct data for the entire object. Valid values for delete-conflict-mode are NONE and OBJECT.

Parameters:
deleteConflictModeString -

getUpdateConflictMode

public String getUpdateConflictMode()
Returns the update-conflict-mode property of the ASObjectAdapter.

Returns:
The update-conflict-mode property of the ASObjectAdapter.

setUpdateConflictMode

public void setUpdateConflictMode(String updateConflictModeString)
Sets the update-conflict-mode property of the ASObjectAdapter. Conflict modes determine whether to check for conflicts at all and if so whether to check on changed properties only or whether to verify that the client had correct data for the entire object. Valid values for update-conflict-mode are NONE, PROPERTY, and OBJECT.

Parameters:
deleteConflictModeString -

getAdapterState

public Object getAdapterState()
Description copied from class: ServiceAdapter
Return an object, usually a Collection, representing any shared state for the adapter. If adapters have shared state, they should override this method, as the default implementation throws an UnsupportedOperationException.

Overrides:
getAdapterState in class ServiceAdapter

setAdapterState

public void setAdapterState(Object adapterState)
Description copied from class: ServiceAdapter
Set an object, usually a Collection, to represent shared state for the adapter. If adapters have shared state, they should override this method, as the default implementation throws an UnsupportedOperationException.

Overrides:
setAdapterState in class ServiceAdapter

fillNeedsAutoRefresh

public boolean fillNeedsAutoRefresh(Object args)
All ASObject queries need to be auto refreshed

Overrides:
fillNeedsAutoRefresh in class JavaAdapter


Copyright © 2007 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/data/adapters/ASObjectAdapter.html