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
This commit is contained in:
mdb
2006-09-19 23:56:49 +00:00
parent d2a1f87f5a
commit 7aa0c42d5f
@@ -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 extends Collection> T findAll (
String index, Comparable key, CollectionQuery<T> 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<T extends Collection>
extends Query<T>
{
public CollectionQuery (Key key) {
super(key);
}
public abstract T invoke (Connection conn) throws SQLException;
}