From 2fd7b3fd77c8141f7fb21d2bd86eb839fa55ef6f Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 13 Oct 2006 21:09:10 +0000 Subject: Pass the internal query executor along when "with" is called, as an optimization. --- .../java/com/amazon/carbonado/repo/jdbc/JDBCStorage.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/repo') 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 b7a732e..df61ecf 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorage.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorage.java @@ -249,7 +249,7 @@ class JDBCStorage extends StandardQueryFactory } protected StandardQuery createQuery(FilterValues values, OrderingList ordering) { - return new JDBCQuery(values, ordering); + return new JDBCQuery(values, ordering, null); } public S instantiate(ResultSet rs) throws SQLException { @@ -611,8 +611,8 @@ class JDBCStorage extends StandardQueryFactory } private class JDBCQuery extends StandardQuery { - JDBCQuery(FilterValues values, OrderingList ordering) { - super(values, ordering); + JDBCQuery(FilterValues values, OrderingList ordering, QueryExecutor executor) { + super(values, ordering, executor); } @Override @@ -642,8 +642,11 @@ class JDBCStorage extends StandardQueryFactory return JDBCStorage.this.mExecutorFactory; } - protected StandardQuery newInstance(FilterValues values, OrderingList ordering) { - return new JDBCQuery(values, ordering); + protected StandardQuery newInstance(FilterValues values, + OrderingList ordering, + QueryExecutor executor) + { + return new JDBCQuery(values, ordering, executor); } } -- cgit v1.2.3