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.RefDatabase
Wrapper aroundRefDatabase
that delegates all calls to the wrappedRefDatabase
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
create()
org.eclipse.jgit.lib.Ref
exactRef(String name)
List<org.eclipse.jgit.lib.Ref>
getAdditionalRefs()
Map<String,org.eclipse.jgit.lib.Ref>
getRefs(String prefix)
boolean
isNameConflicting(String name)
org.eclipse.jgit.lib.RefRename
newRename(String fromName, String toName)
org.eclipse.jgit.lib.RefUpdate
newUpdate(String name, boolean detach)
org.eclipse.jgit.lib.Ref
peel(org.eclipse.jgit.lib.Ref ref)
-
-
-
Method Detail
-
create
public void create() throws IOException
- Specified by:
create
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
close
public void close()
- Specified by:
close
in classorg.eclipse.jgit.lib.RefDatabase
-
isNameConflicting
public boolean isNameConflicting(String name) throws IOException
- Specified by:
isNameConflicting
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
newUpdate
public org.eclipse.jgit.lib.RefUpdate newUpdate(String name, boolean detach) throws IOException
- Specified by:
newUpdate
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
newRename
public org.eclipse.jgit.lib.RefRename newRename(String fromName, String toName) throws IOException
- Specified by:
newRename
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
exactRef
public org.eclipse.jgit.lib.Ref exactRef(String name) throws IOException
- Specified by:
exactRef
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getRefs
public Map<String,org.eclipse.jgit.lib.Ref> getRefs(String prefix) throws IOException
- Specified by:
getRefs
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getAdditionalRefs
public List<org.eclipse.jgit.lib.Ref> getAdditionalRefs() throws IOException
- Specified by:
getAdditionalRefs
in 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:
peel
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
-