From be2f2619a36ad6f037cf4adaae77b8b93adffd39 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 27 Aug 2015 23:38:54 +0200 Subject: [PATCH] =?utf8?q?Added=20field=20lastNumRows()=20with=20a=20publi?= =?utf8?q?c=20getter=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../frontend/BaseDatabaseFrontend.java | 25 +++++++++++++++++++ .../database/frontend/DatabaseFrontend.java | 7 ++++++ 2 files changed, 32 insertions(+) diff --git a/src/org/mxchange/jcore/database/frontend/BaseDatabaseFrontend.java b/src/org/mxchange/jcore/database/frontend/BaseDatabaseFrontend.java index ca28543..d2447e4 100644 --- a/src/org/mxchange/jcore/database/frontend/BaseDatabaseFrontend.java +++ b/src/org/mxchange/jcore/database/frontend/BaseDatabaseFrontend.java @@ -43,6 +43,11 @@ public abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implement */ private final Map dataset; + /** + * Last num rows + */ + private int lastNumRows = 0; + /** * No instances from this class */ @@ -175,4 +180,24 @@ public abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implement // Trace message this.getLogger().trace("EXIT!"); //NOI18N } + + /** + * Setter for last num rows + * + * @param lastNumRows + */ + protected final void setLastNumRows (final int lastNumRows) { + // Set it here + this.lastNumRows = lastNumRows; + } + + /** + * Getter for last num rows + * + * @return Last num rows + */ + @Override + public final int getLastNumRows () { + return this.lastNumRows; + } } diff --git a/src/org/mxchange/jcore/database/frontend/DatabaseFrontend.java b/src/org/mxchange/jcore/database/frontend/DatabaseFrontend.java index ea1e362..43069f4 100644 --- a/src/org/mxchange/jcore/database/frontend/DatabaseFrontend.java +++ b/src/org/mxchange/jcore/database/frontend/DatabaseFrontend.java @@ -92,4 +92,11 @@ public interface DatabaseFrontend extends FrameworkInterface { * @return Name of id column */ public String getIdName (); + + /** + * Getter for last num rows + * + * @return Last num rows + */ + public int getLastNumRows (); } -- 2.39.5