public class ERXDatabaseDataSource extends EODatabaseDataSource
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.SupportNSCoding._BigDecimalSupport, NSCoding._BigIntegerSupport, NSCoding._BooleanSupport, NSCoding._ByteSupport, NSCoding._CharacterSupport, NSCoding._DateSupport, NSCoding._DoubleSupport, NSCoding._FloatSupport, NSCoding._IntegerSupport, NSCoding._LongSupport, NSCoding._NumberSupport, NSCoding._ShortSupport, NSCoding._StringSupport, NSCoding.Support| Modifier and Type | Field and Description |
|---|---|
NSArray<String> |
_prefetchingRelationshipKeyPaths |
boolean |
_refreshRefetchedObjects |
_auxiliaryQualifier, _bindings, _editingContext, _fetchSpecification, _fetchSpecificationName, _flags_fetchEnabled, _registeredDBContextSelector_CLASS_CLASS_CLASS| Constructor and Description |
|---|
ERXDatabaseDataSource(EOEditingContext ec,
String entityName)
Constructs a new ERXDatabaseDataSource to fetch all objects for the EOEntity specified by
entityName into ec. |
ERXDatabaseDataSource(EOEditingContext ec,
String entityName,
String fetchSpecificationName)
Constructs a new ERXDatabaseDataSource to fetch objects into
ec for the EOEntity
specified by entityName using the fetch specification fetchSpecificationName. |
ERXDatabaseDataSource(EOEditingContext ec,
String entityName,
String fetchSpecificationName,
boolean refresh)
Constructs a new ERXDatabaseDataSource to fetch objects into
ec for the EOEntity
specified by entityName using the fetch specification fetchSpecificationName. |
| Modifier and Type | Method and Description |
|---|---|
EOFetchSpecification |
fetchSpecification()
Enhanced version which uses the refreshesRefetchedObjects value
|
EOFetchSpecification |
fetchSpecificationForFetch()
Enhanced version which uses the refreshesRefetchedObjects value
|
NSArray |
prefetchingRelationshipKeyPaths() |
boolean |
refreshesRefetchedObjects() |
void |
setPrefetchingRelationshipKeyPaths(ERXKey<?>... prefetchingRelationshipKeyPaths)
Sets the relationships to prefetch along with the main fetch.
|
void |
setPrefetchingRelationshipKeyPaths(NSArray<String> relationshipKeyPaths) |
void |
setRefreshesRefetchedObjects(boolean v) |
_finishInitialization, _partialInitWithEditingContextEntityNameFetchSpecificationName, _qualifierForRelationshipKey, auxiliaryQualifier, awakeFromKeyValueUnarchiver, awakeFromNib, classDescriptionForObjects, classForCoder, createObject, databaseContext, dataSourceQualifiedByKey, decodeObject, decodeWithKeyValueUnarchiver, deleteObject, editingContext, encodeWithCoder, encodeWithKeyValueArchiver, entity, fetchObjects, fetchSpecificationName, insertObject, isFetchEnabled, qualifierBindingKeys, qualifierBindings, qualifyWithRelationshipKey, setAuxiliaryQualifier, setEditingContext, setFetchEnabled, setFetchSpecification, setFetchSpecificationByName, setParentDataSourceRelationshipKey, setQualifierBindingspublic ERXDatabaseDataSource(EOEditingContext ec, String entityName)
entityName into ec. Finds the EOObjectStoreCoordinator for
ec and searches for a channel that services the model of the entity.
If one exists, the ERXDatabaseDataSource uses it. Otherwise, a new one is created for this
ERXDatabaseDataSource.ec - the editing context into which to fetch objectsentityName - the EOEntity for this data sourcepublic ERXDatabaseDataSource(EOEditingContext ec, String entityName, String fetchSpecificationName)
ec for the EOEntity
specified by entityName using the fetch specification fetchSpecificationName.
Finds the EOObjectStoreCoordinator for ec and searches for a channel that services
the model of the entity. If one exists, the ERXDatabaseDataSource uses it. Otherwise, a new one
is created for this ERXDatabaseDataSource.
fetchSpecificationName is used to find the fetch specification in the entity.
If fetchSpecificationName is null, a new fetch specification is instantiated
that will fetch all objects of the entity.ec - the editing context into which to fetch objectsentityName - the EOEntity for this data sourcefetchSpecificationName - the criteria to select and order a group of database records, or nullpublic ERXDatabaseDataSource(EOEditingContext ec, String entityName, String fetchSpecificationName, boolean refresh)
ec for the EOEntity
specified by entityName using the fetch specification fetchSpecificationName.
Finds the EOObjectStoreCoordinator for ec and searches for a channel that services
the model of the entity. If one exists, the ERXDatabaseDataSource uses it. Otherwise, a new one
is created for this ERXDatabaseDataSource.
fetchSpecificationName is used to find the fetch specification in the entity.
If fetchSpecificationName is null, a new fetch specification is instantiated
that will fetch all objects of the entity.ec - the editing context into which to fetch objectsentityName - the EOEntity for this data sourcefetchSpecificationName - the criteria to select and order a group of database records, or nullrefresh - true if you want to refresh refetched objectspublic void setRefreshesRefetchedObjects(boolean v)
public boolean refreshesRefetchedObjects()
public NSArray prefetchingRelationshipKeyPaths()
public void setPrefetchingRelationshipKeyPaths(NSArray<String> relationshipKeyPaths)
public void setPrefetchingRelationshipKeyPaths(ERXKey<?>... prefetchingRelationshipKeyPaths)
prefetchingRelationshipKeyPaths - list of keys to prefetchsetPrefetchingRelationshipKeyPaths(NSArray)public EOFetchSpecification fetchSpecificationForFetch()
fetchSpecificationForFetch in class EODatabaseDataSourcesetRefreshesRefetchedObjects(boolean),
EOFetchSpecification.refreshesRefetchedObjects()public EOFetchSpecification fetchSpecification()
fetchSpecification in class EODatabaseDataSourcesetRefreshesRefetchedObjects(boolean),
EOFetchSpecification.refreshesRefetchedObjects()Copyright © 2002 – 2025 Project Wonder.