From 6c596a1d24975acd71897a393e15eb06e706ecf0 Mon Sep 17 00:00:00 2001 From: Ted Nathan Husted Date: Tue, 29 Aug 2006 19:38:46 +0000 Subject: [PATCH] Copy mailreader-ibatis work in progress to sandbox for further work. git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@438177 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/resources/sql-map-config.xml | 25 ------ .../main/resources/sql/mailreader-schema.sql | 35 -------- .../sql/sql-map-config-derby.properties | 12 --- .../sql/sql-map-config-hsql.properties | 9 -- .../src/main/resources/sql/sql-map.xml | 89 ------------------- 5 files changed, 170 deletions(-) delete mode 100644 apps/mailreader/src/main/resources/sql-map-config.xml delete mode 100644 apps/mailreader/src/main/resources/sql/mailreader-schema.sql delete mode 100644 apps/mailreader/src/main/resources/sql/sql-map-config-derby.properties delete mode 100644 apps/mailreader/src/main/resources/sql/sql-map-config-hsql.properties delete mode 100644 apps/mailreader/src/main/resources/sql/sql-map.xml diff --git a/apps/mailreader/src/main/resources/sql-map-config.xml b/apps/mailreader/src/main/resources/sql-map-config.xml deleted file mode 100644 index 394415187..000000000 --- a/apps/mailreader/src/main/resources/sql-map-config.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/apps/mailreader/src/main/resources/sql/mailreader-schema.sql b/apps/mailreader/src/main/resources/sql/mailreader-schema.sql deleted file mode 100644 index 9b86c8646..000000000 --- a/apps/mailreader/src/main/resources/sql/mailreader-schema.sql +++ /dev/null @@ -1,35 +0,0 @@ -CREATE TABLE locale -( - pk_locale char(36), - locale_code char(9), - locale_name char(36) -); - -CREATE TABLE registration -( - pk_registration char(36), - fk_locale char(36), - username char(18), - password char(18), - fullname varchar(36), - email_from varchar(72), - email_replyto varchar(72) -); - -CREATE TABLE protocol -( - pk_protocol char(36), - protocol_code char(9), - protocol_name char(36) -); - -CREATE TABLE subscription -( - pk_subscription char(36), - fk_registration char(36), - fk_protocol char(36), - subscription_host char(36), - host_user char(18), - host_pass char(18), - host_auto int -); diff --git a/apps/mailreader/src/main/resources/sql/sql-map-config-derby.properties b/apps/mailreader/src/main/resources/sql/sql-map-config-derby.properties deleted file mode 100644 index 7ef45fa2b..000000000 --- a/apps/mailreader/src/main/resources/sql/sql-map-config-derby.properties +++ /dev/null @@ -1,12 +0,0 @@ -############################################################## -# Database Connectivity Properties -# (derby - http://db.apache.org/derby/) -############################################################## - -driver=org.apache.derby.jdbc.EmbeddedDriver -url=jdbc:derby:mailreader;create=true -username= -password= -SqlMapPath=mailreader2 -dataSourceType=SIMPLE - diff --git a/apps/mailreader/src/main/resources/sql/sql-map-config-hsql.properties b/apps/mailreader/src/main/resources/sql/sql-map-config-hsql.properties deleted file mode 100644 index 2f0d141ba..000000000 --- a/apps/mailreader/src/main/resources/sql/sql-map-config-hsql.properties +++ /dev/null @@ -1,9 +0,0 @@ -############################################################## -# Database Connectivity Properties -# (HSQL - http://hsql.org/) -############################################################## - -driver=org.hsqldb.jdbcDriver -url=jdbc:hsqldb:mem:mailreader -username=sa -password= diff --git a/apps/mailreader/src/main/resources/sql/sql-map.xml b/apps/mailreader/src/main/resources/sql/sql-map.xml deleted file mode 100644 index a821d4d96..000000000 --- a/apps/mailreader/src/main/resources/sql/sql-map.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - INSERT INTO registration - (pk_registration, fk_locale, username, password, fullname, email_from, email_replyto) - VALUES (#registration_key#, #locale_key#, #username#, #password#, #fullname#, #email_from#, #email_replyto#); - - - - - - - - - - UPDATE registration - SET fk_locale=#locale_key#, username=#username#, password=#password#, fullname=#fullname#, - email_from=#email_from#, email_replyto=#email_replyto# - WHERE pk_registration=#registration_key#; - - - - - - INSERT INTO subscription - (pk_subscription, fk_registration, fk_protocol, subscription_host, host_user, host_pass, host_auto) - VALUES (#subscription_key#, #registration_key#, #protocol_key#, #subscription_host#, - #host_user#, #host_pass#, #host_auto#); - - - - - - - - UPDATE subscription - SET fk_registration=#registration_key#, fk_protocol=#protocol_key#, - subscription_host=#subscription_host#, host_user=#host_user#, host_pass=#host_pass#, host_auto=#host_auto# - WHERE pk_subscription=#subscription_key#; - - -