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 wrappedRepository
'sRefDatabase
.
-
-
Constructor Summary
Constructors Constructor Description DelegateRefDatabase(org.eclipse.jgit.lib.Repository delegate)
-
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)
Map<String,org.eclipse.jgit.lib.Ref>
exactRef(String... refs)
org.eclipse.jgit.lib.Ref
firstExactRef(String... refs)
List<org.eclipse.jgit.lib.Ref>
getAdditionalRefs()
Collection<String>
getConflictingNames(String name)
protected org.eclipse.jgit.lib.Repository
getDelegate()
List<org.eclipse.jgit.lib.Ref>
getRefs()
Map<String,org.eclipse.jgit.lib.Ref>
getRefs(String prefix)
List<org.eclipse.jgit.lib.Ref>
getRefsByPrefix(String prefix)
List<org.eclipse.jgit.lib.Ref>
getRefsByPrefix(String... prefixes)
List<org.eclipse.jgit.lib.Ref>
getRefsByPrefixWithExclusions(String include, Set<String> excludes)
Set<org.eclipse.jgit.lib.Ref>
getTipsWithSha1(org.eclipse.jgit.lib.ObjectId id)
boolean
hasFastTipsWithSha1()
boolean
hasRefs()
boolean
hasVersioning()
boolean
isNameConflicting(String name)
org.eclipse.jgit.lib.BatchRefUpdate
newBatchUpdate()
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)
boolean
performsAtomicTransactions()
void
refresh()
-
-
-
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
-
hasVersioning
public boolean hasVersioning()
- Overrides:
hasVersioning
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
-
getConflictingNames
public Collection<String> getConflictingNames(String name) throws IOException
- Overrides:
getConflictingNames
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
-
newBatchUpdate
public org.eclipse.jgit.lib.BatchRefUpdate newBatchUpdate()
- Overrides:
newBatchUpdate
in classorg.eclipse.jgit.lib.RefDatabase
-
performsAtomicTransactions
public boolean performsAtomicTransactions()
- Overrides:
performsAtomicTransactions
in classorg.eclipse.jgit.lib.RefDatabase
-
exactRef
public org.eclipse.jgit.lib.Ref exactRef(String name) throws IOException
- Specified by:
exactRef
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
exactRef
public Map<String,org.eclipse.jgit.lib.Ref> exactRef(String... refs) throws IOException
- Overrides:
exactRef
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
firstExactRef
public org.eclipse.jgit.lib.Ref firstExactRef(String... refs) throws IOException
- Overrides:
firstExactRef
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getRefs
public List<org.eclipse.jgit.lib.Ref> getRefs() throws IOException
- Overrides:
getRefs
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
-
getRefsByPrefix
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefix(String prefix) throws IOException
- Overrides:
getRefsByPrefix
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getRefsByPrefixWithExclusions
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefixWithExclusions(String include, Set<String> excludes) throws IOException
- Overrides:
getRefsByPrefixWithExclusions
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getRefsByPrefix
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefix(String... prefixes) throws IOException
- Overrides:
getRefsByPrefix
in 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:
getTipsWithSha1
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
hasFastTipsWithSha1
public boolean hasFastTipsWithSha1() throws IOException
- Overrides:
hasFastTipsWithSha1
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
hasRefs
public boolean hasRefs() throws IOException
- Overrides:
hasRefs
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
-
refresh
public void refresh()
- Overrides:
refresh
in classorg.eclipse.jgit.lib.RefDatabase
-
getDelegate
protected org.eclipse.jgit.lib.Repository getDelegate()
-
-