Inherits from: EODataSource : Object
Package: com.apple.client.eodistribution
EODistributedDataSource is a concrete subclass of EODataSource (defined in EOControl) that fetches using an EOEditingContext as its source of objects; the editing context, in turn, forwards the fetch requests to its object store (usually an instance of EODistributedObjectStore) where it is ultimately serviced by an EODatabaseContext on the server. Objects of this class are for use with Java Client only; there is no equivalent class for Yellow Box applications. EODistributedDataSource implements all the functionality defined by EODataSource: In addition to fetching objects, it can insert and delete them (provided the entity isn't read-only). See the EODataSource class specification for more information on these topics.
EODistributedDataSource provides several methods in addition to those defined by EODataSource. The additional methods- fetchEnabled and setFetchEnabled, fetchSpecification and setFetchSpecification, and setAuxiliaryQualifier-are added to support enabling and disabling fetching and to support fetching with an EOFetchSpecification.
- Fetching objects
- fetchObjects
- setFetchSpecification
- fetchSpecification
- setAuxiliaryQualifier
- Enabling fetching
- setFetchEnabled
- fetchEnabled
- setEditingContext
public EODistributedDataSource(String entityName)
public EODistributedDataSource(
EOEditingContext anEditingContext,
String entityName)
public EODistributedDataSource(
EOEditingContext anEditingContext,
String entityName,
String fetchSpecification)
See Also: setFetchEnabled
public boolean fetchEnabled()
See Also: EODistributedDataSource constructor, setFetchEnabled, setEditingContext
public NSArray fetchObjects()
public EOFetchSpecification fetchSpecification()
public void setAuxiliaryQualifier(EOQualifier aQualifier)
public void setEditingContext(EOEditingContext anEditingContext)
See Also: setFetchEnabled
public void setFetchEnabled(boolean flag)
See Also: EODistributedDataSource constructor, setEditingContext
public void setFetchSpecification(EOFetchSpecification fetchSpec)
See Also: fetchSpecification