Class JpaAttachmentDao
java.lang.Object
org.jasig.portlet.attachment.dao.jpa.BaseJpaDao
org.jasig.portlet.attachment.dao.jpa.JpaAttachmentDao
- All Implemented Interfaces:
IAttachmentDao
@Repository public class JpaAttachmentDao extends BaseJpaDao implements IAttachmentDao
- Author:
- Chris Waymire (chris@waymire.net)
-
Field Summary
Fields inherited from class org.jasig.portlet.attachment.dao.jpa.BaseJpaDao
logger, PERSISTENCE_UNIT_NAME -
Constructor Summary
Constructors Constructor Description JpaAttachmentDao() -
Method Summary
Modifier and Type Method Description voiddelete(long attachmentId)voiddelete(Attachment attachment)List<Attachment>find(String creator)List<Attachment>find(String creator, String filename)List<Attachment>findAll(int offset, int maxresults)Attachmentget(long attachmentId)Attachmentget(String guid)Attachmentsave(Attachment attachment)Methods inherited from class org.jasig.portlet.attachment.dao.jpa.BaseJpaDao
getEntityManager, setEntityManager
-
Constructor Details
-
JpaAttachmentDao
public JpaAttachmentDao()
-
-
Method Details
-
get
- Specified by:
getin interfaceIAttachmentDao
-
get
- Specified by:
getin interfaceIAttachmentDao
-
find
- Specified by:
findin interfaceIAttachmentDao
-
find
- Specified by:
findin interfaceIAttachmentDao
-
findAll
- Specified by:
findAllin interfaceIAttachmentDao
-
save
- Specified by:
savein interfaceIAttachmentDao
-
delete
- Specified by:
deletein interfaceIAttachmentDao
-
delete
@Transactional public void delete(long attachmentId)- Specified by:
deletein interfaceIAttachmentDao
-