Package com.google.gerrit.server
Class ChangeFinder
- java.lang.Object
-
- com.google.gerrit.server.ChangeFinder
-
public class ChangeFinder extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ChangeNotes>
find(Change.Id id)
List<ChangeNotes>
find(String id)
Find changes matching the given identifier.ChangeNotes
findOne(Change.Id id)
ChangeNotes
findOne(String id)
static com.google.inject.Module
module()
-
-
-
Method Detail
-
module
public static com.google.inject.Module module()
-
findOne
public ChangeNotes findOne(String id) throws com.google.gwtorm.server.OrmException
- Throws:
com.google.gwtorm.server.OrmException
-
find
public List<ChangeNotes> find(String id) throws com.google.gwtorm.server.OrmException
Find changes matching the given identifier.- Parameters:
id
- change identifier, either a numeric ID, a Change-Id, or project~branch~id triplet.- Returns:
- possibly-empty list of notes for all matching changes; may or may not be visible.
- Throws:
com.google.gwtorm.server.OrmException
- if an error occurred querying the database.
-
findOne
public ChangeNotes findOne(Change.Id id) throws com.google.gwtorm.server.OrmException
- Throws:
com.google.gwtorm.server.OrmException
-
find
public List<ChangeNotes> find(Change.Id id) throws com.google.gwtorm.server.OrmException
- Throws:
com.google.gwtorm.server.OrmException
-
-