public class ERXDatabaseDataSource
extends com.webobjects.eoaccess.EODatabaseDataSource
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Supportcom.webobjects.foundation.NSCoding._BigDecimalSupport, com.webobjects.foundation.NSCoding._BigIntegerSupport, com.webobjects.foundation.NSCoding._BooleanSupport, com.webobjects.foundation.NSCoding._ByteSupport, com.webobjects.foundation.NSCoding._CharacterSupport, com.webobjects.foundation.NSCoding._DateSupport, com.webobjects.foundation.NSCoding._DoubleSupport, com.webobjects.foundation.NSCoding._FloatSupport, com.webobjects.foundation.NSCoding._IntegerSupport, com.webobjects.foundation.NSCoding._LongSupport, com.webobjects.foundation.NSCoding._NumberSupport, com.webobjects.foundation.NSCoding._ShortSupport, com.webobjects.foundation.NSCoding._StringSupport, com.webobjects.foundation.NSCoding.Support| Modifier and Type | Field and Description |
|---|---|
NSArray<String> |
_prefetchingRelationshipKeyPaths |
boolean |
_refreshRefetchedObjects |
| Constructor and Description |
|---|
ERXDatabaseDataSource(com.webobjects.eocontrol.EOEditingContext ec,
String entityName)
Constructs a new ERXDatabaseDataSource to fetch all objects for the EOEntity specified by
entityName into ec. |
ERXDatabaseDataSource(com.webobjects.eocontrol.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(com.webobjects.eocontrol.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 |
|---|---|
com.webobjects.eocontrol.EOFetchSpecification |
fetchSpecification()
Enhanced version which uses the refreshesRefetchedObjects value
|
com.webobjects.eocontrol.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(com.webobjects.eocontrol.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(com.webobjects.eocontrol.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(com.webobjects.eocontrol.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 com.webobjects.eocontrol.EOFetchSpecification fetchSpecificationForFetch()
fetchSpecificationForFetch in class com.webobjects.eoaccess.EODatabaseDataSourcesetRefreshesRefetchedObjects(boolean),
EOFetchSpecification.refreshesRefetchedObjects()public com.webobjects.eocontrol.EOFetchSpecification fetchSpecification()
fetchSpecification in class com.webobjects.eoaccess.EODatabaseDataSourcesetRefreshesRefetchedObjects(boolean),
EOFetchSpecification.refreshesRefetchedObjects()Copyright © 2002 – 2020 Project Wonder.