]> git.mxchange.org Git - jcore.git/commitdiff
Organized members
authorRoland Haeder <roland@mxchange.org>
Mon, 17 Aug 2015 07:07:13 +0000 (09:07 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 17 Aug 2015 07:07:13 +0000 (09:07 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java

index a0a17c3dfb2b68018f766868295bbd207eff4f52..7cf84b2127b449ad56716eb7d85fb4f4847f8365 100644 (file)
@@ -315,6 +315,27 @@ public class MySqlDatabaseBackend extends BaseDatabaseBackend implements Databas
                this.getLogger().trace("EXIT!"); //NOI18N
        }
 
+       @Override
+       public Long getTotalRows () throws IOException, SQLException {
+               // Trace message
+               this.getLogger().trace("CALLED!");
+               
+               // Execute query
+               ResultSet set = this.totalRows.executeQuery();
+               
+               // Rewind to beginning
+               set.beforeFirst();
+               
+               // Get long
+               Long count = set.getLong("cnt");
+               
+               // Trace message
+               this.getLogger().trace("count=" + count + " - EXIT!");
+               
+               // Return it
+               return count;
+       }
+
        /**
         * Some "getter" for a prepared statement with inserted values
         *
@@ -395,25 +416,4 @@ public class MySqlDatabaseBackend extends BaseDatabaseBackend implements Databas
                // Return it
                return statement;
        }
-
-       @Override
-       public Long getTotalRows () throws IOException, SQLException {
-               // Trace message
-               this.getLogger().trace("CALLED!");
-
-               // Execute query
-               ResultSet set = this.totalRows.executeQuery();
-
-               // Rewind to beginning
-               set.beforeFirst();
-
-               // Get long
-               Long count = set.getLong("cnt");
-
-               // Trace message
-               this.getLogger().trace("count=" + count + " - EXIT!");
-
-               // Return it
-               return count;
-       }
 }