Class 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.
    • Constructor Detail

      • DelegateRefDatabase

        public DelegateRefDatabase​(org.eclipse.jgit.lib.Repository delegate)
    • Method Detail

      • create

        public void create()
                    throws IOException
        Specified by:
        create in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • close

        public void close()
        Specified by:
        close in class org.eclipse.jgit.lib.RefDatabase
      • hasVersioning

        public boolean hasVersioning()
        Overrides:
        hasVersioning in class org.eclipse.jgit.lib.RefDatabase
      • isNameConflicting

        public boolean isNameConflicting​(String name)
                                  throws IOException
        Specified by:
        isNameConflicting in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • newUpdate

        public org.eclipse.jgit.lib.RefUpdate newUpdate​(String name,
                                                        boolean detach)
                                                 throws IOException
        Specified by:
        newUpdate in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • newRename

        public org.eclipse.jgit.lib.RefRename newRename​(String fromName,
                                                        String toName)
                                                 throws IOException
        Specified by:
        newRename in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • newBatchUpdate

        public org.eclipse.jgit.lib.BatchRefUpdate newBatchUpdate()
        Overrides:
        newBatchUpdate in class org.eclipse.jgit.lib.RefDatabase
      • performsAtomicTransactions

        public boolean performsAtomicTransactions()
        Overrides:
        performsAtomicTransactions in class org.eclipse.jgit.lib.RefDatabase
      • exactRef

        public org.eclipse.jgit.lib.Ref exactRef​(String name)
                                          throws IOException
        Specified by:
        exactRef in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • exactRef

        public Map<String,​org.eclipse.jgit.lib.Ref> exactRef​(String... refs)
                                                            throws IOException
        Overrides:
        exactRef in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • firstExactRef

        public org.eclipse.jgit.lib.Ref firstExactRef​(String... refs)
                                               throws IOException
        Overrides:
        firstExactRef in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • getRefs

        public List<org.eclipse.jgit.lib.Ref> getRefs()
                                               throws IOException
        Overrides:
        getRefs in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • getRefs

        public Map<String,​org.eclipse.jgit.lib.Ref> getRefs​(String prefix)
                                                           throws IOException
        Specified by:
        getRefs in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • getRefsByPrefix

        public List<org.eclipse.jgit.lib.Ref> getRefsByPrefix​(String prefix)
                                                       throws IOException
        Overrides:
        getRefsByPrefix in class org.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 class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • getRefsByPrefix

        public List<org.eclipse.jgit.lib.Ref> getRefsByPrefix​(String... prefixes)
                                                       throws IOException
        Overrides:
        getRefsByPrefix in 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:
        getTipsWithSha1 in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • hasFastTipsWithSha1

        public boolean hasFastTipsWithSha1()
                                    throws IOException
        Overrides:
        hasFastTipsWithSha1 in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • hasRefs

        public boolean hasRefs()
                        throws IOException
        Overrides:
        hasRefs in class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • getAdditionalRefs

        public List<org.eclipse.jgit.lib.Ref> getAdditionalRefs()
                                                         throws IOException
        Specified by:
        getAdditionalRefs in class org.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 class org.eclipse.jgit.lib.RefDatabase
        Throws:
        IOException
      • refresh

        public void refresh()
        Overrides:
        refresh in class org.eclipse.jgit.lib.RefDatabase
      • getDelegate

        protected org.eclipse.jgit.lib.Repository getDelegate()