Class DatabaseFileObject

  • All Implemented Interfaces:
    org.apache.commons.vfs.FileObject

    public class DatabaseFileObject
    extends org.apache.commons.vfs.provider.AbstractFileObject
    Representer for a File object, is not threadsafe
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected long doGetContentSize()  
      protected java.io.InputStream doGetInputStream()  
      protected org.apache.commons.vfs.FileType doGetType()  
      protected java.lang.String[] doListChildren()  
      BindingSet getBindingSet()  
      org.apache.commons.vfs.FileObject[] getChildren()  
      boolean isReadable()  
      protected de.businesscode.bcdui.vfs.provider.database.DatabaseFileObject.ConnectionContainer obtainConnection()
      returns either a managed or unmanaged connection relying on the RequestLifeCycleFilter.isThreadBoundToHttpRequest() method.
      • Methods inherited from class org.apache.commons.vfs.provider.AbstractFileObject

        canRenameTo, childrenChanged, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doAttach, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetLastModifiedTime, doGetOutputStream, doGetRandomAccessContent, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRename, doSetAttribute, doSetLastModifiedTime, endOutput, exists, finalize, findFiles, findFiles, getChild, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isHidden, isSameFile, isWriteable, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, toString
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DatabaseFileObject

        protected DatabaseFileObject​(org.apache.commons.vfs.FileName name,
                                     DatabaseFileSystem fs)
        Constructor
    • Method Detail

      • isReadable

        public boolean isReadable()
                           throws org.apache.commons.vfs.FileSystemException
        Specified by:
        isReadable in interface org.apache.commons.vfs.FileObject
        Overrides:
        isReadable in class org.apache.commons.vfs.provider.AbstractFileObject
        Throws:
        org.apache.commons.vfs.FileSystemException
      • doGetContentSize

        protected long doGetContentSize()
                                 throws java.lang.Exception
        Specified by:
        doGetContentSize in class org.apache.commons.vfs.provider.AbstractFileObject
        Throws:
        java.lang.Exception
      • doGetInputStream

        protected java.io.InputStream doGetInputStream()
                                                throws java.lang.Exception
        Specified by:
        doGetInputStream in class org.apache.commons.vfs.provider.AbstractFileObject
        Throws:
        java.lang.Exception
      • doGetType

        protected org.apache.commons.vfs.FileType doGetType()
                                                     throws java.lang.Exception
        Specified by:
        doGetType in class org.apache.commons.vfs.provider.AbstractFileObject
        Throws:
        java.lang.Exception
      • getChildren

        public org.apache.commons.vfs.FileObject[] getChildren()
                                                        throws org.apache.commons.vfs.FileSystemException
        Specified by:
        getChildren in interface org.apache.commons.vfs.FileObject
        Overrides:
        getChildren in class org.apache.commons.vfs.provider.AbstractFileObject
        Throws:
        org.apache.commons.vfs.FileSystemException
      • doListChildren

        protected java.lang.String[] doListChildren()
                                             throws java.lang.Exception
        Specified by:
        doListChildren in class org.apache.commons.vfs.provider.AbstractFileObject
        Throws:
        java.lang.Exception
      • obtainConnection

        protected de.businesscode.bcdui.vfs.provider.database.DatabaseFileObject.ConnectionContainer obtainConnection()
                                                                                                               throws java.lang.Exception
        returns either a managed or unmanaged connection relying on the RequestLifeCycleFilter.isThreadBoundToHttpRequest() method.
        Returns:
        DatabaseFileObject.ConnectionContainer
        Throws:
        java.lang.Exception