Add all() methods to more ReviewDb access classes
Doesn't require a schema upgrade, as this is just more @Query methods, not even backed by an index. Change-Id: I47af680feada44d05f8014e1898e9e92f5f84269
This commit is contained in:
@@ -65,4 +65,7 @@ public interface PatchLineCommentAccess extends
|
||||
+ "' AND author = ?")
|
||||
ResultSet<PatchLineComment> draftByAuthor(Account.Id author)
|
||||
throws OrmException;
|
||||
|
||||
@Query
|
||||
ResultSet<PatchLineComment> all() throws OrmException;
|
||||
}
|
||||
|
||||
@@ -29,4 +29,7 @@ public interface PatchSetAccess extends Access<PatchSet, PatchSet.Id> {
|
||||
|
||||
@Query("WHERE id.changeId = ? ORDER BY id.patchSetId")
|
||||
ResultSet<PatchSet> byChange(Change.Id id) throws OrmException;
|
||||
|
||||
@Query
|
||||
ResultSet<PatchSet> all() throws OrmException;
|
||||
}
|
||||
|
||||
@@ -39,4 +39,7 @@ public interface PatchSetApprovalAccess extends
|
||||
@Query("WHERE key.patchSetId = ? AND key.accountId = ?")
|
||||
ResultSet<PatchSetApproval> byPatchSetUser(PatchSet.Id patchSet,
|
||||
Account.Id account) throws OrmException;
|
||||
|
||||
@Query
|
||||
ResultSet<PatchSetApproval> all() throws OrmException;
|
||||
}
|
||||
|
||||
@@ -362,6 +362,11 @@ public class ReviewDbWrapper implements ReviewDb {
|
||||
Account.Id account) throws OrmException {
|
||||
return delegate.byPatchSetUser(patchSet, account);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultSet<PatchSetApproval> all() throws OrmException {
|
||||
return delegate.all();
|
||||
}
|
||||
}
|
||||
|
||||
public static class ChangeMessageAccessWrapper
|
||||
@@ -559,6 +564,10 @@ public class ReviewDbWrapper implements ReviewDb {
|
||||
return delegate.byChange(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultSet<PatchSet> all() throws OrmException {
|
||||
return delegate.all();
|
||||
}
|
||||
}
|
||||
|
||||
public static class PatchLineCommentAccessWrapper
|
||||
@@ -695,5 +704,10 @@ public class ReviewDbWrapper implements ReviewDb {
|
||||
throws OrmException {
|
||||
return delegate.draftByAuthor(author);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultSet<PatchLineComment> all() throws OrmException {
|
||||
return delegate.all();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user