|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.wotonomy.control.EOFetchSpecification
public class EOFetchSpecification
EOFetchSpecification defines the parameters used to request objects from an EOObjectStore. They are commonly created and passed to a EODataSource which fetches from its EOEditingContext, which passes the call up to its root EOObjectStore's objectsWithFetchSpecification method.
Constructor Summary | |
---|---|
EOFetchSpecification()
Default constructor initializes internal state. |
|
EOFetchSpecification(java.lang.String anEntityName,
EOQualifier aQualifier,
java.util.List aSortOrderingList)
Constructs a fetch specification for the specified entity type using the specified qualifier and sort ordering. |
|
EOFetchSpecification(java.lang.String anEntityName,
EOQualifier aQualifier,
net.wotonomy.foundation.NSArray aSortOrderingList,
boolean usesDistinct,
boolean isDeep,
java.util.Map aHintMap)
Constructs a fetch specification for the specified entity type using the specified qualifier and sort ordering, distinct flag, deep flag, and hints dictionary. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Implemented to return a new fetch specification that is a deep copy of this one. |
static java.lang.Object |
decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarch)
|
void |
encodeWithKeyValueArchiver(EOKeyValueArchiver arch)
|
java.lang.String |
entityName()
Returns the name of the entity fetched by this fetch spec. |
boolean |
fetchesRawRows()
Returns whether this fetch spec will fetch raw rows. |
int |
fetchLimit()
Returns the current fetch limit. |
static EOFetchSpecification |
fetchSpecificationNamed(java.lang.String name,
java.lang.String entityName)
Convenience to return the named fetch specification from the class description corresponding to the specified entity name. |
EOFetchSpecification |
fetchSpecificationWithQualifierBindings(java.util.Map aBindingMap)
Returns a fetch specification that resolves the bindings in the specified map. |
net.wotonomy.foundation.NSDictionary |
hints()
Returns a Map containing the hints used by this fetch specification, or null if no hints have been specified. |
boolean |
isDeep()
Returns whether entities related to the primary entities are fetched by this fetch spec. |
boolean |
locksObjects()
Returns whether this data source should lock objects that are fetched. |
net.wotonomy.foundation.NSArray |
prefetchingRelationshipKeyPaths()
Returns a List of relationships for the fetched objects that should also be fetched, or null if no such list has been specified. |
boolean |
promptsAfterFetchLimit()
Returns whether the user should be prompted to continue when the fetch limit has been exceeded. |
EOQualifier |
qualifier()
Returns the qualifier used by this fetch specification, or null if none has been specified. |
net.wotonomy.foundation.NSArray |
rawRowKeyPaths()
Returns a List of keys or key paths for which values should be returned when fetching raw rows, or null if no raw row key paths have been specified. |
boolean |
refreshesRefetchedObjects()
Returns whether fetched objects should replace modified versions already fetched into an editing context. |
boolean |
requiresAllQualifierBindingVariables()
Returns whether all qualifier bindings must be specified in order to fetch. |
void |
setEntityName(java.lang.String aName)
Sets the name of the entity fetched by this spec. |
void |
setFetchesRawRows(boolean shouldFetchRawRows)
Sets whether this fetch spec will return raw rows. |
void |
setFetchLimit(int aLimit)
Sets the limit on the number of records returned for this fetch spec. |
void |
setHints(java.util.Map aHintMap)
Sets the hints passed by this fetch spec. |
void |
setIsDeep(boolean isDeep)
Sets whether this fetch specification fetches deeply. |
void |
setLocksObjects(boolean shouldLockObjects)
Sets whether this fetch spec locks objects that are returned by the fetch. |
void |
setPrefetchingRelationshipKeyPaths(java.util.List aKeyPathList)
Sets the prefetch key paths that should be used as an optimization hint to the server. |
void |
setPromptsAfterFetchLimit(boolean shouldPrompt)
Sets whether the user should be prompted when the fetch limit has been reached. |
void |
setQualifier(EOQualifier aQualifier)
Sets the qualifier used by this fetch specification. |
void |
setRawRowKeyPaths(java.util.List aKeyPathList)
Sets the key paths to be returned if this fetch spec is returning raw rows. |
void |
setRefreshesRefetchedObjects(boolean shouldRefresh)
Sets whether modified objects in an editing context should be replaced by newer versions returned by this fetch spec. |
void |
setRequiresAllQualifierBindingVariables(boolean shouldRequireAll)
Sets whether this fetch spec should require all bindings to be resolved before executing. |
void |
setSortOrderings(java.util.List aSortList)
Sets the sort orderings used by this fetch spec. |
void |
setUsesDistinct(boolean shouldUseDistinct)
Sets whether this fetch spec should return only distinct objects. |
net.wotonomy.foundation.NSArray |
sortOrderings()
Returns a List of the sort orderings used by this fetch spec, or null if none have been specified. |
java.lang.String |
toString()
Returns a string representation of this fetch specification. |
boolean |
usesDistinct()
Returns whether this fetch specification will return only one reference to each distinct object returned by the fetch. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EOFetchSpecification()
public EOFetchSpecification(java.lang.String anEntityName, EOQualifier aQualifier, java.util.List aSortOrderingList)
public EOFetchSpecification(java.lang.String anEntityName, EOQualifier aQualifier, net.wotonomy.foundation.NSArray aSortOrderingList, boolean usesDistinct, boolean isDeep, java.util.Map aHintMap)
Method Detail |
---|
public static EOFetchSpecification fetchSpecificationNamed(java.lang.String name, java.lang.String entityName)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String entityName()
public int fetchLimit()
public boolean fetchesRawRows()
public EOFetchSpecification fetchSpecificationWithQualifierBindings(java.util.Map aBindingMap)
public net.wotonomy.foundation.NSDictionary hints()
public boolean isDeep()
public boolean locksObjects()
public net.wotonomy.foundation.NSArray prefetchingRelationshipKeyPaths()
public boolean promptsAfterFetchLimit()
public EOQualifier qualifier()
public net.wotonomy.foundation.NSArray rawRowKeyPaths()
public boolean refreshesRefetchedObjects()
public boolean requiresAllQualifierBindingVariables()
public void setEntityName(java.lang.String aName)
public void setFetchesRawRows(boolean shouldFetchRawRows)
public void setFetchLimit(int aLimit)
public void setHints(java.util.Map aHintMap)
public void setIsDeep(boolean isDeep)
public void setLocksObjects(boolean shouldLockObjects)
public void setPrefetchingRelationshipKeyPaths(java.util.List aKeyPathList)
public void setPromptsAfterFetchLimit(boolean shouldPrompt)
public void setQualifier(EOQualifier aQualifier)
public void setRawRowKeyPaths(java.util.List aKeyPathList)
public void setRefreshesRefetchedObjects(boolean shouldRefresh)
public void setRequiresAllQualifierBindingVariables(boolean shouldRequireAll)
public void setSortOrderings(java.util.List aSortList)
public void setUsesDistinct(boolean shouldUseDistinct)
public net.wotonomy.foundation.NSArray sortOrderings()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean usesDistinct()
public void encodeWithKeyValueArchiver(EOKeyValueArchiver arch)
encodeWithKeyValueArchiver
in interface EOKeyValueArchiving
public static java.lang.Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarch)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |