From 34e3d21195571bd80d7e60b366dd0bc817488970 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 8 Sep 2006 23:27:05 +0000 Subject: Add method to clear cached executor reference. --- src/main/java/com/amazon/carbonado/qe/StandardQuery.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/amazon/carbonado/qe') diff --git a/src/main/java/com/amazon/carbonado/qe/StandardQuery.java b/src/main/java/com/amazon/carbonado/qe/StandardQuery.java index 3f48efa..7304828 100644 --- a/src/main/java/com/amazon/carbonado/qe/StandardQuery.java +++ b/src/main/java/com/amazon/carbonado/qe/StandardQuery.java @@ -350,6 +350,15 @@ public abstract class StandardQuery extends AbstractQuery return values; } + /** + * Clears any cached reference to a query executor. The next time this + * Query is used, it will get an executor from getExecutor and cache a + * reference to it. + */ + protected void clearExecutorReference() { + mExecutor = null; + } + /** * Return the root Storage object that the query is operating on. */ @@ -364,7 +373,7 @@ public abstract class StandardQuery extends AbstractQuery protected abstract Transaction enterTransactionForDelete(IsolationLevel level); /** - * Return a new or cached executor. + * Return a new or cached query executor. * * @param values optional values object, defaults to open filter if null * @param orderings order-by properties, never null -- cgit v1.2.3