|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.domain.patch.AbstractPatchDAOImpl
org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl
public class PatchDAOImpl
iBatis-specific implementation of the AVMPatch DAO.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.alfresco.repo.domain.patch.PatchDAO |
|---|
PatchDAO.StringHandler |
| Constructor Summary | |
|---|---|
PatchDAOImpl()
|
|
| Method Summary | |
|---|---|
protected int |
deleteAclEntities(java.util.List aclIds)
|
protected int |
deleteAclMemberEntitiesForAcls(java.util.List aclIds)
|
protected void |
deleteAllOldAttrsImpl()
|
protected int |
deleteDanglingAceEntities()
|
void |
executeBatch()
|
protected java.util.List |
getAdmOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
Results are of the form: |
java.util.List |
getAuthoritiesWithNonUtf8Crcs()
|
protected long |
getAVMNodeEntitiesCountWhereNewInStore()
|
protected java.util.List |
getAVMNodeEntitiesWithEmptyGUID(int maxResults)
|
java.util.List |
getAvmNodesWithOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
|
int |
getChildAssocCount()
|
java.util.List |
getChildAssocsForCrcFix(java.lang.Long minAssocId,
int maxResults)
The results map contains: |
protected long |
getDmNodeEntitiesCount()
|
protected long |
getDmNodeEntitiesCountWithNewACLs(java.lang.Long above)
|
protected long |
getMaxAclEntityId()
|
long |
getMaxAdmNodeID()
|
long |
getMaxAvmNodeID()
|
java.util.List |
getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName,
java.lang.String namePattern)
Query for a list of nodes that have a given type and share the same name pattern (SQL LIKE syntax) |
protected java.util.List |
getNullVersionLayeredDirectoryNodeEntities(int maxResults)
|
protected java.util.List |
getNullVersionLayeredFileNodeEntities(int maxResults)
|
protected void |
getOldAttrAVMLocksImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
|
protected void |
getOldAttrChainingURSImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
|
protected java.util.List |
getOldAttrCustomNamesImpl()
|
protected void |
getOldAttrPropertyBackedBeansImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
|
protected void |
getOldAttrTenantsImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
|
protected java.util.List |
selectAllAclEntityIds()
|
protected java.util.List |
selectNonDanglingAclEntityIds()
|
protected void |
selectUsersWithoutUsageProp(org.alfresco.service.cmr.repository.StoreRef storeRef,
PatchDAO.StringHandler handler)
|
void |
setQnameDAO(QNameDAO qnameDAO)
|
void |
setSqlMapClientTemplate(org.springframework.orm.ibatis.SqlMapClientTemplate sqlMapClientTemplate)
|
void |
startBatch()
|
protected void |
updateAdmOldContentProperty(java.lang.Long nodeId,
java.lang.Long qnameId,
java.lang.Integer listIndex,
java.lang.Long localeId,
java.lang.Long longValue)
|
protected int |
updateAVMNodeEntitiesNullifyAcl(java.util.List nodeIds)
|
protected int |
updateAVMNodeEntitiesSetAcl(long aclId,
java.util.List nodeIds)
|
int |
updateChildAssocCrc(java.lang.Long assocId,
java.lang.Long childNodeNameCrc,
java.lang.Long qnameCrc)
|
int |
updateContentMimetypeIds(java.lang.Long oldMimetypeId,
java.lang.Long newMimetypeId)
Update all alf_content_data mimetype references. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatchDAOImpl()
| Method Detail |
|---|
public void setSqlMapClientTemplate(org.springframework.orm.ibatis.SqlMapClientTemplate sqlMapClientTemplate)
public void setQnameDAO(QNameDAO qnameDAO)
public void startBatch()
public void executeBatch()
protected long getAVMNodeEntitiesCountWhereNewInStore()
getAVMNodeEntitiesCountWhereNewInStore in class AbstractPatchDAOImplprotected java.util.List getAVMNodeEntitiesWithEmptyGUID(int maxResults)
getAVMNodeEntitiesWithEmptyGUID in class AbstractPatchDAOImplprotected java.util.List getNullVersionLayeredDirectoryNodeEntities(int maxResults)
getNullVersionLayeredDirectoryNodeEntities in class AbstractPatchDAOImplprotected java.util.List getNullVersionLayeredFileNodeEntities(int maxResults)
getNullVersionLayeredFileNodeEntities in class AbstractPatchDAOImplpublic long getMaxAvmNodeID()
public java.util.List getAvmNodesWithOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
public long getMaxAdmNodeID()
protected java.util.List getAdmOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
AbstractPatchDAOImpl
nodeId: java.lang.Long
qnameId: java.lang.Long
listIndex: java.lang.Integer
localeId: java.lang.Long
stringValue: java.lang.String
getAdmOldContentProperties in class AbstractPatchDAOImplminNodeId - inclusive lower bound for Node IDmaxNodeId - exclusive upper bound for Node ID
protected void updateAdmOldContentProperty(java.lang.Long nodeId,
java.lang.Long qnameId,
java.lang.Integer listIndex,
java.lang.Long localeId,
java.lang.Long longValue)
updateAdmOldContentProperty in class AbstractPatchDAOImplnodeId - part of the unique keyqnameId - part of the unique keylistIndex - part of the unique keylocaleId - part of the unique keylongValue - the new ContentData ID
public int updateContentMimetypeIds(java.lang.Long oldMimetypeId,
java.lang.Long newMimetypeId)
PatchDAO
oldMimetypeId - the ID to search fornewMimetypeId - the ID to change to
protected void selectUsersWithoutUsageProp(org.alfresco.service.cmr.repository.StoreRef storeRef,
PatchDAO.StringHandler handler)
selectUsersWithoutUsageProp in class AbstractPatchDAOImplprotected int updateAVMNodeEntitiesNullifyAcl(java.util.List nodeIds)
updateAVMNodeEntitiesNullifyAcl in class AbstractPatchDAOImpl
protected int updateAVMNodeEntitiesSetAcl(long aclId,
java.util.List nodeIds)
updateAVMNodeEntitiesSetAcl in class AbstractPatchDAOImplprotected long getMaxAclEntityId()
getMaxAclEntityId in class AbstractPatchDAOImplprotected long getDmNodeEntitiesCount()
getDmNodeEntitiesCount in class AbstractPatchDAOImplprotected long getDmNodeEntitiesCountWithNewACLs(java.lang.Long above)
getDmNodeEntitiesCountWithNewACLs in class AbstractPatchDAOImplprotected java.util.List selectAllAclEntityIds()
selectAllAclEntityIds in class AbstractPatchDAOImplprotected java.util.List selectNonDanglingAclEntityIds()
selectNonDanglingAclEntityIds in class AbstractPatchDAOImplprotected int deleteDanglingAceEntities()
deleteDanglingAceEntities in class AbstractPatchDAOImplprotected int deleteAclEntities(java.util.List aclIds)
deleteAclEntities in class AbstractPatchDAOImplprotected int deleteAclMemberEntitiesForAcls(java.util.List aclIds)
deleteAclMemberEntitiesForAcls in class AbstractPatchDAOImplpublic java.util.List getAuthoritiesWithNonUtf8Crcs()
public int getChildAssocCount()
public java.util.List getChildAssocsForCrcFix(java.lang.Long minAssocId,
int maxResults)
PatchDAO
]]>
minAssocId - the minimum child assoc IDmaxResults - the number of child associations to fetch
public int updateChildAssocCrc(java.lang.Long assocId,
java.lang.Long childNodeNameCrc,
java.lang.Long qnameCrc)
public java.util.List getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName,
java.lang.String namePattern)
PatchDAO
typeQName - the node typenamePattern - the SQL LIKE pattern
protected void getOldAttrTenantsImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
getOldAttrTenantsImpl in class AbstractPatchDAOImplprotected void getOldAttrAVMLocksImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
getOldAttrAVMLocksImpl in class AbstractPatchDAOImplprotected void getOldAttrPropertyBackedBeansImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
getOldAttrPropertyBackedBeansImpl in class AbstractPatchDAOImplprotected void getOldAttrChainingURSImpl(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
getOldAttrChainingURSImpl in class AbstractPatchDAOImplprotected java.util.List getOldAttrCustomNamesImpl()
getOldAttrCustomNamesImpl in class AbstractPatchDAOImplprotected void deleteAllOldAttrsImpl()
deleteAllOldAttrsImpl in class AbstractPatchDAOImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||