Class InternalChangeQuery


  • public class InternalChangeQuery
    extends com.google.gerrit.index.query.InternalQuery<ChangeData>
    Query wrapper for the change index.

    Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.

    • Method Detail

      • setLimit

        public InternalChangeQuery setLimit​(int n)
        Overrides:
        setLimit in class com.google.gerrit.index.query.InternalQuery<ChangeData>
      • enforceVisibility

        public InternalChangeQuery enforceVisibility​(boolean enforce)
        Overrides:
        enforceVisibility in class com.google.gerrit.index.query.InternalQuery<ChangeData>
      • byKey

        public List<ChangeData> byKey​(Change.Key key)
                               throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byKeyPrefix

        public List<ChangeData> byKeyPrefix​(String prefix)
                                     throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byLegacyChangeId

        public List<ChangeData> byLegacyChangeId​(Change.Id id)
                                          throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byLegacyChangeIds

        public List<ChangeData> byLegacyChangeIds​(Collection<Change.Id> ids)
                                           throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byProject

        public List<ChangeData> byProject​(Project.NameKey project)
                                   throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byBranchOpen

        public List<ChangeData> byBranchOpen​(Branch.NameKey branch)
                                      throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byBranchNew

        public List<ChangeData> byBranchNew​(Branch.NameKey branch)
                                     throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byProjectOpen

        public List<ChangeData> byProjectOpen​(Project.NameKey project)
                                       throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byTopicOpen

        public List<ChangeData> byTopicOpen​(String topic)
                                     throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byCommit

        public List<ChangeData> byCommit​(org.eclipse.jgit.lib.ObjectId id)
                                  throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byCommit

        public List<ChangeData> byCommit​(String hash)
                                  throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byProjectCommit

        public List<ChangeData> byProjectCommit​(Project.NameKey project,
                                                org.eclipse.jgit.lib.ObjectId id)
                                         throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byProjectCommit

        public List<ChangeData> byProjectCommit​(Project.NameKey project,
                                                String hash)
                                         throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byProjectCommits

        public List<ChangeData> byProjectCommits​(Project.NameKey project,
                                                 List<String> hashes)
                                          throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byBranchCommit

        public List<ChangeData> byBranchCommit​(String project,
                                               String branch,
                                               String hash)
                                        throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • byBranchCommit

        public List<ChangeData> byBranchCommit​(Branch.NameKey branch,
                                               String hash)
                                        throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • bySubmissionId

        public List<ChangeData> bySubmissionId​(String cs)
                                        throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException