public class AttachmentDAO extends HibernateRepository<Attachment>
Attachment
sConstructor 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
Attachment s 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, update
public void delete(File attDir, Attachment attachment)
public List<Attachment> getByEntry(Entry entry)
Attachment
s associated with the given Entry
.entry
- Entry whose attachments are desiredDAOException
public 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.