summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/coredata/NSPersistentStore.inc
blob: fda8c56e87054d3241b707544bd60280c10e5de2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{ Parsed from Coredata.framework NSPersistentStore.h }

{$ifdef TYPES}
{$ifndef NSPERSISTENTSTORE_PAS_T}
{$define NSPERSISTENTSTORE_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPERSISTENTSTORE_PAS_R}
{$define NSPERSISTENTSTORE_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPERSISTENTSTORE_PAS_F}
{$define NSPERSISTENTSTORE_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPERSISTENTSTORE_PAS_S}
{$define NSPERSISTENTSTORE_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSPersistentStore = objcclass;
  NSPersistentStorePointer = ^NSPersistentStore;
  NSPersistentStorePtr = NSPersistentStorePointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPERSISTENTSTORE_PAS_C}
{$define NSPERSISTENTSTORE_PAS_C}

{ NSPersistentStore }
  NSPersistentStore = objcclass external (NSObject)
  private
    _coordinator: NSPersistentStoreCoordinator; {garbage collector: __weak }
    _configurationName: NSString;
    _url: NSURL;
    _options: NSDictionary;
    _oidFactories: NSMutableDictionary;
    _defaultFaultHandler: id;
    __flags: record
      case byte of
       0: (_anonbitfield_NSPersistentStore0: cuint);
       1: (data: bitpacked record
        _isReadOnly: 0..1;
        cleanOnRemove: 0..1;
        isMDDirty: 0..1;
        _RESERVED: 0..((1 shl 29)-1);
       end;
      );
      end;
    _temporaryIDClass: Pointer;
    _reserved2: Pointer;
    _reserved3: Pointer;
    
  public
    class function metadataForPersistentStoreWithURL_error(url_: NSURL; error: NSErrorPointer): NSDictionary; message 'metadataForPersistentStoreWithURL:error:';
    class function setMetadata_forPersistentStoreWithURL_error(metadata_: NSDictionary; url_: NSURL; error: NSErrorPointer): Boolean; message 'setMetadata:forPersistentStoreWithURL:error:';
    class function migrationManagerClass: Pobjc_class; message 'migrationManagerClass';
    function initWithPersistentStoreCoordinator_configurationName_URL_options(root: NSPersistentStoreCoordinator; name: NSString; url_: NSURL; options_: NSDictionary): id; message 'initWithPersistentStoreCoordinator:configurationName:URL:options:';
    function loadMetadata(error: NSErrorPointer): Boolean; message 'loadMetadata:';
    function persistentStoreCoordinator: NSPersistentStoreCoordinator; message 'persistentStoreCoordinator';
    function configurationName: NSString; message 'configurationName';
    function options: NSDictionary; message 'options';
    function URL: NSURL; message 'URL';
    procedure setURL(url_: NSURL); message 'setURL:';
    function identifier: NSString; message 'identifier';
    procedure setIdentifier(identifier_: NSString); message 'setIdentifier:';
    function type_: NSString; message 'type';
    function isReadOnly: Boolean; message 'isReadOnly';
    procedure setReadOnly(flag: Boolean); message 'setReadOnly:';
    function metadata: NSDictionary; message 'metadata';
    procedure setMetadata(storeMetadata: NSDictionary); message 'setMetadata:';
    procedure didAddToPersistentStoreCoordinator(coordinator: NSPersistentStoreCoordinator); message 'didAddToPersistentStoreCoordinator:';
    procedure willRemoveFromPersistentStoreCoordinator(coordinator: NSPersistentStoreCoordinator); message 'willRemoveFromPersistentStoreCoordinator:';
  end;

{$endif}
{$endif}