From 348c8e86763808f2c03f62c5dc198cbc163ccb8b Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 24 Aug 2015 13:30:16 +0200 Subject: [PATCH] =?utf8?q?Updated=20jcore=20+=20some=20more=20fixes=20for?= =?utf8?q?=20changed=20database=20backend=20(Table=20Data=20Gateway=20Patt?= =?utf8?q?ern)=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcore.jar | Bin 113421 -> 112955 bytes nbproject/project.properties | 1 + .../AddressbookContactDatabaseFrontend.java | 45 ++++++++++++------ .../contact/AddressbookContactFrontend.java | 5 +- .../contact/AddressbookContactManager.java | 15 ++---- 5 files changed, 40 insertions(+), 26 deletions(-) diff --git a/lib/jcore.jar b/lib/jcore.jar index 4ad2d9d51895e21f4aa9cee85a33acf155bc655c..d426e0dec31b4479bf275fbb9cc6ca3ba25ffd7c 100644 GIT binary patch delta 12915 zcmaJ|2VfP|(w@2ZCcC+J6Ous6B_Rb85<)_#QHqcdk=|J43kzhi=0_wB(@++dqQ=bK&PweG^{NJ3tDZIY~@1ET=bLPyMGiTba>wgVA{bQgp zVzATYCen!(&)#ITb1a&@>4xudHB&i3nn5gm<~+`n=Af2r9t$y=j6&z5!X%9Tyo_|lM&EI8X=kx7k2%`#{zl?3`|)^=ktGXg%Q#lW=;%LOw0@% zU?blkjRBq$n(5ZYyZApAovCFD!W^xeGzYbwest^2E!@J4(}h@dn(i7QZN~{OIHmo4 z;%1h1-Q+JgWYO&C{v!{puPSj7mAK4OmlxvGs&`FU;}V?I>0=zyE}wB+wVewS6XkjA zJwpT4*b7-bN1yT#o${DJXkL-GdAU5W`h$(Hcm!|XgXc6gzUo~ye)NIXs$FnM3zhyA zb$6;~*OPDP!NN=XUw&Kb2_W)RfBO9M4wo~v-N5Ra7uP!!aLsLfq6f7n8f1=mCC~Sr zo9?B*+_aXi=}a24n;q=*u!{pc9LSo^x;z8{gWY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eN&DB%OmG>>+SIqi6v>G5DoJ3&}=IsF_v*w2?4X>N=L<)d57&exD=+3S3h2F13CUauum5xv_rC8V%4S zJFLk$ubr32EP!S@T8mrJ@)Ct-iKVHe2wx=ZOmqcB`Iey0o9W;wrfH^L~~)&em;Z++NDL zWvEAaxQyk#wKeA$H?bTC)a7ui;{leN+1B@mQE46EcJk5TC_X+pz=`sKE0#^Hq=z_3 zK3)>YqK7z5K2ANvnf?}X`Pv4~K4=3UJjl08<=pZr5t`3 zu@6dx`O(96XHYXlDit9Uj@X2#76*>lEv_Ho3H}yx&s=C}V(mD}a{XIy$^C6B?ide{ z5;K-t=ys!P$LvO)<2Htw$8AC{ALq%^DEb6XlXB$=o8Z?^@EG}SbJCv3x|4Rl4^Q$~ zsqcKs=E9~^JW;+sKV|pp{V-3F?|l#RY$>(VJWtBv)0|uX-nRACX`UD>;a|;lZESt9 z;njZ*t?Bxlwcrr9GV`8`x6YhlLp85=I$GTp<)JmbepbzK@Mhs6aDeI(CnMB5KB?CQ z*Otu#j?n7k6t&zZ&vFxIOa~kAvMbp7`Ybn-Nf_qbDn(yIU|tEQ|x{r zFNIsb_yI;a028O#fY@eHR#v&)W4-_`PiOP0JI2hP)6ja%4|rJsU*{-*6@0`sopy?7#{T;w!RQVE?y=1sr3|sPMD9)N%e3}Udh(g71$PK%h_wiEC*ljskHfeO_0WyDtMCB#9!OC618`&M(tWe+$#;Q zwW5+E)uP6qb?^BM*yY!^-YD_wRr`Kc!3j20+Zrbhv+Pl??c5E1ik{!W(bklU_6!$X o#ISE~RG={H{+%3bl>?-3)pN}1;o7&owu2jpa1{> diff --git a/nbproject/project.properties b/nbproject/project.properties index d1a9fce0..7d2fb23f 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -78,6 +78,7 @@ run.test.classpath=\ ${javac.test.classpath}:\ ${build.test.classes.dir} source.encoding=UTF-8 +source.reference.jcore.jar=../jcore/src/ source.reference.log4j-api-2.3.jar=/home/quix0r/MyProjects/JARs/log4j-api-2.3-sources.jar source.reference.log4j-core-2.3.jar=/home/quix0r/MyProjects/JARs/log4j-core-2.3-sources.jar src.dir=src diff --git a/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java b/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java index 89802a8b..e51b9420 100644 --- a/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java +++ b/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java @@ -17,19 +17,16 @@ package org.mxchange.addressbook.database.frontend.contact; import java.io.IOException; +import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.sql.SQLException; import java.text.MessageFormat; import java.util.Iterator; import java.util.Map; -import java.util.StringTokenizer; -import org.mxchange.addressbook.contact.book.BookContact; -import org.mxchange.addressbook.contact.user.UserContact; import org.mxchange.addressbook.database.contact.AddressbookContactDatabaseConstants; import org.mxchange.addressbook.exceptions.ContactAlreadyAddedException; import org.mxchange.addressbook.manager.contact.AddressbookContactManager; import org.mxchange.jcore.contact.Contact; -import org.mxchange.jcore.contact.Gender; import org.mxchange.jcore.criteria.searchable.SearchCriteria; import org.mxchange.jcore.criteria.searchable.SearchableCriteria; import org.mxchange.jcore.database.frontend.BaseDatabaseFrontend; @@ -110,9 +107,27 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp throw new ContactAlreadyAddedException(contact); } + // Clear dataset from previous usage + this.clearDataSet(); + + // Get field iterator + Iterator> iterator = contact.iterator(); + + // Iterate over all + while (iterator.hasNext()) { + // Get next field + Map.Entry field = iterator.next(); + + // Add it to data set + this.addToDataSet(field.getKey().getName(), field.getValue()); + } + // Then add it - this.getBackend().store((Storeable) contact); - } catch (final IOException | BadTokenException ex) { + Result result = this.doInsertDataSet(); + + // Debug message + this.getLogger().debug(MessageFormat.format("result={0}", result)); //NOI18N + } catch (final IOException | BadTokenException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) { // Abort here this.abortProgramWithException(ex); } @@ -123,6 +138,8 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp /** * Shuts down the database layer + * @throws java.sql.SQLException If an SQL error occurs + * @throws java.io.IOException If an IO error occurs */ @Override public void doShutdown () throws SQLException, IOException { @@ -147,9 +164,15 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp * @return Total contact count */ @Override - public int getContactsCount () throws SQLException { + public int getContactsCount () throws SQLException, IOException { // And deligate to backend - return this.getBackend().getTotalCount(); //NOI18N + return this.getBackend().getTotalRows(); //NOI18N + } + + @Override + public String getIdName () { + // Return id column + return AddressbookContactDatabaseConstants.COLUMN_ID; } /** @@ -281,10 +304,4 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp public Storeable toStoreable (final Map map) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { throw new UnsupportedOperationException("Not supported yet: map=" + map); } - - @Override - public String getIdName () { - // Return id column - return AddressbookContactDatabaseConstants.COLUMN_ID; - } } diff --git a/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactFrontend.java b/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactFrontend.java index 213575eb..d1c46b7a 100644 --- a/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactFrontend.java +++ b/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactFrontend.java @@ -44,9 +44,10 @@ public interface AddressbookContactFrontend extends DatabaseFrontend { * Some "getter" for total contacts count * * @return Total contacts count - * @throws java.sql.SQLException If any SQL error occurs + * @throws java.sql.SQLException If an SQL error occurs + * @throws java.io.IOException If an IO error occurs */ - public int getContactsCount () throws SQLException; + public int getContactsCount () throws SQLException, IOException; /** * Checks if given Contact is found diff --git a/src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java b/src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java index 3def29db..d928695d 100644 --- a/src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java +++ b/src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java @@ -683,11 +683,11 @@ public class AddressbookContactManager extends BaseManager implements Manageable // Abort here throw new NullPointerException("contact is null"); //NOI18N } - - // Debug message - /* NOISY-DEBUG: */ this.getLogger().debug(MessageFormat.format("Adding '{0}' '{1}' at pos '{2}' ...", contact.getFirstName(), contact.getFamilyName(), this.size())); //NOI18N try { - // Check if contact is found + // Debug message + /* NOISY-DEBUG: */ this.getLogger().debug(MessageFormat.format("Adding '{0}' '{1}' at pos '{2}' ...", contact.getFirstName(), contact.getFamilyName(), this.size())); //NOI18N + + // Check if contact is found if (this.getContactDatabase().isContactFound(contact)) { // Contact already added // @todo Do something here @@ -707,13 +707,8 @@ public class AddressbookContactManager extends BaseManager implements Manageable this.getLogger().trace("EXIT!"); //NOI18N } - /** - * Getter for size - * - * @return size of contact "book" - */ @Override - public final int size () { + public final int size () throws IOException { // Init size int size = -1; -- 2.39.5