public abstract class AbstractChangeNotes<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractChangeNotes.Args |
static class |
AbstractChangeNotes.LoadHandle |
Modifier and Type | Field and Description |
---|---|
protected AbstractChangeNotes.Args |
args |
protected boolean |
autoRebuild |
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.reviewdb.client.Change.Id |
getChangeId() |
abstract com.google.gerrit.reviewdb.client.Project.NameKey |
getProjectName() |
protected abstract java.lang.String |
getRefName() |
org.eclipse.jgit.lib.ObjectId |
getRevision() |
T |
load() |
protected abstract void |
loadDefaults()
Load default values for any instance variables when NoteDb is disabled.
|
org.eclipse.jgit.lib.ObjectId |
loadRevision() |
protected abstract void |
onLoad(AbstractChangeNotes.LoadHandle handle)
Set up the metadata, parsing any state from the loaded revision.
|
protected AbstractChangeNotes.LoadHandle |
openHandle(org.eclipse.jgit.lib.Repository repo) |
protected AbstractChangeNotes.LoadHandle |
openHandle(org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.lib.ObjectId id) |
protected org.eclipse.jgit.lib.ObjectId |
readRef(org.eclipse.jgit.lib.Repository repo) |
T |
reload() |
protected T |
self() |
protected final AbstractChangeNotes.Args args
protected final boolean autoRebuild
public com.google.gerrit.reviewdb.client.Change.Id getChangeId()
public org.eclipse.jgit.lib.ObjectId getRevision()
public T load() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
protected org.eclipse.jgit.lib.ObjectId readRef(org.eclipse.jgit.lib.Repository repo) throws java.io.IOException
java.io.IOException
protected AbstractChangeNotes.LoadHandle openHandle(org.eclipse.jgit.lib.Repository repo) throws java.io.IOException
java.io.IOException
protected AbstractChangeNotes.LoadHandle openHandle(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId id)
public T reload() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public org.eclipse.jgit.lib.ObjectId loadRevision() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
protected abstract void loadDefaults()
public abstract com.google.gerrit.reviewdb.client.Project.NameKey getProjectName()
protected abstract java.lang.String getRefName()
protected abstract void onLoad(AbstractChangeNotes.LoadHandle handle) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
protected final T self()