public class ContentDataDAOImpl extends AbstractContentDataDAOImpl
AbstractContentDataDAOImpl.ContentUrlDeleteTransactionListenerContentDataDAO.ContentUrlHandler| Constructor and Description |
|---|
ContentDataDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected ContentDataEntity |
createContentDataEntity(Long contentUrlId,
Long mimetypeId,
Long encodingId,
Long localeId)
Create the row for the alf_content_data
|
protected ContentUrlEntity |
createContentUrlEntity(String contentUrl,
long size) |
org.alfresco.util.Pair<Long,String> |
createContentUrlOrphaned(String contentUrl,
Date orphanTime)
Creates an immediately-orphaned content URL, if possible
|
protected int |
deleteContentDataEntity(Long id)
Delete the entity with the given ID
|
void |
deleteContentDataForNode(Long nodeId,
Set<Long> qnameIds)
Deletes all alf_content_data rows that are referenced by the given node
|
int |
deleteContentUrls(List<Long> ids)
Delete a batch of content URL entities.
|
protected List<ContentDataEntity> |
getContentDataEntitiesForNodes(Set<Long> nodeIds) |
protected ContentDataEntity |
getContentDataEntity(Long id) |
protected ContentUrlEntity |
getContentUrlEntity(Long id) |
protected ContentUrlEntity |
getContentUrlEntity(String contentUrl) |
protected ContentUrlEntity |
getContentUrlEntityUnreferenced(String contentUrl) |
void |
getContentUrlsOrphaned(ContentDataDAO.ContentUrlHandler contentUrlHandler,
Long maxOrphanTimeExclusive,
int maxResults)
Enumerate all available content URLs that were orphaned on or before the given time
|
void |
setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) |
protected int |
updateContentDataEntity(ContentDataEntity entity)
Update an existing alf_content_data entity
|
int |
updateContentUrlOrphanTime(Long id,
Long orphanTime,
Long oldOrphanTime)
Update a content URL with the given orphan time
|
cacheContentDataForNodes, createContentData, deleteContentData, getContentData, registerDereferencedContentUrl, setContentDataCache, setContentStoreCleaner, setControlDAO, setEncodingDAO, setLocaleDAO, setMimetypeDAO, updateContentDatapublic final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
public org.alfresco.util.Pair<Long,String> createContentUrlOrphaned(String contentUrl, Date orphanTime)
ContentDataDAOcontentUrl - the URL to create if it doesn't existprotected ContentUrlEntity createContentUrlEntity(String contentUrl, long size)
createContentUrlEntity in class AbstractContentDataDAOImplcontentUrl - the content URL to create or search forprotected ContentUrlEntity getContentUrlEntity(Long id)
getContentUrlEntity in class AbstractContentDataDAOImplid - the ID of the content url entityprotected ContentUrlEntity getContentUrlEntity(String contentUrl)
getContentUrlEntity in class AbstractContentDataDAOImplcontentUrl - the URL of the content url entitypublic void getContentUrlsOrphaned(ContentDataDAO.ContentUrlHandler contentUrlHandler, Long maxOrphanTimeExclusive, int maxResults)
ContentDataDAOcontentUrlHandler - the callback object to process the rowsmaxOrphanTimeExclusive - the maximum orphan time (exclusive)maxResults - the maximum number of results (1 or greater)public int updateContentUrlOrphanTime(Long id, Long orphanTime, Long oldOrphanTime)
AbstractContentDataDAOImplupdateContentUrlOrphanTime in class AbstractContentDataDAOImplid - the unique ID of the entityorphanTime - the time (ms since epoch) that the entity was orphanedoldOrphanTime - the orphan time we expect to update for optimistic locking (may be null)public int deleteContentUrls(List<Long> ids)
protected ContentUrlEntity getContentUrlEntityUnreferenced(String contentUrl)
getContentUrlEntityUnreferenced in class AbstractContentDataDAOImplcontentUrl - the URL of the content url entityprotected ContentDataEntity createContentDataEntity(Long contentUrlId, Long mimetypeId, Long encodingId, Long localeId)
AbstractContentDataDAOImplcreateContentDataEntity in class AbstractContentDataDAOImplprotected ContentDataEntity getContentDataEntity(Long id)
getContentDataEntity in class AbstractContentDataDAOImplid - the entity IDprotected List<ContentDataEntity> getContentDataEntitiesForNodes(Set<Long> nodeIds)
getContentDataEntitiesForNodes in class AbstractContentDataDAOImplnodeIds - the node IDprotected int updateContentDataEntity(ContentDataEntity entity)
AbstractContentDataDAOImplupdateContentDataEntity in class AbstractContentDataDAOImplentity - the existing entity that will be updatedprotected int deleteContentDataEntity(Long id)
AbstractContentDataDAOImpldeleteContentDataEntity in class AbstractContentDataDAOImplpublic void deleteContentDataForNode(Long nodeId, Set<Long> qnameIds)
ContentDataDAOnodeId - the node IDqnameIds - the content properties to targetCopyright © 2005–2014 Alfresco Software. All rights reserved.