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.RefDatabaseWrapper aroundRefDatabasethat 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 voidclose()voidcreate()org.eclipse.jgit.lib.RefexactRef(String name)Map<String,org.eclipse.jgit.lib.Ref>exactRef(String... refs)org.eclipse.jgit.lib.ReffirstExactRef(String... refs)List<org.eclipse.jgit.lib.Ref>getAdditionalRefs()Collection<String>getConflictingNames(String name)protected org.eclipse.jgit.lib.RepositorygetDelegate()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)booleanhasFastTipsWithSha1()booleanhasRefs()booleanhasVersioning()booleanisNameConflicting(String name)org.eclipse.jgit.lib.BatchRefUpdatenewBatchUpdate()org.eclipse.jgit.lib.RefRenamenewRename(String fromName, String toName)org.eclipse.jgit.lib.RefUpdatenewUpdate(String name, boolean detach)org.eclipse.jgit.lib.Refpeel(org.eclipse.jgit.lib.Ref ref)booleanperformsAtomicTransactions()voidrefresh()
-
-
-
Method Detail
-
create
public void create() throws IOException- 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
public boolean isNameConflicting(String name) throws IOException
- Specified by:
isNameConflictingin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getConflictingNames
public Collection<String> getConflictingNames(String name) throws IOException
- Overrides:
getConflictingNamesin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
newUpdate
public org.eclipse.jgit.lib.RefUpdate newUpdate(String name, boolean detach) throws IOException
- Specified by:
newUpdatein classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
newRename
public org.eclipse.jgit.lib.RefRename newRename(String fromName, String toName) throws IOException
- 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
public org.eclipse.jgit.lib.Ref exactRef(String name) throws IOException
- Specified by:
exactRefin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
exactRef
public Map<String,org.eclipse.jgit.lib.Ref> exactRef(String... refs) throws IOException
- Overrides:
exactRefin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
firstExactRef
public org.eclipse.jgit.lib.Ref firstExactRef(String... refs) throws IOException
- Overrides:
firstExactRefin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getRefs
public List<org.eclipse.jgit.lib.Ref> getRefs() throws IOException
- Overrides:
getRefsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getRefs
public Map<String,org.eclipse.jgit.lib.Ref> getRefs(String prefix) throws IOException
- Specified by:
getRefsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getRefsByPrefix
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefix(String prefix) throws IOException
- 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
public List<org.eclipse.jgit.lib.Ref> getRefsByPrefix(String... prefixes) throws IOException
- 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
public boolean hasFastTipsWithSha1() throws IOException- Overrides:
hasFastTipsWithSha1in classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
hasRefs
public boolean hasRefs() throws IOException- Overrides:
hasRefsin classorg.eclipse.jgit.lib.RefDatabase- Throws:
IOException
-
getAdditionalRefs
public List<org.eclipse.jgit.lib.Ref> getAdditionalRefs() throws IOException
- Specified by:
getAdditionalRefsin 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:
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()
-
-