Class NSFetchRequest<ResultType extends NSObject & NSFetchRequestResult>

All Implemented Interfaces:
NSCoding, NSObjectProtocol, ObjCProtocol

public class NSFetchRequest<ResultType extends NSObject & NSFetchRequestResult>
extends NSPersistentStoreRequest
implements NSCoding
  • Constructor Details

    • NSFetchRequest

      public NSFetchRequest()
    • NSFetchRequest

      protected NSFetchRequest​(NSObject.Handle h, long handle)
    • NSFetchRequest

      protected NSFetchRequest​(NSObject.SkipInit skipInit)
    • NSFetchRequest

      public NSFetchRequest​(String entityName)
    • NSFetchRequest

      public NSFetchRequest​(NSCoder coder)
  • Method Details

    • getEntity

      public NSEntityDescription getEntity()
    • setEntity

      public void setEntity​(NSEntityDescription v)
    • getEntityName

      public String getEntityName()
    • getPredicate

      public NSPredicate getPredicate()
    • setPredicate

      public void setPredicate​(NSPredicate v)
    • getSortDescriptors

      public NSArray<NSSortDescriptor> getSortDescriptors()
    • setSortDescriptors

      public void setSortDescriptors​(NSArray<NSSortDescriptor> v)
    • getFetchLimit

      public long getFetchLimit()
    • setFetchLimit

      public void setFetchLimit​(long v)
    • getAffectedStores

      public List<String> getAffectedStores()
      Overrides:
      getAffectedStores in class NSPersistentStoreRequest
    • setAffectedStores

      public void setAffectedStores​(List<String> v)
      Overrides:
      setAffectedStores in class NSPersistentStoreRequest
    • getResultType

      public NSFetchRequestResultType getResultType()
    • setResultType

      public void setResultType​(NSFetchRequestResultType v)
    • includesSubentities

      public boolean includesSubentities()
    • setIncludesSubentities

      public void setIncludesSubentities​(boolean v)
    • includesPropertyValues

      public boolean includesPropertyValues()
    • setIncludesPropertyValues

      public void setIncludesPropertyValues​(boolean v)
    • returnsObjectsAsFaults

      public boolean returnsObjectsAsFaults()
    • setReturnsObjectsAsFaults

      public void setReturnsObjectsAsFaults​(boolean v)
    • getRelationshipKeyPathsForPrefetching

      public List<String> getRelationshipKeyPathsForPrefetching()
    • setRelationshipKeyPathsForPrefetching

      public void setRelationshipKeyPathsForPrefetching​(List<String> v)
    • includesPendingChanges

      public boolean includesPendingChanges()
    • setIncludesPendingChanges

      public void setIncludesPendingChanges​(boolean v)
    • returnsDistinctResults

      public boolean returnsDistinctResults()
    • setReturnsDistinctResults

      public void setReturnsDistinctResults​(boolean v)
    • getPropertiesToFetch

      public NSArray<NSPropertyDescription> getPropertiesToFetch()
    • setPropertiesToFetch

      public void setPropertiesToFetch​(NSArray<NSPropertyDescription> v)
    • getFetchOffset

      public long getFetchOffset()
    • setFetchOffset

      public void setFetchOffset​(long v)
    • getFetchBatchSize

      public long getFetchBatchSize()
    • setFetchBatchSize

      public void setFetchBatchSize​(long v)
    • shouldRefreshRefetchedObjects

      public boolean shouldRefreshRefetchedObjects()
    • setShouldRefreshRefetchedObjects

      public void setShouldRefreshRefetchedObjects​(boolean v)
    • getPropertiesToGroupBy

      public NSArray<NSPropertyDescription> getPropertiesToGroupBy()
    • setPropertiesToGroupBy

      public void setPropertiesToGroupBy​(NSArray<NSPropertyDescription> v)
    • getHavingPredicate

      public NSPredicate getHavingPredicate()
    • setHavingPredicate

      public void setHavingPredicate​(NSPredicate v)
    • init

      protected long init​(String entityName)
    • execute

      public NSArray<ResultType> execute() throws NSErrorException
      Throws:
      NSErrorException
      Since:
      Available in iOS 10.0 and later.
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)