public interface FileDAO
FileDAO interface.
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.
|
Integer insert(Registration registration, File file)
insert.
registration
- a Registration
object.file
- a File
object.void update(Registration registration, File file)
update.
registration
- a Registration
object.file
- a File
object.void deleteAllWithFolderStore(List<File> list)
deleteAllWithFolderStore.
list
- a List
object.File saveFile(org.springframework.web.multipart.MultipartFile uploadFile, String folderStore, Registration owner) throws IOException
saveFile.
uploadFile
- a MultipartFile
object.folderStore
- a String
object.owner
- a Registration
object.File
object.IOException
- if any.File updateDetached(Registration registration, File file)
updateDetached.
registration
- a Registration
object.file
- a File
object.File
object.Copyright © 2015 SeqWare. All rights reserved.