Package org.robovm.apple.coredata
Class NSPersistentStoreCoordinator
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.coredata.NSPersistentStoreCoordinator
- All Implemented Interfaces:
NSLocking,NSObjectProtocol,ObjCProtocol
public class NSPersistentStoreCoordinator extends NSObject implements NSLocking
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSPersistentStoreCoordinator.NotificationKeysstatic classNSPersistentStoreCoordinator.Notificationsstatic classNSPersistentStoreCoordinator.NSPersistentStoreCoordinatorPtrNested 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 NSPersistentStoreCoordinator()NSPersistentStoreCoordinator(NSManagedObjectModel model)protectedNSPersistentStoreCoordinator(NSObject.Handle h, long handle)protectedNSPersistentStoreCoordinator(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
-
NSPersistentStoreCoordinator
public NSPersistentStoreCoordinator() -
NSPersistentStoreCoordinator
-
NSPersistentStoreCoordinator
-
NSPersistentStoreCoordinator
-
-
Method Details
-
getManagedObjectModel
-
getPersistentStores
-
getName
-
setName
-
getRegisteredStoreTypes
-
addPersistentStore
public NSPersistentStore addPersistentStore(NSPersistentStoreType storeType, String configuration, NSURL storeURL, NSPersistentStoreOptions options) throws NSErrorException- Parameters:
storeType-configuration-storeURL-options-- Returns:
- Throws:
NSErrorException
-
migratePersistentStore
public NSPersistentStore migratePersistentStore(NSPersistentStore store, NSURL URL, NSPersistentStoreOptions options, NSPersistentStoreType storeType) throws NSErrorException- Parameters:
store-URL-options-storeType-- Returns:
- Throws:
NSErrorException
-
registerStoreClassForType
public static void registerStoreClassForType(Class<? extends NSPersistentStore> storeClass, NSPersistentStoreType storeType)- Parameters:
storeClass-storeType-- Since:
- Available in iOS 3.0 and later.
-
getMetadataForPersistentStoreType
public static NSPersistentStoreMetadata getMetadataForPersistentStoreType(NSPersistentStoreType storeType, NSURL url) throws NSErrorException- Parameters:
storeType-url-- Returns:
- Throws:
NSErrorException- Since:
- Available in iOS 3.0 and later.
-
setMetadataForPersistentStoreType
public static boolean setMetadataForPersistentStoreType(NSPersistentStoreMetadata metadata, NSPersistentStoreType storeType, NSURL url) throws NSErrorException- Parameters:
metadata-storeType-url-- Returns:
- Throws:
NSErrorException- Since:
- Available in iOS 3.0 and later.
-
CoreSpotlightExporter
- Since:
- Available in iOS 11.0 and later.
-
init
-
getPersistentStoreForURL
-
getURLForPersistentStore
-
setURLForPersistentStore
-
addPersistentStore
public NSPersistentStore addPersistentStore(String storeType, String configuration, NSURL storeURL, NSPersistentStoreOptions options) throws NSErrorException- Throws:
NSErrorException
-
addPersistentStoreWithDescription
public void addPersistentStoreWithDescription(NSPersistentStoreDescription storeDescription, VoidBlock2<NSPersistentStoreDescription,NSError> block)- Since:
- Available in iOS 10.0 and later.
-
removePersistentStore
- Throws:
NSErrorException
-
setMetadataForPersistentStore
public void setMetadataForPersistentStore(NSPersistentStoreMetadata metadata, NSPersistentStore store) -
getMetadataForPersistentStore
-
getManagedObjectIDForURIRepresentation
-
executeRequest
public NSObject executeRequest(NSPersistentStoreRequest request, NSManagedObjectContext context) throws NSErrorException- Throws:
NSErrorException
-
migratePersistentStore
public NSPersistentStore migratePersistentStore(NSPersistentStore store, NSURL URL, NSPersistentStoreOptions options, String storeType) throws NSErrorException- Throws:
NSErrorException
-
destroyPersistentStore
public boolean destroyPersistentStore(NSURL url, String storeType, NSPersistentStoreOptions options) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 9.0 and later.
-
replacePersistentStore
public boolean replacePersistentStore(NSURL destinationURL, NSPersistentStoreOptions destinationOptions, NSURL sourceURL, NSPersistentStoreOptions sourceOptions, String storeType) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 9.0 and later.
-
performBlock
-
performBlockAndWait
-
currentPersistentHistoryTokenFromStores
- Since:
- Available in iOS 12.0 and later.
-
lock
Deprecated.Deprecated in iOS 8.0. Use -performBlockAndWait: instead -
unlock
Deprecated.Deprecated in iOS 8.0. Use -performBlockAndWait: instead -
tryLock
Deprecated.Deprecated in iOS 8.0. Use -performBlock: instead -
registerStoreClassForType
public static void registerStoreClassForType(Class<? extends NSPersistentStore> storeClass, String storeType) -
getMetadataForPersistentStoreType
public static NSPersistentStoreMetadata getMetadataForPersistentStoreType(String storeType, NSURL url, NSPersistentStoreOptions options) throws NSErrorException- Throws:
NSErrorException
-
setMetadataForPersistentStoreType
public static boolean setMetadataForPersistentStoreType(NSPersistentStoreMetadata metadata, String storeType, NSURL url, NSPersistentStoreOptions options) throws NSErrorException- Throws:
NSErrorException
-
getMetadataForPersistentStoreType
@Deprecated public static NSPersistentStoreMetadata getMetadataForPersistentStoreType(String storeType, NSURL url) throws NSErrorExceptionDeprecated.Deprecated in iOS 9.0. Use -metadataForPersistentStoreOfType:URL:options:error: and pass in an options dictionary matching addPersistentStoreWithType- Throws:
NSErrorException
-
setMetadataForPersistentStoreType
@Deprecated public static boolean setMetadataForPersistentStoreType(NSPersistentStoreMetadata metadata, String storeType, NSURL url) throws NSErrorExceptionDeprecated.Deprecated in iOS 9.0. Use -setMetadata:forPersistentStoreOfType:URL:options:error: and pass in an options dictionary matching addPersistentStoreWithType- Throws:
NSErrorException
-
removeUbiquitousContentAndPersistentStore
@Deprecated public static boolean removeUbiquitousContentAndPersistentStore(NSURL storeURL, NSPersistentStoreOptions options) throws NSErrorExceptionDeprecated.Deprecated in iOS 10.0. Please see the release notes and Core Data documentation.- Throws:
NSErrorException
-