Author: torehalset
Date: Tue Oct  3 15:33:35 2006
New Revision: 452658

URL: http://svn.apache.org/viewvc?view=rev&rev=452658
Log:
define DataChannel sync types

Modified:
    incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYCocoaCayenne.h
    incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m

Modified: incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYCocoaCayenne.h
URL: 
http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYCocoaCayenne.h?view=diff&rev=452658&r1=452657&r2=452658
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYCocoaCayenne.h 
(original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYCocoaCayenne.h Tue 
Oct  3 15:33:35 2006
@@ -33,4 +33,9 @@
 #define PSTATE_HOLLOW 5
 #define PSTATE_DELETED 6
 
+// define DataChannel sync types. See DataChannel for documentation
+#define SYNCTYPE_FLUSH_NOCASCADE 1
+#define SYNCTYPE_FLUSH_CASCADE 2
+#define SYNCTYPE_ROLLBACK_CASCADE 3
+
 @end

Modified: incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m
URL: 
http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m?view=diff&rev=452658&r1=452657&r2=452658
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m 
(original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYObjectContext.m Tue 
Oct  3 15:33:35 2006
@@ -196,7 +196,7 @@
 {
     NSLog(@"DEBUG: %i unsaved changes before commit. %@", [diffs count], 
diffs);
     CAYCompoundDiff *diffWithDiffs = [[CAYCompoundDiff alloc] 
initWithDiffs:diffs];
-    CAYSyncMessage *msg = [[CAYSyncMessage alloc] initWithType:2 
senderChanges:diffWithDiffs];
+    CAYSyncMessage *msg = [[CAYSyncMessage alloc] 
initWithType:SYNCTYPE_FLUSH_CASCADE senderChanges:diffWithDiffs];
     
     id result = [[self connection] sendMessage:msg];
     NSLog(@"DEBUG: commit result: %@", result);


Reply via email to