Package de.xima.fc.dao.impl
Class AttachmentDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Attachment,,Long, IEntityContext> IAttachmentDao,IGenericDao<Attachment>
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateByUser(IEntityContext ec, String username, Attachment attachment) voiddeleteByUser(IEntityContext ec, String username, boolean force, Attachment... attachments) voiddeleteByUser(IEntityContext ec, String username, Attachment... attachments) getAllBy(IEntityContext ec, Vorgang vorgang, EAttachmentSource source, String uuid) getByName(IEntityContext ec, Vorgang vorgang, String name) getByUUID(IEntityContext ec, String uuid) getByUUID(IEntityContext ec, String uuid, Vorgang v) getByUUID(IEntityContext ec, UUID uuid) Returns the attachment with the given UUIDprotected IFCDaoActionHook<Attachment>longgetUsedFileSize(IEntityContext ec, Mandant mandant) updateByUser(IEntityContext ec, String username, String oldFileName, Attachment attachment) Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, getPostActionHook, readMethods inherited from class de.xima.cmn.dao.AbstractDao
all, 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, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, 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, updateMethods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
Constructor Details
-
AttachmentDao
public AttachmentDao()
-
-
Method Details
-
getAllBy
public List<Attachment> getAllBy(IEntityContext ec, Vorgang vorgang, EAttachmentSource source, String uuid) - Specified by:
getAllByin interfaceIAttachmentDao
-
getByUUID
- Specified by:
getByUUIDin interfaceIAttachmentDao
-
getByName
- Specified by:
getByNamein interfaceIAttachmentDao
-
getByUUID
- Specified by:
getByUUIDin interfaceIAttachmentDao
-
getByUUID
Description copied from interface:IAttachmentDaoReturns the attachment with the given UUID- Specified by:
getByUUIDin interfaceIAttachmentDao- Parameters:
ec-IEntityContextto useuuid-UUIDUUID of the attachment- Returns:
Attachmentfor the given UUID
-
deleteByUser
- Specified by:
deleteByUserin interfaceIAttachmentDao
-
deleteByUser
public void deleteByUser(IEntityContext ec, String username, boolean force, Attachment... attachments) - Specified by:
deleteByUserin interfaceIAttachmentDao
-
updateByUser
public Attachment updateByUser(IEntityContext ec, String username, String oldFileName, Attachment attachment) - Specified by:
updateByUserin interfaceIAttachmentDao
-
createByUser
- Specified by:
createByUserin interfaceIAttachmentDao
-
getPreActionHook
- Overrides:
getPreActionHookin classGenericDao<Attachment>
-
getUsedFileSize
- Specified by:
getUsedFileSizein interfaceIAttachmentDao
-