- (NSString *)folderName;
- (NSString *)path;
- (NSURL *)location;
+- (NSURL *)quickLocation;
- (NSString *)folderTypeName;
- (OCSFolderManager *)folderManager;
quickLocation = [locationString isNotNull]
? [NSURL URLWithString:locationString]
: nil;
+
+ if (quickLocation == nil) {
+ [self logWithFormat:@"WARNING(%s): missing quick location in record: %@",
+ __PRETTY_FUNCTION__, _record];
+ }
folder = [[OCSFolder alloc] initWithPath:path primaryKey:folderId
folderTypeName:folderTypeName
sql = [NSMutableString stringWithCapacity:256];
[sql appendString:@"SELECT "];
- [sql appendString:
- @"\"c_folder_id\", \"c_path\", \"c_location\", \"c_folder_type\""];
+ [sql appendString:@"\"c_folder_id\", "];
+ [sql appendString:@"\"c_path\", "];
+ [sql appendString:@"\"c_location\", \"c_quick_location\", "];
+ [sql appendString:@"\"c_folder_type\""];
[sql appendString:@" FROM "];
[sql appendString:[self folderInfoTableName]];
[sql appendString:@" WHERE "];
userInfo:nil];
}
- [self logWithFormat:@"create folder of type: %@", _type];
+ [self logWithFormat:@"create folder of type: %@", ftype];
return [NSException exceptionWithName:@"NotYetImplemented"
reason:@"no money, no time, ..."
folder = [self->folderManager folderAtPath:_path];
NSLog(@"folder: %@", folder);
- NSLog(@" can%s connect store.", [folder canConnectStore] ? "" : "not");
- NSLog(@" can%s connect quick.", [folder canConnectQuick] ? "" : "not");
+ NSLog(@" can%s connect store: %@", [folder canConnectStore] ? "" : "not",
+ [[folder location] absoluteString]);
+ NSLog(@" can%s connect quick: %@", [folder canConnectQuick] ? "" : "not",
+ [[folder quickLocation] absoluteString]);
return 0;
}
-CREATE TABLE %s (
- pkey INTEGER
- NOT NULL
- PRIMARY KEY,
+-- $Id$
+--
+-- (C) 2004 SKYRIX Software AG
+--
+
+CREATE TABLE %s_quick (
+ c_name VARCHAR(256) NOT NULL PRIMARY KEY, -- the filename
+ uid VARCHAR(256) NOT NULL,
startdate INT NOT NULL,
enddate INT NOT NULL,
- title VARCHAR(1000) NOT NULL,
+ title VARCHAR(1000) NOT NULL,
participants VARCHAR(100000) NOT NULL
);
+
+CREATE TABLE %s_blob (
+ c_name VARCHAR(256) NOT NULL PRIMARY KEY, -- the filename
+ c_content VARCHAR(100000) NOT NULL, -- the BLOB
+ c_creationdate INT NOT NULL, -- creation date
+ c_lastmodified INT NOT NULL, -- last modification (UPDATE)
+ c_version INT NOT NULL, -- version counter
+);