From: Roland Haeder Date: Mon, 17 Aug 2015 07:07:13 +0000 (+0200) Subject: Organized members X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=54fc52f07b147e0a11da2e3f043a89aa2899b02e;p=jcore.git Organized members Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java b/src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java index a0a17c3..7cf84b2 100644 --- a/src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java +++ b/src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java @@ -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; - } }