public class AttachmentDaoImpl extends AttachmentDaoBase
AttachmentTRANSFORM_NONE| Constructor and Description |
|---|
AttachmentDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(int transform,
Attachment attachment)
Does the same thing as
AttachmentDao.create(Attachment) with an additional flag called
transform. |
Collection<Long> |
findOrphanedAttachments(Date upperUploadDate)
Find all attachments which are not connected with a note and which are older than the given
date.
|
protected Attachment |
handleFindContentTypeNull()
Performs the core logic for
AttachmentDaoBase.findContentTypeNull() |
protected Note |
handleFindNoteByContentId(ContentId contentId)
Performs the core logic for
AttachmentDaoBase.findNoteByContentId(com.communote.server.core.crc.vo.ContentId) |
create, create, create, evict, find, find, findContentTypeNull, findNoteByContentId, getGlobalIdDao, load, load, loadAll, loadAll, remove, remove, remove, setGlobalIdDao, transformEntities, transformEntity, update, updatepublic Object create(int transform, Attachment attachment)
Does the same thing as AttachmentDao.create(Attachment) with an additional flag called
transform. If this flag is set to TRANSFORM_NONE then the returned
entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can
optionally transform the entity (into a value object for example). By default, transformation
does not occur.
create in interface AttachmentDaocreate in class AttachmentDaoBasecom.communote.server.persistence.resource.AttachmentDao#create(int transform,
com.communote.server.persistence.resource.Attachment)public Collection<Long> findOrphanedAttachments(Date upperUploadDate)
AttachmentDaoupperUploadDate - Attachments must be older than this date.protected Attachment handleFindContentTypeNull()
AttachmentDaoBase.findContentTypeNull()handleFindContentTypeNull in class AttachmentDaoBaseprotected Note handleFindNoteByContentId(ContentId contentId)
AttachmentDaoBase.findNoteByContentId(com.communote.server.core.crc.vo.ContentId)handleFindNoteByContentId in class AttachmentDaoBaseCopyright © 2019 Communote team. All rights reserved.