summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/coredata/NSEntityMigrationPolicy.inc
blob: 9ad440608d85f9d2d4d68d8f6aaaf4735549d8bf (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
{ Parsed from Coredata.framework NSEntityMigrationPolicy.h }

{$ifdef TYPES}
{$ifndef NSENTITYMIGRATIONPOLICY_PAS_T}
{$define NSENTITYMIGRATIONPOLICY_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSENTITYMIGRATIONPOLICY_PAS_R}
{$define NSENTITYMIGRATIONPOLICY_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSENTITYMIGRATIONPOLICY_PAS_F}
{$define NSENTITYMIGRATIONPOLICY_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSENTITYMIGRATIONPOLICY_PAS_S}
{$define NSENTITYMIGRATIONPOLICY_PAS_S}

{ External string constants }
var
  NSMigrationManagerKey: NSString; cvar; external;
  NSMigrationSourceObjectKey: NSString; cvar; external;
  NSMigrationDestinationObjectKey: NSString; cvar; external;
  NSMigrationEntityMappingKey: NSString; cvar; external;
  NSMigrationPropertyMappingKey: NSString; cvar; external;
  NSMigrationEntityPolicyKey: NSString; cvar; external;

{$endif}
{$endif}

{$ifdef FORWARD}
  NSEntityMigrationPolicy = objcclass;
  NSEntityMigrationPolicyPointer = ^NSEntityMigrationPolicy;
  NSEntityMigrationPolicyPtr = NSEntityMigrationPolicyPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSENTITYMIGRATIONPOLICY_PAS_C}
{$define NSENTITYMIGRATIONPOLICY_PAS_C}

{ NSEntityMigrationPolicy }
  NSEntityMigrationPolicy = objcclass external (NSObject)
    
  public
    function beginEntityMapping_manager_error(mapping: NSEntityMapping; manager: NSMigrationManager; error: NSErrorPointer): Boolean; message 'beginEntityMapping:manager:error:';
    function createDestinationInstancesForSourceInstance_entityMapping_manager_error(sInstance: NSManagedObject; mapping: NSEntityMapping; manager: NSMigrationManager; error: NSErrorPointer): Boolean; message 'createDestinationInstancesForSourceInstance:entityMapping:manager:error:';
    function endInstanceCreationForEntityMapping_manager_error(mapping: NSEntityMapping; manager: NSMigrationManager; error: NSErrorPointer): Boolean; message 'endInstanceCreationForEntityMapping:manager:error:';
    function createRelationshipsForDestinationInstance_entityMapping_manager_error(dInstance: NSManagedObject; mapping: NSEntityMapping; manager: NSMigrationManager; error: NSErrorPointer): Boolean; message 'createRelationshipsForDestinationInstance:entityMapping:manager:error:';
    function endRelationshipCreationForEntityMapping_manager_error(mapping: NSEntityMapping; manager: NSMigrationManager; error: NSErrorPointer): Boolean; message 'endRelationshipCreationForEntityMapping:manager:error:';
    function performCustomValidationForEntityMapping_manager_error(mapping: NSEntityMapping; manager: NSMigrationManager; error: NSErrorPointer): Boolean; message 'performCustomValidationForEntityMapping:manager:error:';
    function endEntityMapping_manager_error(mapping: NSEntityMapping; manager: NSMigrationManager; error: NSErrorPointer): Boolean; message 'endEntityMapping:manager:error:';
  end;

{$endif}
{$endif}