public class InternalChangeQuery extends Object
By default, visibility of returned changes is not enforced (unlike in QueryProcessor
). The methods in this class are not typically used by
user-facing paths, but rather by internal callers that need to process all
matching results.
Modifier and Type | Method and Description |
---|---|
List<ChangeData> |
byBranchKey(com.google.gerrit.reviewdb.client.Branch.NameKey branch,
com.google.gerrit.reviewdb.client.Change.Key key) |
List<ChangeData> |
byBranchOpen(com.google.gerrit.reviewdb.client.Branch.NameKey branch) |
List<ChangeData> |
byCommit(org.eclipse.jgit.lib.ObjectId id) |
Iterable<ChangeData> |
byCommitsOnBranchNotMerged(org.eclipse.jgit.lib.Repository repo,
com.google.gerrit.reviewdb.server.ReviewDb db,
com.google.gerrit.reviewdb.client.Branch.NameKey branch,
List<String> hashes) |
List<ChangeData> |
byKey(com.google.gerrit.reviewdb.client.Change.Key key) |
List<ChangeData> |
byKeyPrefix(String prefix) |
List<ChangeData> |
byProject(com.google.gerrit.reviewdb.client.Project.NameKey project) |
List<ChangeData> |
byProjectCommits(com.google.gerrit.reviewdb.client.Project.NameKey project,
List<String> hashes) |
List<ChangeData> |
byProjectGroups(com.google.gerrit.reviewdb.client.Project.NameKey project,
Collection<String> groups) |
List<ChangeData> |
byProjectOpen(com.google.gerrit.reviewdb.client.Project.NameKey project) |
List<ChangeData> |
bySubmissionId(String cs) |
List<ChangeData> |
byTopicOpen(String topic) |
InternalChangeQuery |
enforceVisibility(boolean enforce) |
List<ChangeData> |
query(Predicate<ChangeData> p) |
InternalChangeQuery |
setLimit(int n) |
public InternalChangeQuery setLimit(int n)
public InternalChangeQuery enforceVisibility(boolean enforce)
public List<ChangeData> byKey(com.google.gerrit.reviewdb.client.Change.Key key) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byKeyPrefix(String prefix) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byBranchKey(com.google.gerrit.reviewdb.client.Branch.NameKey branch, com.google.gerrit.reviewdb.client.Change.Key key) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byProject(com.google.gerrit.reviewdb.client.Project.NameKey project) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byBranchOpen(com.google.gerrit.reviewdb.client.Branch.NameKey branch) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public Iterable<ChangeData> byCommitsOnBranchNotMerged(org.eclipse.jgit.lib.Repository repo, com.google.gerrit.reviewdb.server.ReviewDb db, com.google.gerrit.reviewdb.client.Branch.NameKey branch, List<String> hashes) throws com.google.gwtorm.server.OrmException, IOException
com.google.gwtorm.server.OrmException
IOException
public List<ChangeData> byProjectOpen(com.google.gerrit.reviewdb.client.Project.NameKey project) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byTopicOpen(String topic) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byCommit(org.eclipse.jgit.lib.ObjectId id) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byProjectCommits(com.google.gerrit.reviewdb.client.Project.NameKey project, List<String> hashes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> bySubmissionId(String cs) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byProjectGroups(com.google.gerrit.reviewdb.client.Project.NameKey project, Collection<String> groups) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> query(Predicate<ChangeData> p) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException