From 54fc52f07b147e0a11da2e3f043a89aa2899b02e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 17 Aug 2015 09:07:13 +0200 Subject: [PATCH] =?utf8?q?Organized=20members=20Signed-off-by:Roland=20H?= =?utf8?q?=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../backend/mysql/MySqlDatabaseBackend.java | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) 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; - } } -- 2.39.5