public class InternalChangeQuery
extends java.lang.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 |
---|---|
java.util.List<ChangeData> |
byBranchKey(com.google.gerrit.reviewdb.client.Branch.NameKey branch,
com.google.gerrit.reviewdb.client.Change.Key key) |
java.util.List<ChangeData> |
byBranchOpen(com.google.gerrit.reviewdb.client.Branch.NameKey branch) |
java.util.List<ChangeData> |
byCommit(org.eclipse.jgit.lib.ObjectId id) |
java.lang.Iterable<ChangeData> |
byCommitsOnBranchNotMerged(org.eclipse.jgit.lib.Repository repo,
com.google.gerrit.reviewdb.server.ReviewDb db,
com.google.gerrit.reviewdb.client.Branch.NameKey branch,
java.util.List<java.lang.String> hashes) |
java.util.List<ChangeData> |
byKey(com.google.gerrit.reviewdb.client.Change.Key key) |
java.util.List<ChangeData> |
byKeyPrefix(java.lang.String prefix) |
java.util.List<ChangeData> |
byProject(com.google.gerrit.reviewdb.client.Project.NameKey project) |
java.util.List<ChangeData> |
byProjectCommits(com.google.gerrit.reviewdb.client.Project.NameKey project,
java.util.List<java.lang.String> hashes) |
java.util.List<ChangeData> |
byProjectGroups(com.google.gerrit.reviewdb.client.Project.NameKey project,
java.util.Collection<java.lang.String> groups) |
java.util.List<ChangeData> |
byProjectOpen(com.google.gerrit.reviewdb.client.Project.NameKey project) |
java.util.List<ChangeData> |
bySubmissionId(java.lang.String cs) |
java.util.List<ChangeData> |
byTopicOpen(java.lang.String topic) |
InternalChangeQuery |
enforceVisibility(boolean enforce) |
java.util.List<ChangeData> |
query(Predicate<ChangeData> p) |
InternalChangeQuery |
setLimit(int n) |
public InternalChangeQuery setLimit(int n)
public InternalChangeQuery enforceVisibility(boolean enforce)
public java.util.List<ChangeData> byKey(com.google.gerrit.reviewdb.client.Change.Key key) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<ChangeData> byKeyPrefix(java.lang.String prefix) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.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 java.util.List<ChangeData> byProject(com.google.gerrit.reviewdb.client.Project.NameKey project) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<ChangeData> byBranchOpen(com.google.gerrit.reviewdb.client.Branch.NameKey branch) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.lang.Iterable<ChangeData> byCommitsOnBranchNotMerged(org.eclipse.jgit.lib.Repository repo, com.google.gerrit.reviewdb.server.ReviewDb db, com.google.gerrit.reviewdb.client.Branch.NameKey branch, java.util.List<java.lang.String> hashes) throws com.google.gwtorm.server.OrmException, java.io.IOException
com.google.gwtorm.server.OrmException
java.io.IOException
public java.util.List<ChangeData> byProjectOpen(com.google.gerrit.reviewdb.client.Project.NameKey project) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<ChangeData> byTopicOpen(java.lang.String topic) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<ChangeData> byCommit(org.eclipse.jgit.lib.ObjectId id) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<ChangeData> byProjectCommits(com.google.gerrit.reviewdb.client.Project.NameKey project, java.util.List<java.lang.String> hashes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<ChangeData> bySubmissionId(java.lang.String cs) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<ChangeData> byProjectGroups(com.google.gerrit.reviewdb.client.Project.NameKey project, java.util.Collection<java.lang.String> groups) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<ChangeData> query(Predicate<ChangeData> p) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException