From 475200849ce3c8928f6f6def74c7aa5a77eed897 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 21 Nov 2008 03:19:44 +0000 Subject: [PATCH] Extract query and record cache tracking into parent. --- .../com/samskivert/depot/FindAllQuery.java | 29 +++++++------------ 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/src/java/com/samskivert/depot/FindAllQuery.java b/src/java/com/samskivert/depot/FindAllQuery.java index 16ea025..8584a5b 100644 --- a/src/java/com/samskivert/depot/FindAllQuery.java +++ b/src/java/com/samskivert/depot/FindAllQuery.java @@ -105,6 +105,7 @@ public abstract class FindAllQuery extends Query extends Query extends Query> _keys; protected Map, T> _entities = Maps.newHashMap(); protected Set> _fetchKeys = Sets.newHashSet(); - protected int _cachedRecords, _uncachedRecords; } /** @@ -212,6 +203,7 @@ public abstract class FindAllQuery extends Query extends Query type) @@ -349,4 +339,5 @@ public abstract class FindAllQuery extends Query _marsh; protected Class _type; protected SelectClause _select; + protected int _cachedQueries, _uncachedQueries, _cachedRecords, _uncachedRecords; }