]> git.mxchange.org Git - jcore.git/commitdiff
Added getStoreableAtRow() which is a more generalized approach than e.g. readSingleCo...
authorRoland Haeder <roland@mxchange.org>
Mon, 24 Aug 2015 11:55:21 +0000 (13:55 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 24 Aug 2015 11:55:21 +0000 (13:55 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

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

index 59e59fbf5289055be60a53061e53d41424998af1..ea1e36206fceaf3685b652b0777081b2359a6fe0 100644 (file)
@@ -49,6 +49,15 @@ public interface DatabaseFrontend extends FrameworkInterface {
         */
        public Result<? extends Storeable> getResultFromSet (final ResultSet resultSet) throws SQLException;
 
+       /**
+        * Returns a Storeable instance from given row index. Value 0 means first
+        * row and so on. Row index below zero results in an exception.
+        *
+        * @param rowIndex Row index too look for
+        * @return A Storeable instance
+        */
+       public Storeable getStoreableAtRow (final int rowIndex);
+
        /**
         * Name of used database table, handled over to backend
         *