diff --git a/src/java/com/samskivert/jdbc/depot/DepotRepository.java b/src/java/com/samskivert/jdbc/depot/DepotRepository.java index 4cb9f8b..6c6c84b 100644 --- a/src/java/com/samskivert/jdbc/depot/DepotRepository.java +++ b/src/java/com/samskivert/jdbc/depot/DepotRepository.java @@ -143,6 +143,15 @@ public abstract class DepotRepository return _ctx.invoke(new FindOneQuery(_ctx, type, clauses)); } + /** + * A varargs version of {@link #findAll(Class,Collection)}. + */ + protected List findAll (Class type, QueryClause... clauses) + throws DatabaseException + { + return findAll(type, Arrays.asList(clauses)); + } + /** * Loads all persistent objects that match the specified clauses. * @@ -173,15 +182,6 @@ public abstract class DepotRepository new FindAllQuery.WithCache(_ctx, type, clauses)); } - /** - * A varargs version of {@link #findAll(Class,Collection)}. - */ - protected List findAll (Class type, QueryClause... clauses) - throws DatabaseException - { - return findAll(type, Arrays.asList(clauses)); - } - /** * Looks up and returns {@link Key} records for all rows that match the supplied query clauses. * @@ -193,6 +193,7 @@ public abstract class DepotRepository */ protected List> findAllKeys ( Class type, boolean forUpdate, QueryClause... clause) + throws DatabaseException { return findAllKeys(type, forUpdate, Arrays.asList(clause)); } @@ -208,6 +209,7 @@ public abstract class DepotRepository */ protected List> findAllKeys ( Class type, boolean forUpdate, Collection clauses) + throws DatabaseException { final List> keys = new ArrayList>(); final DepotMarshaller marsh = _ctx.getMarshaller(type);