public class AttachmentDAO extends HibernateRepository<Attachment>
Attachments| Constructor and Description |
|---|
AttachmentDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(File attDir,
Attachment attachment) |
boolean |
deleteFile(File attDir,
Attachment attachment) |
Attachment |
get(long id) |
List<Attachment> |
getByEntry(Entry entry)
Retrieve all
Attachments associated with the given Entry. |
Attachment |
getByFileId(String fileId)
Retrieves attachment referenced by a unique file identifier
|
boolean |
hasAttachment(Entry entry) |
create, currentSession, delete, get, getBuilder, updatepublic void delete(File attDir, Attachment attachment)
public List<Attachment> getByEntry(Entry entry)
Attachments associated with the given Entry.entry - Entry whose attachments are desiredDAOExceptionpublic boolean hasAttachment(Entry entry)
public Attachment getByFileId(String fileId)
fileId - unique file identifierpublic boolean deleteFile(File attDir, Attachment attachment)
public Attachment get(long id)
Copyright © 2017. All rights reserved.