Package com.google.gerrit.server.git
Class DelegateRefDatabase
- java.lang.Object
-
- org.eclipse.jgit.lib.RefDatabase
-
- com.google.gerrit.server.git.DelegateRefDatabase
-
- Direct Known Subclasses:
PermissionAwareReadOnlyRefDatabase
public class DelegateRefDatabase extends org.eclipse.jgit.lib.RefDatabaseWrapper aroundRefDatabasethat delegates all calls to the wrappedRepository'sRefDatabase.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcreate()org.eclipse.jgit.lib.RefexactRef(String name)List<org.eclipse.jgit.lib.Ref>getAdditionalRefs()Map<String,org.eclipse.jgit.lib.Ref>getRefs(String prefix)Set<org.eclipse.jgit.lib.Ref>getTipsWithSha1(org.eclipse.jgit.lib.ObjectId id)booleanisNameConflicting(String name)org.eclipse.jgit.lib.RefRenamenewRename(String fromName, String toName)org.eclipse.jgit.lib.RefUpdatenewUpdate(String name, boolean detach)org.eclipse.jgit.lib.Refpeel(org.eclipse.jgit.lib.Ref ref)-
Methods inherited from class org.eclipse.jgit.lib.RefDatabase
exactRef, findRef, findRef, firstExactRef, getConflictingNames, getRef, getRefs, getRefsByPrefix, getRefsByPrefix, getRefsByPrefixWithExclusions, hasFastTipsWithSha1, hasRefs, hasVersioning, newBatchUpdate, performsAtomicTransactions, refresh
-
-
-
-
Method Detail
-
create
public void create() throws IOException- Specified by:
createin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
close
public void close()
- Specified by:
closein classorg.eclipse.jgit.lib.RefDatabase
-
isNameConflicting
public boolean isNameConflicting(String name) throws IOException
- Specified by:
isNameConflictingin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
newUpdate
public org.eclipse.jgit.lib.RefUpdate newUpdate(String name, boolean detach) throws IOException
- Specified by:
newUpdatein classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
newRename
public org.eclipse.jgit.lib.RefRename newRename(String fromName, String toName) throws IOException
- Specified by:
newRenamein classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
exactRef
public org.eclipse.jgit.lib.Ref exactRef(String name) throws IOException
- Specified by:
exactRefin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getRefs
public Map<String,org.eclipse.jgit.lib.Ref> getRefs(String prefix) throws IOException
- Specified by:
getRefsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getTipsWithSha1
@NonNull public Set<org.eclipse.jgit.lib.Ref> getTipsWithSha1(org.eclipse.jgit.lib.ObjectId id) throws IOException
- Overrides:
getTipsWithSha1in classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getAdditionalRefs
public List<org.eclipse.jgit.lib.Ref> getAdditionalRefs() throws IOException
- Specified by:
getAdditionalRefsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
peel
public org.eclipse.jgit.lib.Ref peel(org.eclipse.jgit.lib.Ref ref) throws IOException- Specified by:
peelin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
-