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
,org.robovm.objc.ObjCProtocol
public class NSPersistentStoreCoordinator extends NSObject implements NSLocking
- Since:
- Available in iOS 3.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSPersistentStoreCoordinator.Notifications
static class
NSPersistentStoreCoordinator.NSPersistentStoreCoordinatorPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSPersistentStoreCoordinator()
NSPersistentStoreCoordinator(NSManagedObjectModel model)
protected
NSPersistentStoreCoordinator(NSObject.Handle h, long handle)
protected
NSPersistentStoreCoordinator(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, willChangeValues
-
-
-
-
Constructor Detail
-
NSPersistentStoreCoordinator
public NSPersistentStoreCoordinator()
-
NSPersistentStoreCoordinator
protected NSPersistentStoreCoordinator(NSObject.Handle h, long handle)
-
NSPersistentStoreCoordinator
protected NSPersistentStoreCoordinator(NSObject.SkipInit skipInit)
-
NSPersistentStoreCoordinator
public NSPersistentStoreCoordinator(NSManagedObjectModel model)
-
-
Method Detail
-
getManagedObjectModel
public NSManagedObjectModel getManagedObjectModel()
-
getPersistentStores
public NSArray<NSPersistentStore> getPersistentStores()
-
getName
public java.lang.String getName()
- Since:
- Available in iOS 8.0 and later.
-
setName
public void setName(java.lang.String v)
- Since:
- Available in iOS 8.0 and later.
-
getRegisteredStoreTypes
public static NSDictionary<NSString,NSPersistentStore> getRegisteredStoreTypes()
- Since:
- Available in iOS 3.0 and later.
-
addPersistentStore
public NSPersistentStore addPersistentStore(NSPersistentStoreType storeType, java.lang.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(java.lang.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.
-
StoresWillChangeNotification
public static NSString StoresWillChangeNotification()
- Since:
- Available in iOS 7.0 and later.
-
StoresDidChangeNotification
public static NSString StoresDidChangeNotification()
- Since:
- Available in iOS 3.0 and later.
-
WillRemoveStoreNotification
public static NSString WillRemoveStoreNotification()
- Since:
- Available in iOS 3.0 and later.
-
CoreSpotlightExporter
public static java.lang.String CoreSpotlightExporter()
- Since:
- Available in iOS 11.0 and later.
-
DidImportUbiquitousContentChangesNotification
@Deprecated public static NSString DidImportUbiquitousContentChangesNotification()
Deprecated.Deprecated in iOS 10.0. Please see the release notes and Core Data documentation.- Since:
- Available in iOS 5.0 and later.
-
init
protected long init(NSManagedObjectModel model)
-
getPersistentStoreForURL
public NSPersistentStore getPersistentStoreForURL(NSURL URL)
-
getURLForPersistentStore
public NSURL getURLForPersistentStore(NSPersistentStore store)
-
setURLForPersistentStore
public boolean setURLForPersistentStore(NSURL url, NSPersistentStore store)
- Since:
- Available in iOS 3.0 and later.
-
addPersistentStore
public NSPersistentStore addPersistentStore(java.lang.String storeType, java.lang.String configuration, NSURL storeURL, NSPersistentStoreOptions options) throws NSErrorException
- Throws:
NSErrorException
-
addPersistentStoreWithDescription
public void addPersistentStoreWithDescription(NSPersistentStoreDescription storeDescription, org.robovm.objc.block.VoidBlock2<NSPersistentStoreDescription,NSError> block)
- Since:
- Available in iOS 10.0 and later.
-
removePersistentStore
public boolean removePersistentStore(NSPersistentStore store) throws NSErrorException
- Throws:
NSErrorException
-
setMetadataForPersistentStore
public void setMetadataForPersistentStore(NSPersistentStoreMetadata metadata, NSPersistentStore store)
-
getMetadataForPersistentStore
public NSDictionary<NSString,?> getMetadataForPersistentStore(NSPersistentStore store)
-
getManagedObjectIDForURIRepresentation
public NSManagedObjectID getManagedObjectIDForURIRepresentation(NSURL url)
-
executeRequest
public NSObject executeRequest(NSPersistentStoreRequest request, NSManagedObjectContext context) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 5.0 and later.
-
migratePersistentStore
public NSPersistentStore migratePersistentStore(NSPersistentStore store, NSURL URL, NSPersistentStoreOptions options, java.lang.String storeType) throws NSErrorException
- Throws:
NSErrorException
-
destroyPersistentStore
public boolean destroyPersistentStore(NSURL url, java.lang.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, java.lang.String storeType) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 9.0 and later.
-
performBlock
public void performBlock(java.lang.Runnable block)
- Since:
- Available in iOS 8.0 and later.
-
performBlockAndWait
public void performBlockAndWait(java.lang.Runnable block)
- Since:
- Available in iOS 8.0 and later.
-
lock
@Deprecated public void lock()
Deprecated.Deprecated in iOS 8.0. Use -performBlockAndWait: instead
-
unlock
@Deprecated public void unlock()
Deprecated.Deprecated in iOS 8.0. Use -performBlockAndWait: instead
-
tryLock
@Deprecated public boolean tryLock()
Deprecated.Deprecated in iOS 8.0. Use -performBlock: instead- Since:
- Available in iOS 3.0 and later.
-
registerStoreClassForType
public static void registerStoreClassForType(java.lang.Class<? extends NSPersistentStore> storeClass, java.lang.String storeType)
- Since:
- Available in iOS 3.0 and later.
-
getMetadataForPersistentStoreType
public static NSPersistentStoreMetadata getMetadataForPersistentStoreType(java.lang.String storeType, NSURL url, NSPersistentStoreOptions options) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 7.0 and later.
-
setMetadataForPersistentStoreType
public static boolean setMetadataForPersistentStoreType(NSPersistentStoreMetadata metadata, java.lang.String storeType, NSURL url, NSPersistentStoreOptions options) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 7.0 and later.
-
getMetadataForPersistentStoreType
@Deprecated public static NSPersistentStoreMetadata getMetadataForPersistentStoreType(java.lang.String storeType, NSURL url) throws NSErrorException
Deprecated.Deprecated in iOS 9.0. Use -metadataForPersistentStoreOfType:URL:options:error: and pass in an options dictionary matching addPersistentStoreWithType- Throws:
NSErrorException
- Since:
- Available in iOS 3.0 and later.
-
setMetadataForPersistentStoreType
@Deprecated public static boolean setMetadataForPersistentStoreType(NSPersistentStoreMetadata metadata, java.lang.String storeType, NSURL url) throws NSErrorException
Deprecated.Deprecated in iOS 9.0. Use -setMetadata:forPersistentStoreOfType:URL:options:error: and pass in an options dictionary matching addPersistentStoreWithType- Throws:
NSErrorException
- Since:
- Available in iOS 3.0 and later.
-
removeUbiquitousContentAndPersistentStore
@Deprecated public static boolean removeUbiquitousContentAndPersistentStore(NSURL storeURL, NSPersistentStoreOptions options) throws NSErrorException
Deprecated.Deprecated in iOS 10.0. Please see the release notes and Core Data documentation.- Throws:
NSErrorException
- Since:
- Available in iOS 5.0 and later.
-
-