| Constructor and Description |
|---|
FileDAOHibernate()
Constructor for FileDAOHibernate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(File file)
delete.
|
void |
deleteAll(List<File> files)
deleteAll.
|
void |
deleteAllWithFolderStore(List<File> list)
deleteAllWithFolderStore.
|
List<File> |
findByCriteria(String criteria,
boolean isCaseSens)
findByCriteria.
|
File |
findByID(Integer id)
findByID.
|
List<File> |
findByOwnerId(Integer registrationId)
findByOwnerId.
|
File |
findByPath(String path)
findByPath.
|
File |
findBySWAccession(Integer swAccession)
findBySWAccession.
|
Integer |
insert(File file)
insert.
|
Integer |
insert(Registration registration,
File file)
insert.
|
List<File> |
list()
list.
|
File |
saveFile(org.springframework.web.multipart.MultipartFile uploadFile,
String folderStore,
Registration owner)
saveFile.
|
void |
update(File file)
update.
|
void |
update(Registration registration,
File file)
update.
|
File |
updateDetached(File file)
updateDetached.
|
File |
updateDetached(Registration registration,
File file)
updateDetached.
|
public void update(File file)
update.
Updates an instance of File in the database.public void delete(File file)
delete.
Updates an instance of File in the database.public void deleteAllWithFolderStore(List<File> list)
deleteAllWithFolderStore.
deleteAllWithFolderStore in interface FileDAOlist - a List object.public File findByPath(String path)
findByPath.
Finds an instance of File in the database by the File Path.findByPath in interface FileDAOpath - a String object.File object.public File findByID(Integer id)
findByID.
Finds an instance of File in the database by the File ID.public File findBySWAccession(Integer swAccession)
findBySWAccession.
findBySWAccession in interface FileDAOswAccession - a Integer object.File object.public List<File> findByOwnerId(Integer registrationId)
findByOwnerId.
findByOwnerId in interface FileDAOregistrationId - a Integer object.List object.public File saveFile(org.springframework.web.multipart.MultipartFile uploadFile, String folderStore, Registration owner) throws IOException
saveFile.
saveFile in interface FileDAOuploadFile - a MultipartFile object.folderStore - a String object.owner - a Registration object.File object.IOException - if any.public List<File> findByCriteria(String criteria, boolean isCaseSens)
findByCriteria.
findByCriteria in interface FileDAOcriteria - a String object.isCaseSens - a boolean.List object.public File updateDetached(File file)
updateDetached.
updateDetached in interface FileDAOfile - a File object.File object.public void update(Registration registration, File file)
update.
update in interface FileDAOregistration - a Registration object.file - a File object.public Integer insert(Registration registration, File file)
insert.
insert in interface FileDAOregistration - a Registration object.file - a File object.public File updateDetached(Registration registration, File file)
updateDetached.
updateDetached in interface FileDAOregistration - a Registration object.file - a File object.File object.Copyright © 2015 SeqWare. All rights reserved.