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> |
allSubmitted() |
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> |
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> |
byProjectOpen(com.google.gerrit.reviewdb.client.Project.NameKey project) |
List<ChangeData> |
byTopicOpen(String topic) |
InternalChangeQuery |
enforceVisibility(boolean enforce) |
List<ChangeData> |
query(Predicate<ChangeData> p) |
InternalChangeQuery |
setLimit(int n) |
List<ChangeData> |
submitted(com.google.gerrit.reviewdb.client.Branch.NameKey branch) |
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> submitted(com.google.gerrit.reviewdb.client.Branch.NameKey branch) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> allSubmitted() 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 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> query(Predicate<ChangeData> p) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException