We were one variation short.

This commit is contained in:
Michael Bayne
2009-05-28 21:29:51 +00:00
parent ed6eaae7b7
commit 5f6e4f80b4
@@ -362,6 +362,18 @@ public abstract class DepotRepository
return findAll(type, CacheStrategy.BEST, clauses); 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 <T extends PersistentRecord> List<T> findAll (
Class<T> type, CacheStrategy strategy, QueryClause... clauses)
throws DatabaseException
{
return findAll(type, strategy, Arrays.asList(clauses));
}
/** /**
* Loads all persistent objects that match the specified clauses. * Loads all persistent objects that match the specified clauses.
* *