public class PatchDAOImpl extends AbstractPatchDAOImpl
| Modifier and Type | Class and Description |
|---|---|
static class |
PatchDAOImpl.Oracle
Oracle-specific DAO
|
static class |
PatchDAOImpl.PostgreSQL
PostgreSQL-specific DAO
|
| Modifier and Type | Field and Description |
|---|---|
protected org.mybatis.spring.SqlSessionTemplate |
template |
| Constructor and Description |
|---|
PatchDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeBatch()
Write a batch of insert or update commands
|
List<org.alfresco.service.cmr.repository.NodeRef> |
getChildrenOfTheSharedSurfConfigFolder(Long minNodeId,
Long maxNodeId)
Finds folders of the shared surf-config (for all tenants):
company_home/sites/surf-config/components
company_home/sites/surf-config/pages
company_home/sites/surf-config/pages/user
company_home/sites/surf-config/pages/user{userId}
|
long |
getCountNodesWithAspects(Set<org.alfresco.service.namespace.QName> qnames) |
long |
getCountNodesWithTypId(org.alfresco.service.namespace.QName typeQName)
Gets the total number of nodes which match the given Type QName.
|
long |
getMaxAdmNodeID() |
List<Long> |
getNodesByAspectQNameId(Long aspectQNameId,
Long minNodeId,
Long maxNodeId)
Find all the nodes ids with the given aspect
|
List<Long> |
getNodesByContentPropertyMimetypeId(Long mimetypeId,
Long minNodeId,
Long maxNodeId)
Find all the nodes ids with the given content property set with the given mimetype
|
List<Long> |
getNodesByTypeQNameAndAspectQNameId(long typeQNameId,
long aspectQNameId,
long minNodeId,
long maxNodeId)
Find all the nodes ids with the given aspect and type
|
List<Long> |
getNodesByTypeQNameId(Long typeQNameId,
Long minNodeId,
Long maxNodeId)
Find all the nodes ids with the given type
|
List<Long> |
getNodesByTypeUriId(Long nsId,
Long minNodeId,
Long maxNodeId)
Find all the nodes ids with the given type uri
|
List<org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,String>> |
getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName,
String namePattern)
Query for a list of nodes that have a given type and share the same name pattern (SQL LIKE syntax)
|
void |
setContentDataDAO(ContentDataDAO contentDataDAO) |
void |
setLocaleDAO(LocaleDAO localeDAO) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) |
void |
startBatch()
Start a batch of insert or update commands
|
int |
updateContentMimetypeIds(Long oldMimetypeId,
Long newMimetypeId)
Update all alf_content_data mimetype references.
|
int |
updatePersonSizeCurrentType()
Update all alf_node_properties of 'sizeCurrent' name to have correct persisted type of Long.
|
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
public void setQnameDAO(QNameDAO qnameDAO)
public void setLocaleDAO(LocaleDAO localeDAO)
public void setContentDataDAO(ContentDataDAO contentDataDAO)
public void startBatch()
BatchingDAOpublic void executeBatch()
BatchingDAOpublic long getMaxAdmNodeID()
public int updateContentMimetypeIds(Long oldMimetypeId, Long newMimetypeId)
PatchDAOoldMimetypeId - the ID to search fornewMimetypeId - the ID to change topublic int updatePersonSizeCurrentType()
PatchDAOpublic List<org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,String>> getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName, String namePattern)
PatchDAOtypeQName - the node typenamePattern - the SQL LIKE patternpublic long getCountNodesWithAspects(Set<org.alfresco.service.namespace.QName> qnames)
qnames - the qnames to search forpublic List<Long> getNodesByTypeQNameId(Long typeQNameId, Long minNodeId, Long maxNodeId)
PatchDAOtypeQNameId - - the id of the type qnameminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivepublic List<Long> getNodesByTypeUriId(Long nsId, Long minNodeId, Long maxNodeId)
PatchDAOnsId - - the id of the type qname uriminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivepublic List<Long> getNodesByAspectQNameId(Long aspectQNameId, Long minNodeId, Long maxNodeId)
PatchDAOaspectQNameId - - the id of the aspect qnameminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivepublic List<Long> getNodesByContentPropertyMimetypeId(Long mimetypeId, Long minNodeId, Long maxNodeId)
PatchDAOmimetypeId - - the id of the content data mimetypeminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivepublic List<Long> getNodesByTypeQNameAndAspectQNameId(long typeQNameId, long aspectQNameId, long minNodeId, long maxNodeId)
PatchDAOtypeQNameId - - the id of the type qnameaspectQNameId - - the id of the aspect qnameminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivepublic long getCountNodesWithTypId(org.alfresco.service.namespace.QName typeQName)
PatchDAOtypeQName - the qname to search forpublic List<org.alfresco.service.cmr.repository.NodeRef> getChildrenOfTheSharedSurfConfigFolder(Long minNodeId, Long maxNodeId)
PatchDAOminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusiveCopyright © 2005–2018 Alfresco Software. All rights reserved.