Package org.robovm.apple.coredata
Class NSManagedObjectContext
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.coredata.NSManagedObjectContext
- All Implemented Interfaces:
NSCoding,NSLocking,NSObjectProtocol,ObjCProtocol
public class NSManagedObjectContext extends NSObject implements NSCoding, NSLocking
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSManagedObjectContext.Notificationsstatic classNSManagedObjectContext.NSManagedObjectContextPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description NSManagedObjectContext()NSManagedObjectContext(NSManagedObjectContextConcurrencyType ct)NSManagedObjectContext(NSCoder coder)protectedNSManagedObjectContext(NSObject.Handle h, long handle)protectedNSManagedObjectContext(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
NSManagedObjectContext
public NSManagedObjectContext() -
NSManagedObjectContext
-
NSManagedObjectContext
-
NSManagedObjectContext
-
NSManagedObjectContext
-
-
Method Details
-
getPersistentStoreCoordinator
-
setPersistentStoreCoordinator
-
getParentContext
-
setParentContext
-
getName
-
setName
-
getUndoManager
-
setUndoManager
-
hasChanges
public boolean hasChanges() -
getUserInfo
-
getConcurrencyType
-
getInsertedObjects
-
getUpdatedObjects
-
getDeletedObjects
-
getRegisteredObjects
-
propagatesDeletesAtEndOfEvent
public boolean propagatesDeletesAtEndOfEvent() -
setPropagatesDeletesAtEndOfEvent
public void setPropagatesDeletesAtEndOfEvent(boolean v) -
getRetainsRegisteredObjects
-
setRetainsRegisteredObjects
-
shouldDeleteInaccessibleFaults
public boolean shouldDeleteInaccessibleFaults()- Since:
- Available in iOS 9.0 and later.
-
setShouldDeleteInaccessibleFaults
public void setShouldDeleteInaccessibleFaults(boolean v)- Since:
- Available in iOS 9.0 and later.
-
getStalenessInterval
public double getStalenessInterval() -
setStalenessInterval
public void setStalenessInterval(double v) -
getMergePolicy
-
setMergePolicy
-
getQueryGenerationToken
- Since:
- Available in iOS 10.0 and later.
-
automaticallyMergesChangesFromParent
public boolean automaticallyMergesChangesFromParent()- Since:
- Available in iOS 10.0 and later.
-
setAutomaticallyMergesChangesFromParent
public void setAutomaticallyMergesChangesFromParent(boolean v)- Since:
- Available in iOS 10.0 and later.
-
getTransactionAuthor
- Since:
- Available in iOS 11.0 and later.
-
setTransactionAuthor
- Since:
- Available in iOS 11.0 and later.
-
observeValue
-
WillSaveNotification
-
DidSaveNotification
-
ObjectsDidChangeNotification
-
DidSaveObjectIDsNotification
- Since:
- Available in iOS 10.3 and later.
-
DidMergeChangesObjectIDsNotification
- Since:
- Available in iOS 10.3 and later.
-
QueryGenerationKey
- Since:
- Available in iOS 10.0 and later.
-
init
-
performBlock
-
performBlockAndWait
-
getObjectRegisteredForID
-
getObjectWithId
-
getExistingObjectWithID
- Throws:
NSErrorException
-
executeFetchRequest
public NSArray<NSManagedObject> executeFetchRequest(NSFetchRequest request) throws NSErrorException- Throws:
NSErrorException
-
getCountForFetchRequest
- Throws:
NSErrorException
-
executeRequest
public NSPersistentStoreResult executeRequest(NSPersistentStoreRequest request) throws NSErrorException- Throws:
NSErrorException
-
insertObject
-
deleteObject
-
refreshObject
-
detectConflicts
-
processPendingChanges
public void processPendingChanges() -
assignObjectToPersistentStore
-
undo
public void undo() -
redo
public void redo() -
reset
public void reset() -
rollback
public void rollback() -
save
- Throws:
NSErrorException
-
refreshAllObjects
public void refreshAllObjects()- Since:
- Available in iOS 8.3 and later.
-
lock
Deprecated.Deprecated in iOS 8.0. Use a queue style context and -performBlockAndWait: instead -
unlock
Deprecated.Deprecated in iOS 8.0. Use a queue style context and -performBlockAndWait: instead -
tryLock
Deprecated.Deprecated in iOS 8.0. Use a queue style context and -performBlock: instead -
shouldHandleInaccessibleFault
public boolean shouldHandleInaccessibleFault(NSManagedObject fault, NSManagedObjectID oid, NSPropertyDescription property)- Since:
- Available in iOS 9.0 and later.
-
obtainPermanentIDsForObjects
public boolean obtainPermanentIDsForObjects(NSArray<NSManagedObject> objects) throws NSErrorException- Throws:
NSErrorException
-
mergeChangesFromContextDidSaveNotification
-
setQueryGenerationFromToken
public boolean setQueryGenerationFromToken(NSQueryGenerationToken generation) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 10.0 and later.
-
mergeChangesFromRemoteContextSave
public static void mergeChangesFromRemoteContextSave(NSDictionary<?,?> changeNotificationData, NSArray<NSManagedObjectContext> contexts)- Since:
- Available in iOS 9.0 and later.
-
encode
-
init
-