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 around
RefDatabase
that delegates all calls to the wrapped Repository
's
RefDatabase
.-
Field Summary
Fields inherited from class org.eclipse.jgit.lib.RefDatabase
additionalRefsNames, ALL, MAX_SYMBOLIC_REF_DEPTH, SEARCH_PATH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
create()
org.eclipse.jgit.lib.Ref
org.eclipse.jgit.lib.Ref
firstExactRef
(String... refs) List<org.eclipse.jgit.lib.Ref>
getConflictingNames
(String name) protected org.eclipse.jgit.lib.Repository
List<org.eclipse.jgit.lib.Ref>
getRefs()
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
boolean
hasRefs()
boolean
boolean
isNameConflicting
(String name) org.eclipse.jgit.lib.BatchRefUpdate
org.eclipse.jgit.lib.RefRename
org.eclipse.jgit.lib.RefUpdate
org.eclipse.jgit.lib.Ref
peel
(org.eclipse.jgit.lib.Ref ref) boolean
void
refresh()
Methods inherited from class org.eclipse.jgit.lib.RefDatabase
findRef, findRef, getRef
-
Constructor Details
-
DelegateRefDatabase
public DelegateRefDatabase(org.eclipse.jgit.lib.Repository delegate)
-
-
Method Details
-
create
- 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
- Specified by:
isNameConflicting
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getConflictingNames
- Overrides:
getConflictingNames
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
newUpdate
- Specified by:
newUpdate
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
newRename
- 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
- Specified by:
exactRef
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
exactRef
- Overrides:
exactRef
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
firstExactRef
- Overrides:
firstExactRef
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getRefs
- Overrides:
getRefs
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getRefs
- Specified by:
getRefs
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getRefsByPrefix
- 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
- 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
- Overrides:
hasFastTipsWithSha1
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
hasRefs
- Overrides:
hasRefs
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
getAdditionalRefs
- Specified by:
getAdditionalRefs
in classorg.eclipse.jgit.lib.RefDatabase
- Throws:
IOException
-
peel
- 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()
-