public class AttachmentDaoImpl extends AttachmentDaoBase
Attachment
TRANSFORM_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, update
public 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 AttachmentDao
create
in class AttachmentDaoBase
com.communote.server.persistence.resource.AttachmentDao#create(int transform,
com.communote.server.persistence.resource.Attachment)
public Collection<Long> findOrphanedAttachments(Date upperUploadDate)
AttachmentDao
upperUploadDate
- Attachments must be older than this date.protected Attachment handleFindContentTypeNull()
AttachmentDaoBase.findContentTypeNull()
handleFindContentTypeNull
in class AttachmentDaoBase
protected Note handleFindNoteByContentId(ContentId contentId)
AttachmentDaoBase.findNoteByContentId(com.communote.server.core.crc.vo.ContentId)
handleFindNoteByContentId
in class AttachmentDaoBase
Copyright © 2019 Communote team. All rights reserved.