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 TypeMethodDescriptionvoidcommit()for implementations with transaction handlingvoiddelete(Collection<String> uris) deletes urisprotected Connectionconnection used, must not be closed, must not change autocommit flagthis method must not be called prior toVFSServlet.FileDAO.commit()voidwrite(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.FileDAOwrites file- Specified by:
writein interfaceVFSServlet.FileDAO
-
commit
public void commit()Description copied from interface:VFSServlet.FileDAOfor implementations with transaction handling- Specified by:
commitin interfaceVFSServlet.FileDAO
-
getWrittenFiles
Description copied from interface:VFSServlet.FileDAOthis method must not be called prior toVFSServlet.FileDAO.commit()- Specified by:
getWrittenFilesin interfaceVFSServlet.FileDAO- Returns:
- collection of finally written files into filesystem with their absolute path
-
delete
Description copied from interface:VFSServlet.FileDAOdeletes uris- Specified by:
deletein interfaceVFSServlet.FileDAO
-