diff --git a/src/java/com/samskivert/depot/DepotRepository.java b/src/java/com/samskivert/depot/DepotRepository.java index 82a96e5..c85ab46 100644 --- a/src/java/com/samskivert/depot/DepotRepository.java +++ b/src/java/com/samskivert/depot/DepotRepository.java @@ -362,6 +362,18 @@ public abstract class DepotRepository return findAll(type, CacheStrategy.BEST, clauses); } + /** + * A varargs version of {@link #findAll(Class,CacheStrategy,Collection)}. + * + * @throws DatabaseException if any problem is encountered communicating with the database. + */ + protected List findAll ( + Class type, CacheStrategy strategy, QueryClause... clauses) + throws DatabaseException + { + return findAll(type, strategy, Arrays.asList(clauses)); + } + /** * Loads all persistent objects that match the specified clauses. *