]> git.mxchange.org Git - jfinancials-swing.git/blobdiff - Addressbook/src/org/mxchange/addressbook/BaseFrameworkSystem.java
Rewrite start of storing contacts in database as the previous was just for demo ...
[jfinancials-swing.git] / Addressbook / src / org / mxchange / addressbook / BaseFrameworkSystem.java
index 093797a0574cf050f5426731c676d236f08f7c2c..a9d6dff137492f006c9623ebf9e95c69d0e9efa4 100644 (file)
@@ -49,6 +49,11 @@ public class BaseFrameworkSystem {
      */\r
     private ManageableContact contactManager;\r
 \r
+    /**\r
+     * Name of used database table, handled over to backend\r
+     */\r
+    private String tableName;\r
+\r
     /**\r
      * Initialize object\r
      */\r
@@ -64,36 +69,22 @@ public class BaseFrameworkSystem {
 \r
     /**\r
      * Application instance\r
+     * \r
      * @return the application\r
      */\r
     public Application getApplication () {\r
        return this.application;\r
     }\r
 \r
-    /**\r
-     * Application instance\r
-     * @param application the application to set\r
-     */\r
-    protected void setApplication (final Application application) {\r
-       this.application = application;\r
-    }\r
-\r
     /**\r
      * Client instance\r
+     * \r
      * @return the client\r
      */\r
     public Client getClient () {\r
        return this.client;\r
     }\r
 \r
-    /**\r
-     * Client instance\r
-     * @param client the client to set\r
-     */\r
-    protected void setClient (final Client client) {\r
-       this.client = client;\r
-    }\r
-\r
     /**\r
      * Contact manager instance\r
      * @return the contactManager\r
@@ -106,10 +97,27 @@ public class BaseFrameworkSystem {
      * Contact manager instance\r
      * @param contactManager the contactManager to set\r
      */\r
-    protected void setContactManager(final ManageableContact contactManager) {\r
+    protected void setContactManager (final ManageableContact contactManager) {\r
        this.contactManager = contactManager;\r
     }\r
 \r
+    /**\r
+     * Client instance\r
+     * @param client the client to set\r
+     */\r
+    protected void setClient (final Client client) {\r
+       this.client = client;\r
+    }\r
+\r
+    /**\r
+     * Application instance\r
+     *\r
+     * @param application the application to set\r
+     */\r
+    protected void setApplication(final Application application) {\r
+       this.application = application;\r
+    }\r
+\r
     /**\r
      * Getter for logger\r
      *\r
@@ -119,6 +127,24 @@ public class BaseFrameworkSystem {
        return this.LOG;\r
     }\r
 \r
+    /**\r
+     * Name of used database table, handled over to backend\r
+     * \r
+     * @return the tableName\r
+     */\r
+    protected String getTableName () {\r
+       return this.tableName;\r
+    }\r
+\r
+    /**\r
+     * Name of used database table, handled over to backend\r
+     * \r
+     * @param tableName the tableName to set\r
+     */\r
+    protected void setTableName (final String tableName) {\r
+       this.tableName = tableName;\r
+    }\r
+\r
     /**\r
      * Initializes contact manager\r
      * @param client Client instance\r
@@ -126,14 +152,14 @@ public class BaseFrameworkSystem {
     protected void initContactManager (final Client client) {\r
        // Debug message\r
        this.getLogger().debug("Initializing contact manager ...");\r
-\r
+       \r
        // Init contact manager with console client\r
        // @TODO Static initial amount of contacts\r
        ManageableContact manager = new ContactManager (100, client);\r
-\r
+       \r
        // Set it here\r
        this.setContactManager(manager);\r
-\r
+       \r
        // Debug message\r
        this.getLogger().debug("Contact manager has been initialized.");\r
     }\r