From: Roland Haeder Date: Mon, 24 Aug 2015 11:55:21 +0000 (+0200) Subject: Added getStoreableAtRow() which is a more generalized approach than e.g. readSingleCo... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=32f4adf735b083de293b8856d74ad809883deac1;p=jcore.git Added getStoreableAtRow() which is a more generalized approach than e.g. readSingleContact() Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/database/frontend/DatabaseFrontend.java b/src/org/mxchange/jcore/database/frontend/DatabaseFrontend.java index 59e59fb..ea1e362 100644 --- a/src/org/mxchange/jcore/database/frontend/DatabaseFrontend.java +++ b/src/org/mxchange/jcore/database/frontend/DatabaseFrontend.java @@ -49,6 +49,15 @@ public interface DatabaseFrontend extends FrameworkInterface { */ public Result 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 *