EOEditingContextDataSource
- Inherits from:
- EODataSource : Object
- Package:
- com.apple.client.eocontrol
Class Description
EOEditingContextDataSource is a concrete subclass of EODataSource that uses an EOEditingContext as its source of objects.
Note: This class doesn't exist in the com.apple.yellow.eocontrol package. |
EOEditingContextDataSource 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.
EOEditingContextDataSource provides several methods in addition to those defined by EODataSource. The additional methods- fetchEnabled and setFetchEnabled, fetchSpecification and setFetchSpecification, and setQualifier-are added to support enabling and disabling fetching and to support fetching with an EOFetchSpecification.
Method Types
- Constructors
- EOEditingContextDataSource
- Fetching objects
- fetchObjects
- setFetchSpecification
- fetchSpecification
- setQualifier
- Enabling fetching
- setFetchEnabled
- fetchEnabled
- setEditingContext
Constructors
EOEditingContextDataSource
public
EOEditingContextDataSource
(String entityName)
public
EOEditingContextDataSource
(
EOEditingContext anEditingContext,
String entityName)
See Also: setFetchEnabled
Instance Methods
fetchEnabled
public boolean
fetchEnabled
()
true
if fetching
is enabled, false
if not.See Also: EOEditingContextDataSource constructor, setFetchEnabled, setEditingContext
fetchObjects
public NSArray
fetchObjects
()
null
otherwise.fetchSpecification
public EOFetchSpecification
fetchSpecification
()
setEditingContext
public void
setEditingContext
(EOEditingContext anEditingContext)
null
,
fetching is enabled.See Also: setFetchEnabled
setFetchEnabled
public void
setFetchEnabled
(boolean flag)
See Also: EOEditingContextDataSource constructor, setEditingContext
setFetchSpecification
public void
setFetchSpecification
(EOFetchSpecification fetchSpec)
See Also: fetchSpecification
setQualifier
public void
setQualifier
(EOQualifier aQualifier)