public class AttachmentDAOImpl extends BaseHibernateDao<Attachment> implements AttachmentDAO
COUNT_MODE, LIST_MODE, SCROLL_MODE
entityClass
构造器和说明 |
---|
AttachmentDAOImpl() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
checkIsLicitGenesis(Long referenceId,
Long genesisId)
是否是合法的来源
|
void |
delete(Long id)
删除单个附件
|
void |
deleteByReference(Long reference)
按照主数据ID删除所有附件
|
void |
deleteByReference(Long reference,
Long subReference)
按照主数据ID和次数据Id删除所有附件
|
List<Attachment> |
find(List<Long> parentids)
根据附件fileurl获取对应的附件信息
|
List<Attachment> |
findAll(Long reference)
按照主数据ID获取所有附件,包括次数据附件
|
List<Attachment> |
findAll(Long reference,
Long... subReference)
按照主/多个次数据ID获取所有附件
|
List<Attachment> |
findAll(Long reference,
Long subReference)
按照主/次数据ID获取所有附件
|
List<Object[]> |
findAllFileUrl(Long reference)
查找所有附件的fileURL
|
List<Object[]> |
findAllFileUrl(Long reference,
Long subReference)
查找所有附件的fileURL
|
Attachment |
get(Long id)
按照主键获取对象
|
Attachment |
getAttachmentByFileURL(Long fileURL)
根据v3xfile的id取得附件对象
|
List<Long> |
getBySubReference(Long subReference)
根据subReference值查询 文件ID
|
Attachment |
getFirst(Long reference,
Long subReference,
Constants.ATTACHMENT_TYPE type)
按照主数据ID和次数据Id获取某个类型的第一个附件
|
boolean |
hasAttachments(Long reference,
Long subReference) |
void |
save(Attachment attachment)
用户上传的附件,为了防止名称超长,截取120字节
|
void |
update(Attachment attachment) |
void |
updateFileNameByAffairIds(String fileName,
List<Long> affairIdList)
更新文件名
|
void |
updateReference(Long fileUrl,
Long referenceId)
根据文件标识新引用
|
void |
updateReferenceSubReference(Long fileUrl,
Long referenceId,
Long subReference)
根据文件标识更新引用及子引用
|
delete, delete, delete, delete, deleteObject, findBy, findByExample, getQueryCount, isNotUnique, pagedQuery, pagedQuery, pagedQuery, pagedQuery, paginate, paginate, paginate, remove, removeById, saveAll, sortCriteria, update, update, update, update, update, updateAll, withoutPagination, withPagination
closeSessionIfNecessary, getSession, getSession, releaseSession
bulkUpdate, bulkUpdate, checkDaoConfig, convertHibernateAccessException, count, count, count, createHibernateTemplate, delete, delete, executeCriteria, executeCriteria, executeUniqueCriteria, find, find, find, find, find, find, findBy, findByLike, findSimpleObjects, findSimpleObjects, findUnique, findUnique, findUniqueBy, findVarargs, findWithCount, findWithCount, getAll, getBatchSize, getCountByCriteria, getEntityClass, getHibernateTemplate, getSessionFactory, getSimpleObject, save, savePatchAll, setHibernateTemplate, setParameters, setSessionFactory, sortCriteria, update, updatePatchAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, delete, delete, delete, deleteObject, findBy, findByExample, getQueryCount, isNotUnique, pagedQuery, pagedQuery, pagedQuery, pagedQuery, paginate, paginate, paginate, remove, removeById, saveAll, update, update, update, update, update, updateAll, withoutPagination, withPagination
bulkUpdate, bulkUpdate, count, count, count, delete, delete, executeCriteria, executeCriteria, executeUniqueCriteria, find, find, find, find, find, find, findBy, findByLike, findSimpleObjects, findSimpleObjects, findUnique, findUnique, findUniqueBy, findVarargs, findWithCount, findWithCount, getAll, getCountByCriteria, getHibernateTemplate, getSessionFactory, getSimpleObject, save, savePatchAll, setHibernateTemplate, setSessionFactory, update, updatePatchAll
public void delete(Long id)
AttachmentDAO
delete
在接口中 AttachmentDAO
public List<Attachment> findAll(Long reference)
AttachmentDAO
findAll
在接口中 AttachmentDAO
public List<Attachment> find(List<Long> parentids)
AttachmentDAO
find
在接口中 AttachmentDAO
public List<Attachment> findAll(Long reference, Long subReference)
AttachmentDAO
findAll
在接口中 AttachmentDAO
public List<Attachment> findAll(Long reference, Long... subReference)
AttachmentDAO
findAll
在接口中 AttachmentDAO
public Attachment get(Long id)
CTPBaseDao
get
在接口中 CTPBaseDao<Attachment>
get
在接口中 AttachmentDAO
get
在类中 BaseDao<Attachment>
public void save(Attachment attachment)
save
在接口中 AttachmentDAO
public void deleteByReference(Long reference)
AttachmentDAO
deleteByReference
在接口中 AttachmentDAO
public void deleteByReference(Long reference, Long subReference)
AttachmentDAO
deleteByReference
在接口中 AttachmentDAO
public List<Object[]> findAllFileUrl(Long reference)
AttachmentDAO
findAllFileUrl
在接口中 AttachmentDAO
public List<Object[]> findAllFileUrl(Long reference, Long subReference)
AttachmentDAO
findAllFileUrl
在接口中 AttachmentDAO
public boolean hasAttachments(Long reference, Long subReference)
hasAttachments
在接口中 AttachmentDAO
public Attachment getFirst(Long reference, Long subReference, Constants.ATTACHMENT_TYPE type)
AttachmentDAO
getFirst
在接口中 AttachmentDAO
public Attachment getAttachmentByFileURL(Long fileURL)
AttachmentDAO
getAttachmentByFileURL
在接口中 AttachmentDAO
public void update(Attachment attachment)
update
在接口中 AttachmentDAO
public void updateReferenceSubReference(Long fileUrl, Long referenceId, Long subReference)
AttachmentDAO
updateReferenceSubReference
在接口中 AttachmentDAO
fileUrl
- 文件标识referenceId
- 业务主IDsubReference
- 业务子IDpublic void updateReference(Long fileUrl, Long referenceId)
AttachmentDAO
updateReference
在接口中 AttachmentDAO
fileUrl
- 文件标识referenceId
- 业务idpublic boolean checkIsLicitGenesis(Long referenceId, Long genesisId)
AttachmentDAO
checkIsLicitGenesis
在接口中 AttachmentDAO
public void updateFileNameByAffairIds(String fileName, List<Long> affairIdList)
AttachmentDAO
updateFileNameByAffairIds
在接口中 AttachmentDAO
public List<Long> getBySubReference(Long subReference)
AttachmentDAO
getBySubReference
在接口中 AttachmentDAO
Copyright © 2016–2017. All rights reserved.