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 SummaryFields inherited from class org.eclipse.jgit.lib.RefDatabaseadditionalRefsNames, ALL, MAX_SYMBOLIC_REF_DEPTH, SEARCH_PATH
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.RepositoryList<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.RefDatabasefindRef, findRef, getRef
- 
Constructor Details- 
DelegateRefDatabasepublic DelegateRefDatabase(org.eclipse.jgit.lib.Repository delegate) 
 
- 
- 
Method Details- 
create- Specified by:
- createin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
closepublic void close()- Specified by:
- closein class- org.eclipse.jgit.lib.RefDatabase
 
- 
hasVersioningpublic boolean hasVersioning()- Overrides:
- hasVersioningin class- org.eclipse.jgit.lib.RefDatabase
 
- 
isNameConflicting- Specified by:
- isNameConflictingin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
getConflictingNames- Overrides:
- getConflictingNamesin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
newUpdate- Specified by:
- newUpdatein class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
newRename- Specified by:
- newRenamein class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
newBatchUpdatepublic org.eclipse.jgit.lib.BatchRefUpdate newBatchUpdate()- Overrides:
- newBatchUpdatein class- org.eclipse.jgit.lib.RefDatabase
 
- 
performsAtomicTransactionspublic boolean performsAtomicTransactions()- Overrides:
- performsAtomicTransactionsin class- org.eclipse.jgit.lib.RefDatabase
 
- 
exactRef- Specified by:
- exactRefin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
exactRef- Overrides:
- exactRefin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
firstExactRef- Overrides:
- firstExactRefin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
getRefs- Overrides:
- getRefsin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
getRefs- Specified by:
- getRefsin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
getRefsByPrefix- Overrides:
- getRefsByPrefixin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
getRefsByPrefixWithExclusionspublic List<org.eclipse.jgit.lib.Ref> getRefsByPrefixWithExclusions(String include, Set<String> excludes) throws IOException - Overrides:
- getRefsByPrefixWithExclusionsin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
getRefsByPrefix- Overrides:
- getRefsByPrefixin class- org.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 class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
hasFastTipsWithSha1- Overrides:
- hasFastTipsWithSha1in class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
hasRefs- Overrides:
- hasRefsin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
getAdditionalRefs- Specified by:
- getAdditionalRefsin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
peel- Specified by:
- peelin class- org.eclipse.jgit.lib.RefDatabase
- Throws:
- IOException
 
- 
refreshpublic void refresh()- Overrides:
- refreshin class- org.eclipse.jgit.lib.RefDatabase
 
- 
getDelegateprotected org.eclipse.jgit.lib.Repository getDelegate()
 
-