From b62d42db07749d58284d786ffe2896dfeb3c87f0 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Fri, 3 Mar 2017 11:19:46 +0100 Subject: [PATCH] updated fake mysql storage. --- .../src/cms_storage_store_mysql.e | 22 +++++++++++++ .../src/cms_storage_store_mysql_builder.e | 31 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 library/persistence/store_mysql_fake/src/cms_storage_store_mysql.e create mode 100644 library/persistence/store_mysql_fake/src/cms_storage_store_mysql_builder.e diff --git a/library/persistence/store_mysql_fake/src/cms_storage_store_mysql.e b/library/persistence/store_mysql_fake/src/cms_storage_store_mysql.e new file mode 100644 index 0000000..82d3cad --- /dev/null +++ b/library/persistence/store_mysql_fake/src/cms_storage_store_mysql.e @@ -0,0 +1,22 @@ +note + description: "Summary description for {CMS_STORAGE_STORE_MYSQL}." + date: "$Date$" + revision: "$Revision$" + +class + CMS_STORAGE_STORE_MYSQL + +inherit + CMS_STORAGE_STORE_NULL + +create + make + +feature + + make + do + default_create + end + +end -- class CMS_STORAGE_STORE_MYSQL diff --git a/library/persistence/store_mysql_fake/src/cms_storage_store_mysql_builder.e b/library/persistence/store_mysql_fake/src/cms_storage_store_mysql_builder.e new file mode 100644 index 0000000..1b7548e --- /dev/null +++ b/library/persistence/store_mysql_fake/src/cms_storage_store_mysql_builder.e @@ -0,0 +1,31 @@ +note + description: "[ + Interface responsible to instantiate CMS_STORAGE_STORE_MYSQL object. + ]" + author: "$Author$" + date: "$Date$" + revision: "$Revision$" + +class + CMS_STORAGE_STORE_MYSQL_BUILDER + +inherit + CMS_STORAGE_STORE_SQL_BUILDER + +create + make + +feature {NONE} + + make + do + end + +feature + + storage (a_setup: CMS_SETUP; a_error_handler: ERROR_HANDLER): detachable CMS_STORAGE_STORE_MYSQL + do + a_error_handler.add_custom_error (0, "Could not connect to the MySQL storage", Void) + end + +end -- class CMS_STORAGE_STORE_MYSQL_BUILDER