From 7aa0c42d5f9a74206c64e3a362983151b66f419c Mon Sep 17 00:00:00 2001 From: mdb Date: Tue, 19 Sep 2006 23:56:49 +0000 Subject: [PATCH] Collection queries will be invoked directly, though things will likely evolve once we implement caching. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1917 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../samskivert/jdbc/depot/DepotRepository.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/java/com/samskivert/jdbc/depot/DepotRepository.java b/src/java/com/samskivert/jdbc/depot/DepotRepository.java index bb7f5206..2fbbe22f 100644 --- a/src/java/com/samskivert/jdbc/depot/DepotRepository.java +++ b/src/java/com/samskivert/jdbc/depot/DepotRepository.java @@ -104,17 +104,6 @@ public class DepotRepository }); } - /** - * Executes and caches the supplied collection query if the supplied key is - * not in the cache, returns the existing cached values otherwise. - */ - protected T findAll ( - String index, Comparable key, CollectionQuery query) - throws PersistenceException - { - return null; - } - /** * Inserts the supplied persistent object into the database, assigning its * primary key (if it has one) in the process. @@ -535,7 +524,12 @@ public class DepotRepository } protected static abstract class CollectionQuery + extends Query { + public CollectionQuery (Key key) { + super(key); + } + public abstract T invoke (Connection conn) throws SQLException; }