public class InternalChangeQuery extends com.google.gerrit.index.query.InternalQuery<ChangeData>
Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.
public InternalChangeQuery setLimit(int n)
setLimit
in class com.google.gerrit.index.query.InternalQuery<ChangeData>
public InternalChangeQuery enforceVisibility(boolean enforce)
enforceVisibility
in class com.google.gerrit.index.query.InternalQuery<ChangeData>
public InternalChangeQuery setRequestedFields(Set<String> fields)
setRequestedFields
in class com.google.gerrit.index.query.InternalQuery<ChangeData>
public InternalChangeQuery noFields()
noFields
in class com.google.gerrit.index.query.InternalQuery<ChangeData>
public List<ChangeData> byKey(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> byLegacyChangeId(Change.Id id) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byLegacyChangeIds(Collection<Change.Id> ids) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byBranchKey(Branch.NameKey branch, Change.Key key) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byProject(Project.NameKey project) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byBranchOpen(Branch.NameKey branch) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byBranchNew(Branch.NameKey branch) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public Iterable<ChangeData> byCommitsOnBranchNotMerged(org.eclipse.jgit.lib.Repository repo, ReviewDb db, Branch.NameKey branch, Collection<String> hashes) throws com.google.gwtorm.server.OrmException, IOException
com.google.gwtorm.server.OrmException
IOException
public List<ChangeData> byProjectOpen(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> byCommit(String hash) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byProjectCommit(Project.NameKey project, org.eclipse.jgit.lib.ObjectId id) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byProjectCommit(Project.NameKey project, String hash) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byProjectCommits(Project.NameKey project, List<String> hashes) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byBranchCommit(String project, String branch, String hash) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeData> byBranchCommit(Branch.NameKey branch, String hash) 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(Project.NameKey project, Collection<String> groups) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException