|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.Destination
flex.messaging.FactoryDestination
flex.messaging.MessageDestination
flex.data.DataDestination
public class DataDestination
Subclass of MessageDestination which provides DataService-specific destination functionality, such as data item paging.
| Field Summary | |
|---|---|
static String |
LOG_CATEGORY
Log category for messages logged out by the DataDestination. |
static String |
USE_TRANSACTIONS
|
| Constructor Summary | |
|---|---|
DataDestination()
Constructs an unmanaged DataDestination instance. |
|
DataDestination(boolean enableManagement)
Constructs a DataDestination with the indicated management. |
|
| Method Summary | |
|---|---|
void |
addAssociation(AssociationSetting setting)
Adds a new association to the configuration programmatically. |
boolean |
equalItemIdentities(Object item1,
Object item2)
Returns true if the two items supplied have the same id properties. |
AssociationSetting |
getAssociation(String propertyName)
Given the name of an association property for this destination, return the related destination. |
List |
getAssociations()
Returns the list of associations for this destination. |
boolean |
getCacheItems()
Returns the cache-items property. |
static DataDestination |
getDataDestination(String destinationName)
Returns the DataDestination for the specified destination name using the currently registered MessageBroker. |
static DataDestination |
getDataDestination(String serverId,
String destinationName)
Retrieves the DataDestination for the supplied server id. |
Class |
getItemClass()
Returns the item-class property. |
Object |
getItemFromAdapter(Map identity)
Need to fetch the item by cobbling together a data message which goes to the adapter to retrieve it. |
List |
getLazyAssociations()
Returns the list of AssociationSetting instances we have which are lazy associations |
MetadataSettings |
getMetadataSettings()
Returns the MetadataSettings. |
int |
getNumNonLazyAssociations()
|
int |
getNumSequencedAssociations()
|
List |
getReadOnlyProperties()
|
flex.data.SequenceManager |
getSequenceManager()
|
Object |
getTypedItem(Object item,
flex.messaging.io.TypeMarshaller marshaller)
Given the item if it is an ASObject and the destination has an item class attempt to convert it into the strongly typed instance. |
boolean |
hasSelfAssociations()
|
void |
initialize(String id,
ConfigMap properties)
Initializes the DataDestination with the properties. |
boolean |
isAutoSyncEnabled()
Returns the auto-sync-enabled property. |
boolean |
isUseTransactions()
Returns use-transactions property. |
void |
setAutoSyncEnabled(boolean autoSyncEnabled)
Sets the default value for the autoSyncEnabled property on
the client-side DataService which determines whether we should
track changes for items returned from fills, gets and creates. |
void |
setCacheItems(boolean cacheItems)
Determines whether DataService should cache the last version
of each item. |
void |
setItemClass(String itemClassName)
Sets the item-class property. |
void |
setMetadataSettings(MetadataSettings metadataSettings)
Sets the MetadataSettings. |
void |
setNetworkSettings(NetworkSettings networkSettings)
Casts the NetworkSettings into DataNetworkSettings
and calls super.setNetworkSettings. |
void |
setService(Service service)
Casts the Service into DataService
and calls super.setService |
void |
setUseTransactions(boolean useTransactions)
Sets use-transactions property. |
String |
toString()
|
static Object |
unwrapItem(Object item)
|
Object |
wrapItem(Object item)
|
| Methods inherited from class flex.messaging.MessageDestination |
|---|
getServerSettings, setServerSettings |
| Methods inherited from class flex.messaging.FactoryDestination |
|---|
getFactory, getFactoryInstance, getScope, getSource, setFactory, setFactory, setScope, setSource |
| Methods inherited from class flex.messaging.Destination |
|---|
addChannel, createAdapter, describeDestination, getAdapter, getChannels, getNetworkSettings, getSecurityConstraint, getService, getServiceType, isBackendShared, isClustered, removeChannel, setAdapter, setChannels, setId, setSecurityConstraint, setSecurityConstraint, start, stop |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LOG_CATEGORY
DataDestination.
public static final String USE_TRANSACTIONS
| Constructor Detail |
|---|
public DataDestination()
DataDestination instance.
public DataDestination(boolean enableManagement)
DataDestination with the indicated management.
enableManagement - true if the DataDestination
is manageable; otherwise false.| Method Detail |
|---|
public static DataDestination getDataDestination(String serverId,
String destinationName)
public static DataDestination getDataDestination(String destinationName)
public void initialize(String id,
ConfigMap properties)
DataDestination with the properties.
initialize in interface FlexConfigurableinitialize in class MessageDestinationproperties - Properties for the DataDestination.id - Id of the ManageableComponent.public boolean isAutoSyncEnabled()
auto-sync-enabled property.
true if auto-sync is enabled; otherwise false.public void setAutoSyncEnabled(boolean autoSyncEnabled)
autoSyncEnabled property on
the client-side DataService which determines whether we should
track changes for items returned from fills, gets and creates.
Optional. Default value true.
autoSyncEnabled - public boolean getCacheItems()
cache-items property.
true if cacheItems is enabled; otherwise false.public void setCacheItems(boolean cacheItems)
DataService should cache the last version
of each item. Optional. Default value true.
cacheItems - public Class getItemClass()
item-class property.
public void setItemClass(String itemClassName)
item-class property.
The item-class is used when you want to use untyped objects in your Flex
client but have typed objects on the server. The adapter will attempt to
create typed objects of your specified type before they get to your
assembler and will error out if it can not. This is only supported for
non-nested scenarios and only for exact class matches. Recommended practice
is to used typed objects on both the client and server whenever possible.
Optional.
itemClassName - public MetadataSettings getMetadataSettings()
MetadataSettings.
public void setMetadataSettings(MetadataSettings metadataSettings)
MetadataSettings.
metadataSettings - public void setNetworkSettings(NetworkSettings networkSettings)
NetworkSettings into DataNetworkSettings
and calls super.setNetworkSettings.
setNetworkSettings in class MessageDestinationnetworkSettings - The NetworkSettings of the Destination.public void setService(Service service)
Service into DataService
and calls super.setService
setService in class MessageDestinationservice - public boolean isUseTransactions()
use-transactions property.
public void setUseTransactions(boolean useTransactions)
use-transactions property.
By default, Flex encapsulates client-committed operations in a single
J2EE distributed transaction. All client data changes are handles as a unit.
If one value cannot be changed, then changes to all other values are
rolled back. Distributed transactions are supported as long as your J2EE
server supports J2EE transactions (JTA).
Optional. Default value is true.
useTransactions - public AssociationSetting getAssociation(String propertyName)
public List getAssociations()
public void addAssociation(AssociationSetting setting)
public List getLazyAssociations()
public int getNumSequencedAssociations()
public int getNumNonLazyAssociations()
public List getReadOnlyProperties()
public boolean hasSelfAssociations()
public Object getItemFromAdapter(Map identity)
public Object getTypedItem(Object item,
flex.messaging.io.TypeMarshaller marshaller)
item -
public boolean equalItemIdentities(Object item1,
Object item2)
public static Object unwrapItem(Object item)
public Object wrapItem(Object item)
public flex.data.SequenceManager getSequenceManager()
public String toString()
toString in class MessageDestination
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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/DataDestination.html