public class AttachmentDao extends GenericDao<Attachment> implements IAttachmentDao
| Constructor and Description |
|---|
AttachmentDao() |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
createByUser(IEntityContext ec,
String username,
Attachment attachment) |
void |
deleteByUser(IEntityContext ec,
String username,
Attachment... attachments) |
void |
deleteByUser(IEntityContext ec,
String username,
boolean force,
Attachment... attachments) |
List<Attachment> |
getAllBy(IEntityContext ec,
Vorgang vorgang,
EAttachmentSource source,
String uuid) |
Attachment |
getByName(IEntityContext ec,
Vorgang vorgang,
String name) |
Attachment |
getByUUID(IEntityContext ec,
String uuid) |
Attachment |
getByUUID(IEntityContext ec,
String uuid,
Vorgang v) |
Attachment |
getByUUID(IEntityContext ec,
UUID uuid)
Returns the attachment with the given UUID
|
protected IFCDaoActionHook<Attachment> |
getPreActionHook() |
long |
getUsedFileSize(IEntityContext ec,
Mandant mandant) |
Attachment |
updateByUser(IEntityContext ec,
String username,
String oldFileName,
Attachment attachment) |
getEntityRefs, getPostActionHook, readall, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntityRefs, readall, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updatepublic List<Attachment> getAllBy(IEntityContext ec, Vorgang vorgang, EAttachmentSource source, String uuid)
getAllBy in interface IAttachmentDaopublic Attachment getByUUID(IEntityContext ec, String uuid, Vorgang v)
getByUUID in interface IAttachmentDaopublic Attachment getByName(IEntityContext ec, Vorgang vorgang, String name)
getByName in interface IAttachmentDaopublic Attachment getByUUID(IEntityContext ec, String uuid)
getByUUID in interface IAttachmentDaopublic Attachment getByUUID(IEntityContext ec, UUID uuid)
IAttachmentDaogetByUUID in interface IAttachmentDaoec - IEntityContext to useuuid - UUID UUID of the attachmentAttachment for the given UUIDpublic void deleteByUser(IEntityContext ec, String username, Attachment... attachments)
deleteByUser in interface IAttachmentDaopublic void deleteByUser(IEntityContext ec, String username, boolean force, Attachment... attachments)
deleteByUser in interface IAttachmentDaopublic Attachment updateByUser(IEntityContext ec, String username, String oldFileName, Attachment attachment)
updateByUser in interface IAttachmentDaopublic Attachment createByUser(IEntityContext ec, String username, Attachment attachment)
createByUser in interface IAttachmentDaoprotected IFCDaoActionHook<Attachment> getPreActionHook()
getPreActionHook in class GenericDao<Attachment>public long getUsedFileSize(IEntityContext ec, Mandant mandant)
getUsedFileSize in interface IAttachmentDaoCopyright © 2021 XIMA MEDIA GmbH. All rights reserved.