From 7643355f4c35e3db494c9040f67aed3823efa103 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 14 Apr 2008 15:47:43 +0000 Subject: Renamed overloaded slice fetch method to fetchSlice for clarity. --- src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorage.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/repo/jdbc') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorage.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorage.java index f9bac1f..39d5a5a 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorage.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorage.java @@ -649,7 +649,9 @@ class JDBCStorage extends StandardQueryFactory } @Override - public Cursor fetch(FilterValues values, long from, Long to) throws FetchException { + public Cursor fetchSlice(FilterValues values, long from, Long to) + throws FetchException + { if (to != null && (to - from) <= 0) { return EmptyCursor.the(); } @@ -660,17 +662,17 @@ class JDBCStorage extends StandardQueryFactory switch (option) { case NOT_SUPPORTED: default: - return super.fetch(values, from, to); + return super.fetchSlice(values, from, to); case LIMIT_ONLY: if (from > 0 || to == null) { - return super.fetch(values, from, to); + return super.fetchSlice(values, from, to); } select = prepareSelect(values, false); select = mSupportStrategy.buildSelectWithSlice(select, false, true); break; case OFFSET_ONLY: if (from <= 0) { - return super.fetch(values, from, to); + return super.fetchSlice(values, from, to); } select = prepareSelect(values, false); select = mSupportStrategy.buildSelectWithSlice(select, true, false); -- cgit v1.2.3