Class DatabaseFileObject
- java.lang.Object
-
- org.apache.commons.vfs.provider.AbstractFileObject
-
- de.businesscode.bcdui.vfs.provider.database.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DatabaseFileObject(org.apache.commons.vfs.FileName name, DatabaseFileSystem fs)
Constructor
-
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 theRequestLifeCycleFilter.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
-
-
-
-
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 interfaceorg.apache.commons.vfs.FileObject
- Overrides:
isReadable
in classorg.apache.commons.vfs.provider.AbstractFileObject
- Throws:
org.apache.commons.vfs.FileSystemException
-
doGetContentSize
protected long doGetContentSize() throws java.lang.Exception
- Specified by:
doGetContentSize
in classorg.apache.commons.vfs.provider.AbstractFileObject
- Throws:
java.lang.Exception
-
doGetInputStream
protected java.io.InputStream doGetInputStream() throws java.lang.Exception
- Specified by:
doGetInputStream
in classorg.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 classorg.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 interfaceorg.apache.commons.vfs.FileObject
- Overrides:
getChildren
in classorg.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 classorg.apache.commons.vfs.provider.AbstractFileObject
- Throws:
java.lang.Exception
-
getBindingSet
public BindingSet getBindingSet() throws BindingException
- Throws:
BindingException
-
obtainConnection
protected de.businesscode.bcdui.vfs.provider.database.DatabaseFileObject.ConnectionContainer obtainConnection() throws java.lang.Exception
returns either a managed or unmanaged connection relying on theRequestLifeCycleFilter.isThreadBoundToHttpRequest()
method.- Returns:
DatabaseFileObject.ConnectionContainer
- Throws:
java.lang.Exception
-
-