| Modifier and Type | Class and Description |
|---|---|
static interface |
NSPersistentStoreCoordinator.Block_addPersistentStoreWithDescriptionCompletionHandler |
static interface |
NSPersistentStoreCoordinator.Block_performBlock |
static interface |
NSPersistentStoreCoordinator.Block_performBlockAndWait |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSPersistentStoreCoordinator(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addPersistentStoreWithDescriptionCompletionHandler(NSPersistentStoreDescription storeDescription,
NSPersistentStoreCoordinator.Block_addPersistentStoreWithDescriptionCompletionHandler block) |
NSPersistentStore |
addPersistentStoreWithTypeConfigurationURLOptionsError(java.lang.String storeType,
java.lang.String configuration,
NSURL storeURL,
NSDictionary<?,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Adds the store at the specified URL (of the specified type) to the coordinator with the model configuration and options.
|
static NSPersistentStoreCoordinator |
alloc() |
static NSPersistentStoreCoordinator |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
NSPersistentHistoryToken |
currentPersistentHistoryTokenFromStores(NSArray<?> stores)
Constructs a combined NSPersistentHistoryToken given an array of persistent stores.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
boolean |
destroyPersistentStoreAtURLWithTypeOptionsError(NSURL url,
java.lang.String storeType,
NSDictionary<?,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
delete or truncate the target persistent store in accordance with the store class's requirements.
|
java.lang.Object |
executeRequestWithContextError(NSPersistentStoreRequest request,
NSManagedObjectContext context,
org.moe.natj.general.ptr.Ptr<NSError> error)
Sends a request to all of the stores associated with this coordinator.
|
static long |
hash_static() |
NSPersistentStoreCoordinator |
init() |
NSPersistentStoreCoordinator |
initWithManagedObjectModel(NSManagedObjectModel model) |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
void |
lock()
Deprecated.
|
NSManagedObjectID |
managedObjectIDForURIRepresentation(NSURL url)
Given a URI representation of an object ID, returns an object ID if a matching store is available or nil if a matching store cannot be found (the URI representation contains a UUID of the store the ID is coming from, and the coordinator can match it against the stores added to it)
|
NSManagedObjectModel |
managedObjectModel() |
NSDictionary<java.lang.String,?> |
metadataForPersistentStore(NSPersistentStore store)
Returns the metadata currently stored or to-be-stored in the persistent store
|
static NSDictionary<java.lang.String,?> |
metadataForPersistentStoreOfTypeURLError(java.lang.String storeType,
NSURL url,
org.moe.natj.general.ptr.Ptr<NSError> error)
Deprecated.
|
static NSDictionary<java.lang.String,?> |
metadataForPersistentStoreOfTypeURLOptionsError(java.lang.String storeType,
NSURL url,
NSDictionary<?,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Allows to access the metadata stored in a persistent store without warming up a CoreData stack; the guaranteed keys in this dictionary are NSStoreTypeKey and NSStoreUUIDKey.
|
NSPersistentStore |
migratePersistentStoreToURLOptionsWithTypeError(NSPersistentStore store,
NSURL URL,
NSDictionary<?,?> options,
java.lang.String storeType,
org.moe.natj.general.ptr.Ptr<NSError> error)
Used for save as - performance may vary depending on the type of old and new store; the old store is usually removed from the coordinator by the migration operation, and therefore is no longer a useful reference after invoking this method
|
java.lang.String |
name()
custom name for a coordinator.
|
static NSPersistentStoreCoordinator |
new_objc() |
void |
performBlock(NSPersistentStoreCoordinator.Block_performBlock block)
asynchronously performs the block on the coordinator's queue.
|
void |
performBlockAndWait(NSPersistentStoreCoordinator.Block_performBlockAndWait block)
synchronously performs the block on the coordinator's queue.
|
NSPersistentStore |
persistentStoreForURL(NSURL URL) |
NSArray<? extends NSPersistentStore> |
persistentStores() |
static NSDictionary<java.lang.String,? extends NSValue> |
registeredStoreTypes()
Returns a dictionary of the registered store types: the keys are the store type strings and the values are the NSPersistentStore subclasses wrapped in NSValues.
|
static void |
registerStoreClassForStoreType(org.moe.natj.objc.Class storeClass,
java.lang.String storeType)
Registers the specified NSPersistentStore subclass for the specified store type string.
|
boolean |
removePersistentStoreError(NSPersistentStore store,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static boolean |
removeUbiquitousContentAndPersistentStoreAtURLOptionsError(NSURL storeURL,
NSDictionary<?,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Delete all ubiquitous content for all peers for the persistent store at the given URL and also delete the local store file.
|
boolean |
replacePersistentStoreAtURLDestinationOptionsWithPersistentStoreFromURLSourceOptionsStoreTypeError(NSURL destinationURL,
NSDictionary<?,?> destinationOptions,
NSURL sourceURL,
NSDictionary<?,?> sourceOptions,
java.lang.String storeType,
org.moe.natj.general.ptr.Ptr<NSError> error)
copy or overwrite the target persistent store in accordance with the store class's requirements.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setMetadataForPersistentStore(NSDictionary<java.lang.String,?> metadata,
NSPersistentStore store)
Sets the metadata stored in the persistent store during the next save operation executed on it; the store type and UUID (NSStoreTypeKey and NSStoreUUIDKey) are always added automatically (but NSStoreUUIDKey is only added if it is not set manually as part of the dictionary argument)
|
static boolean |
setMetadataForPersistentStoreOfTypeURLError(NSDictionary<java.lang.String,?> metadata,
java.lang.String storeType,
NSURL url,
org.moe.natj.general.ptr.Ptr<NSError> error)
Deprecated.
|
static boolean |
setMetadataForPersistentStoreOfTypeURLOptionsError(NSDictionary<java.lang.String,?> metadata,
java.lang.String storeType,
NSURL url,
NSDictionary<?,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error) |
void |
setName(java.lang.String value)
custom name for a coordinator.
|
boolean |
setURLForPersistentStore(NSURL url,
NSPersistentStore store)
Sets the URL for the specified store in the coordinator.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
tryLock()
Deprecated.
|
void |
unlock()
Deprecated.
|
NSURL |
URLForPersistentStore(NSPersistentStore store) |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected NSPersistentStoreCoordinator(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static NSPersistentStoreCoordinator alloc()
public static NSPersistentStoreCoordinator allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
@Deprecated public static NSDictionary<java.lang.String,?> metadataForPersistentStoreOfTypeURLError(java.lang.String storeType, NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)
public static NSDictionary<java.lang.String,?> metadataForPersistentStoreOfTypeURLOptionsError(java.lang.String storeType, NSURL url, NSDictionary<?,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static NSPersistentStoreCoordinator new_objc()
public static void registerStoreClassForStoreType(org.moe.natj.objc.Class storeClass,
java.lang.String storeType)
public static NSDictionary<java.lang.String,? extends NSValue> registeredStoreTypes()
public static boolean removeUbiquitousContentAndPersistentStoreAtURLOptionsError(NSURL storeURL, NSDictionary<?,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
@Deprecated public static boolean setMetadataForPersistentStoreOfTypeURLError(NSDictionary<java.lang.String,?> metadata, java.lang.String storeType, NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)
public static boolean setMetadataForPersistentStoreOfTypeURLOptionsError(NSDictionary<java.lang.String,?> metadata, java.lang.String storeType, NSURL url, NSDictionary<?,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public NSURL URLForPersistentStore(NSPersistentStore store)
public void addPersistentStoreWithDescriptionCompletionHandler(NSPersistentStoreDescription storeDescription, NSPersistentStoreCoordinator.Block_addPersistentStoreWithDescriptionCompletionHandler block)
public NSPersistentStore addPersistentStoreWithTypeConfigurationURLOptionsError(java.lang.String storeType, java.lang.String configuration, NSURL storeURL, NSDictionary<?,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean destroyPersistentStoreAtURLWithTypeOptionsError(NSURL url, java.lang.String storeType, NSDictionary<?,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public java.lang.Object executeRequestWithContextError(NSPersistentStoreRequest request, NSManagedObjectContext context, org.moe.natj.general.ptr.Ptr<NSError> error)
public NSPersistentStoreCoordinator init()
public NSPersistentStoreCoordinator initWithManagedObjectModel(NSManagedObjectModel model)
public NSManagedObjectID managedObjectIDForURIRepresentation(NSURL url)
public NSManagedObjectModel managedObjectModel()
public NSDictionary<java.lang.String,?> metadataForPersistentStore(NSPersistentStore store)
public NSPersistentStore migratePersistentStoreToURLOptionsWithTypeError(NSPersistentStore store, NSURL URL, NSDictionary<?,?> options, java.lang.String storeType, org.moe.natj.general.ptr.Ptr<NSError> error)
public java.lang.String name()
public void performBlock(NSPersistentStoreCoordinator.Block_performBlock block)
public void performBlockAndWait(NSPersistentStoreCoordinator.Block_performBlockAndWait block)
public NSPersistentStore persistentStoreForURL(NSURL URL)
public NSArray<? extends NSPersistentStore> persistentStores()
public boolean removePersistentStoreError(NSPersistentStore store, org.moe.natj.general.ptr.Ptr<NSError> error)
public boolean replacePersistentStoreAtURLDestinationOptionsWithPersistentStoreFromURLSourceOptionsStoreTypeError(NSURL destinationURL, NSDictionary<?,?> destinationOptions, NSURL sourceURL, NSDictionary<?,?> sourceOptions, java.lang.String storeType, org.moe.natj.general.ptr.Ptr<NSError> error)
public void setMetadataForPersistentStore(NSDictionary<java.lang.String,?> metadata, NSPersistentStore store)
public void setName(java.lang.String value)
public boolean setURLForPersistentStore(NSURL url, NSPersistentStore store)
@Deprecated public boolean tryLock()
public NSPersistentHistoryToken currentPersistentHistoryTokenFromStores(NSArray<?> stores)