From 064689175e3d82696ac6c4a3130086775e07f083 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 1 Aug 2007 18:23:30 +0000 Subject: [PATCH] Monotone-Parent: 7c7a8b7547ec7b4ed3b19f65785d05cc377b5a57 Monotone-Revision: 02abc41db5d816673f25eeb37b3414ede317718a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-01T18:23:30 Monotone-Branch: ca.inverse.sogo --- OGoContentStore/GNUmakefile | 4 +- OGoContentStore/appointment-oracle.ocs | 108 +++++++++++++++++++++++++ OGoContentStore/contact-oracle.ocs | 58 +++++++++++++ 3 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 OGoContentStore/appointment-oracle.ocs create mode 100644 OGoContentStore/contact-oracle.ocs diff --git a/OGoContentStore/GNUmakefile b/OGoContentStore/GNUmakefile index d8a20b4f9..d66c95f27 100644 --- a/OGoContentStore/GNUmakefile +++ b/OGoContentStore/GNUmakefile @@ -22,7 +22,9 @@ libOGoContentStore_OBJC_FILES += \ libOGoContentStore_TYPEMODELS += \ appointment.ocs \ - contact.ocs + contact.ocs \ + appointment-oracle.ocs \ + contact-oracle.ocs test_quick_extract_OBJC_FILES += \ test_quick_extract.m diff --git a/OGoContentStore/appointment-oracle.ocs b/OGoContentStore/appointment-oracle.ocs new file mode 100644 index 000000000..96769c60b --- /dev/null +++ b/OGoContentStore/appointment-oracle.ocs @@ -0,0 +1,108 @@ +{ + blobTablePattern = "SOGo_$folderId$_blob"; + quickTablePattern = "SOGo_$folderId$_quick"; + extractorClassName = "OCSiCalFieldExtractor"; + + fields = ( + { + columnName = c_name; + sqlType = "VARCHAR2(256)"; + allowsNull = NO; + }, + { + columnName = c_uid; + sqlType = "VARCHAR2(256)"; + allowsNull = NO; + }, + { + columnName = c_startdate; + sqlType = "INTEGER"; + allowsNull = YES; + }, + { + columnName = c_enddate; + sqlType = "INTEGER"; + allowsNull = YES; + }, + { + columnName = c_cycleenddate; + sqlType = "INTEGER"; + allowsNull = YES; + }, + { + columnName = c_title; + sqlType = "VARCHAR2(1000)"; + allowsNull = NO; + }, + { + columnName = c_participants; + sqlType = "CLOB"; + allowsNull = YES; + }, + { + columnName = c_isallday; + sqlType = "INTEGER"; + allowsNull = YES; + }, + { + columnName = c_iscycle; + sqlType = "INTEGER"; + allowsNull = YES; + }, + { + columnName = c_cycleinfo; + sqlType = "VARCHAR2(1000)"; + allowsNull = YES; + }, + { + columnName = c_classification; + sqlType = "INTEGER"; + allowsNull = NO; + }, + { + columnName = c_isopaque; + sqlType = "INTEGER"; + allowsNull = NO; + }, + { + columnName = c_status; + sqlType = "INTEGER"; + allowsNull = NO; + }, + { + columnName = c_priority; + sqlType = "INTEGER"; + allowsNull = YES; + }, + { + columnName = c_location; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_orgmail; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_partmails; + sqlType = "CLOB"; + allowsNull = YES; + }, + { + columnName = c_partstates; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_sequence; + sqlType = "INTEGER"; + allowsNull = YES; + }, + { + columnName = c_component; + sqlType = "VARCHAR2(10)"; + allowsNull = NO; + }, + ); +} diff --git a/OGoContentStore/contact-oracle.ocs b/OGoContentStore/contact-oracle.ocs new file mode 100644 index 000000000..1174d649a --- /dev/null +++ b/OGoContentStore/contact-oracle.ocs @@ -0,0 +1,58 @@ +{ + blobTablePattern = "SOGo_$folderId$_blob"; + quickTablePattern = "SOGo_$folderId$_quick"; + extractorClassName= "OCSContactFieldExtractor"; + + fields = ( + { + columnName = c_name; + sqlType = "VARCHAR2(256)"; + allowsNull = NO; + }, + { + columnName = c_givenname; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_cn; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_sn; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_screenname; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_l; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_mail; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_o; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_ou; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + { + columnName = c_telephoneNumber; + sqlType = "VARCHAR2(256)"; + allowsNull = YES; + }, + ); +}