Package de.businesscode.bcdui.vfs.web
Class VFSServlet.JdbcFileDAO
java.lang.Object
de.businesscode.bcdui.vfs.web.VFSServlet.JdbcFileDAO
- All Implemented Interfaces:
VFSServlet.FileDAO
- Enclosing class:
- VFSServlet
unfortunately we cant work with DatabaseFileSystem / DatabaseFileObject directly to store data,
so we do here lowlevel BLOB handling, works with bcd_virtualFileSystem binding-set
NOT THREADSAFE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
for implementations with transaction handlingvoid
delete
(Collection<String> uris) deletes urisprotected Connection
connection used, must not be closed, must not change autocommit flagthis method must not be called prior toVFSServlet.FileDAO.commit()
void
write
(String uri, InputStream inputStream) writes file
-
Constructor Details
-
JdbcFileDAO
-
-
Method Details
-
getConnection
connection used, must not be closed, must not change autocommit flag- Returns:
-
write
Description copied from interface:VFSServlet.FileDAO
writes file- Specified by:
write
in interfaceVFSServlet.FileDAO
-
commit
public void commit()Description copied from interface:VFSServlet.FileDAO
for implementations with transaction handling- Specified by:
commit
in interfaceVFSServlet.FileDAO
-
getWrittenFiles
Description copied from interface:VFSServlet.FileDAO
this method must not be called prior toVFSServlet.FileDAO.commit()
- Specified by:
getWrittenFiles
in interfaceVFSServlet.FileDAO
- Returns:
- collection of finally written files into filesystem with their absolute path
-
delete
Description copied from interface:VFSServlet.FileDAO
deletes uris- Specified by:
delete
in interfaceVFSServlet.FileDAO
-