]> git.mxchange.org Git - jcore.git/commitdiff
Added field lastNumRows() with a public getter
authorRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 21:38:54 +0000 (23:38 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 21:38:54 +0000 (23:38 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/database/frontend/BaseDatabaseFrontend.java
src/org/mxchange/jcore/database/frontend/DatabaseFrontend.java

index ca28543cea9b1bf96ea47506abc4cf18967de2a1..d2447e425b01573352533777e6244e5864a0bc6e 100644 (file)
@@ -43,6 +43,11 @@ public abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implement
         */
        private final Map<String, Object> 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;
+       }
 }
index ea1e36206fceaf3685b652b0777081b2359a6fe0..43069f42a4e699bf7911c74ba921543fd7afa321 100644 (file)
@@ -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 ();
 }