flex.data.config
Class AssociationSetting

java.lang.Object
  extended by flex.data.config.AssociationSetting

public class AssociationSetting
extends Object

The AssociationSetting class is used to add association properties to DataDestination types.


Constructor Summary
AssociationSetting(String relationString, String property, String destination)
          Creates an AssociationSetting instance with indicated settings and default lazy, sequenced, readOnly and cacheReferencedItems settings.
AssociationSetting(String relationString, String property, String destination, boolean lazy, boolean sequenced, boolean readOnly, boolean cacheReferencedItems)
          Creates an AssociationSetting instance with indicated settings.
 
Method Summary
 boolean getCacheReferencedItems()
          Returns the cache referenced items property.
 String getDestination()
          Returns the destination of the association.
 boolean getLazy()
          Returns if the association is lazy.
 String getProperty()
          Returns the property of the association.
 boolean getReadOnly()
          Returns the read-only property.
 int getRelation()
          Returns the relation of the association.
 String getRelationString()
          Returns the string representation of the relation of the association.
 boolean getSequenced()
          Returns the sequenced property.
 boolean isMulti()
          Returns true if this is a multi-values association.
 void setCacheReferencedItems(boolean cacheReferencedItems)
          Sets the cache referenced items property.
 void setLazy(boolean lazy)
          Sets the lazy property.
 void setReadOnly(boolean readOnly)
          Sets the read-only property.
 void setSequenced(boolean sd)
          Sets the sequenced property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationSetting

public AssociationSetting(String relationString,
                          String property,
                          String destination)
Creates an AssociationSetting instance with indicated settings and default lazy, sequenced, readOnly and cacheReferencedItems settings.

Parameters:
relationString - Valid options are one-to-one, one-to-many, many-to-one, many-to-many.
property -
destination -

AssociationSetting

public AssociationSetting(String relationString,
                          String property,
                          String destination,
                          boolean lazy,
                          boolean sequenced,
                          boolean readOnly,
                          boolean cacheReferencedItems)
Creates an AssociationSetting instance with indicated settings.

Parameters:
relationString - Valid options are one-to-one, one-to-many, many-to-one, many-to-many.
property -
destination -
lazy -
sequenced -
readOnly -
cacheReferencedItems -
Method Detail

isMulti

public boolean isMulti()
Returns true if this is a multi-values association.


getRelation

public int getRelation()
Returns the relation of the association.

Returns:

getRelationString

public String getRelationString()
Returns the string representation of the relation of the association.

Returns:
String representation of the relation.

getDestination

public String getDestination()
Returns the destination of the association.

Returns:

getProperty

public String getProperty()
Returns the property of the association.

Returns:

getLazy

public boolean getLazy()
Returns if the association is lazy.

Returns:
true if the association is lazy; otherwise false.

setLazy

public void setLazy(boolean lazy)
Sets the lazy property. Default is false.

Parameters:
lazy -

getSequenced

public boolean getSequenced()
Returns the sequenced property.

Returns:
true if association is sequenced; otherwise false.

setSequenced

public void setSequenced(boolean sd)
Sets the sequenced property. Default is true.

Parameters:
sd -

getReadOnly

public boolean getReadOnly()
Returns the read-only property.

Returns:
true if association is read-only; otherwise false.

setReadOnly

public void setReadOnly(boolean readOnly)
Sets the read-only property. Default is false.

Parameters:
readOnly -

getCacheReferencedItems

public boolean getCacheReferencedItems()
Returns the cache referenced items property.

Returns:
true if cache referenced items is enabled; otherwise false.

setCacheReferencedItems

public void setCacheReferencedItems(boolean cacheReferencedItems)
Sets the cache referenced items property. Default is true.

Parameters:
cacheReferencedItems -


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/config/AssociationSetting.html