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 TypeMethodDescriptionvoidclose()voidcreate()org.eclipse.jgit.lib.Reforg.eclipse.jgit.lib.ReffirstExactRef(String... refs) List<org.eclipse.jgit.lib.Ref> getConflictingNames(String name) protected org.eclipse.jgit.lib.Repositoryorg.eclipse.jgit.lib.ReflogReadergetReflogReader(String refName) org.eclipse.jgit.lib.ReflogReadergetReflogReader(org.eclipse.jgit.lib.Ref ref) 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) booleanbooleanhasRefs()booleanbooleanisNameConflicting(String name) org.eclipse.jgit.lib.BatchRefUpdateorg.eclipse.jgit.lib.RefRenameorg.eclipse.jgit.lib.RefUpdateorg.eclipse.jgit.lib.Refpeel(org.eclipse.jgit.lib.Ref ref) booleanvoidrefresh()Methods inherited from class org.eclipse.jgit.lib.RefDatabase
findRef, findRef, packRefs
-
Constructor Details
-
DelegateRefDatabase
public DelegateRefDatabase(org.eclipse.jgit.lib.Repository delegate)
-
-
Method Details
-
create
- Specified by:
createin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
close
public void close()- Specified by:
closein classorg.eclipse.jgit.lib.RefDatabase
-
hasVersioning
public boolean hasVersioning()- Overrides:
hasVersioningin classorg.eclipse.jgit.lib.RefDatabase
-
isNameConflicting
- Specified by:
isNameConflictingin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getConflictingNames
- Overrides:
getConflictingNamesin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
newUpdate
- Specified by:
newUpdatein classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
newRename
- Specified by:
newRenamein classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
newBatchUpdate
public org.eclipse.jgit.lib.BatchRefUpdate newBatchUpdate()- Overrides:
newBatchUpdatein classorg.eclipse.jgit.lib.RefDatabase
-
performsAtomicTransactions
public boolean performsAtomicTransactions()- Overrides:
performsAtomicTransactionsin classorg.eclipse.jgit.lib.RefDatabase
-
exactRef
- Specified by:
exactRefin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
exactRef
- Overrides:
exactRefin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
firstExactRef
- Overrides:
firstExactRefin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getRefs
- Overrides:
getRefsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getRefs
- Specified by:
getRefsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getReflogReader
- Overrides:
getReflogReaderin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getReflogReader
@NonNull public org.eclipse.jgit.lib.ReflogReader getReflogReader(@NonNull org.eclipse.jgit.lib.Ref ref) throws IOException - Specified by:
getReflogReaderin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getRefsByPrefix
- Overrides:
getRefsByPrefixin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getRefsByPrefixWithExclusions
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefixWithExclusions(String include, Set<String> excludes) throws IOException - Overrides:
getRefsByPrefixWithExclusionsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getRefsByPrefix
- Overrides:
getRefsByPrefixin 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
-
hasFastTipsWithSha1
- Overrides:
hasFastTipsWithSha1in classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
hasRefs
- Overrides:
hasRefsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getAdditionalRefs
- Specified by:
getAdditionalRefsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
peel
- Specified by:
peelin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
refresh
public void refresh()- Overrides:
refreshin classorg.eclipse.jgit.lib.RefDatabase
-
getDelegate
protected org.eclipse.jgit.lib.Repository getDelegate()
-