From: Roland Haeder Date: Thu, 27 Aug 2015 21:38:54 +0000 (+0200) Subject: Added field lastNumRows() with a public getter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be2f2619a36ad6f037cf4adaae77b8b93adffd39;p=jcore.git Added field lastNumRows() with a public getter Signed-off-by:Roland Häder --- 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 (); }