public class NSManagedObjectModel extends NSObject implements NSCoding, NSCopying, NSFastEnumeration
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSManagedObjectModel(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static NSManagedObjectModel |
alloc() |
static NSManagedObjectModel |
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() |
NSArray<java.lang.String> |
configurations()
returns all available configuration names
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
long |
countByEnumeratingWithStateObjectsCount(org.moe.natj.general.ptr.VoidPtr state,
org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer,
long len) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
NSArray<? extends NSEntityDescription> |
entities() |
NSDictionary<java.lang.String,? extends NSEntityDescription> |
entitiesByName() |
NSArray<? extends NSEntityDescription> |
entitiesForConfiguration(java.lang.String configuration) |
NSDictionary<java.lang.String,? extends NSData> |
entityVersionHashesByName()
Returns a dictionary of the version hashes for the entities in the model, keyed by entity name.
|
NSFetchRequest<?> |
fetchRequestFromTemplateWithNameSubstitutionVariables(java.lang.String name,
NSDictionary<java.lang.String,?> variables)
returns a copy of the fetch request template with the variable bindings substituted - this is the usual way to bind an "abstractly" defined fetch request template to a concrete fetch
|
NSFetchRequest<?> |
fetchRequestTemplateForName(java.lang.String name) |
NSDictionary<java.lang.String,? extends NSFetchRequest<?>> |
fetchRequestTemplatesByName()
Returns the dictionary of fetch request templates, keyed by name, for the model.
|
static long |
hash_static() |
NSManagedObjectModel |
init() |
NSManagedObjectModel |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSManagedObjectModel |
initWithContentsOfURL(NSURL url) |
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) |
boolean |
isConfigurationCompatibleWithStoreMetadata(java.lang.String configuration,
NSDictionary<java.lang.String,?> metadata)
Compares the version information in the store metadata with the entity version of a given configuration.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
NSDictionary<java.lang.String,java.lang.String> |
localizationDictionary()
NSDictionary containing localized string values for entities, properties, and error strings related to this model.
|
static NSManagedObjectModel |
mergedModelFromBundles(NSArray<? extends NSBundle> bundles)
looks up all models in the specified bundles and merges them; if nil is specified as argument, uses the main bundle
|
static NSManagedObjectModel |
mergedModelFromBundlesForStoreMetadata(NSArray<? extends NSBundle> bundles,
NSDictionary<java.lang.String,?> metadata)
Returns the managed object model used to create the store for the specified metadata.
|
static NSManagedObjectModel |
modelByMergingModels(NSArray<? extends NSManagedObjectModel> models)
combines multiple models (typically from different frameworks) into one
|
static NSManagedObjectModel |
modelByMergingModelsForStoreMetadata(NSArray<? extends NSManagedObjectModel> models,
NSDictionary<java.lang.String,?> metadata)
Returns a merged model from the specified array for the version information in the provided metadata.
|
static NSManagedObjectModel |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setEntities(NSArray<? extends NSEntityDescription> value) |
void |
setEntitiesForConfiguration(NSArray<? extends NSEntityDescription> entities,
java.lang.String configuration) |
void |
setFetchRequestTemplateForName(NSFetchRequest<?> fetchRequestTemplate,
java.lang.String name)
fetch request templates allow to pre-define queries and their parameters in the model (with the tool) - typically they contain variables that need to be substituted at runtime.
|
void |
setLocalizationDictionary(NSDictionary<java.lang.String,java.lang.String> value)
NSDictionary containing localized string values for entities, properties, and error strings related to this model.
|
static void |
setVersion_static(long aVersion) |
void |
setVersionIdentifiers(NSSet<?> value)
Returns the collection of developer-defined version identifiers for the model.
|
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
NSSet<?> |
versionIdentifiers()
Returns the collection of developer-defined version identifiers for the model.
|
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 NSManagedObjectModel(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static NSManagedObjectModel alloc()
public static NSManagedObjectModel 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)
public static NSManagedObjectModel mergedModelFromBundles(NSArray<? extends NSBundle> bundles)
public static NSManagedObjectModel mergedModelFromBundlesForStoreMetadata(NSArray<? extends NSBundle> bundles, NSDictionary<java.lang.String,?> metadata)
public static NSManagedObjectModel modelByMergingModels(NSArray<? extends NSManagedObjectModel> models)
public static NSManagedObjectModel modelByMergingModelsForStoreMetadata(NSArray<? extends NSManagedObjectModel> models, NSDictionary<java.lang.String,?> metadata)
public static NSManagedObjectModel new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public NSArray<java.lang.String> configurations()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic long countByEnumeratingWithStateObjectsCount(org.moe.natj.general.ptr.VoidPtr state,
org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer,
long len)
countByEnumeratingWithStateObjectsCount in interface NSFastEnumerationpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic NSArray<? extends NSEntityDescription> entities()
public NSDictionary<java.lang.String,? extends NSEntityDescription> entitiesByName()
public NSArray<? extends NSEntityDescription> entitiesForConfiguration(java.lang.String configuration)
public NSDictionary<java.lang.String,? extends NSData> entityVersionHashesByName()
public NSFetchRequest<?> fetchRequestFromTemplateWithNameSubstitutionVariables(java.lang.String name, NSDictionary<java.lang.String,?> variables)
public NSFetchRequest<?> fetchRequestTemplateForName(java.lang.String name)
public NSDictionary<java.lang.String,? extends NSFetchRequest<?>> fetchRequestTemplatesByName()
public NSManagedObjectModel init()
public NSManagedObjectModel initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NSManagedObjectModel initWithContentsOfURL(NSURL url)
public boolean isConfigurationCompatibleWithStoreMetadata(java.lang.String configuration,
NSDictionary<java.lang.String,?> metadata)
public NSDictionary<java.lang.String,java.lang.String> localizationDictionary()
// for properties of the same non-localized name in differenct entities, which should have different localized names key = "Property/NonLocalizedPropertyName/Entity/EntityName" value = "LocalizedPropertyName"
key = "Property/NonLocalizedPropertyName" value = "LocalizedPropertyName"
key = "ErrorString/NonLocalizedErrorString" value = "LocalizedErrorString"
public void setEntities(NSArray<? extends NSEntityDescription> value)
public void setEntitiesForConfiguration(NSArray<? extends NSEntityDescription> entities, java.lang.String configuration)
public void setFetchRequestTemplateForName(NSFetchRequest<?> fetchRequestTemplate, java.lang.String name)
public void setLocalizationDictionary(NSDictionary<java.lang.String,java.lang.String> value)
// for properties of the same non-localized name in differenct entities, which should have different localized names key = "Property/NonLocalizedPropertyName/Entity/EntityName" value = "LocalizedPropertyName"
key = "Property/NonLocalizedPropertyName" value = "LocalizedPropertyName"
key = "ErrorString/NonLocalizedErrorString" value = "LocalizedErrorString"
public void setVersionIdentifiers(NSSet<?> value)
public NSSet<?> versionIdentifiers()