public abstract class AbstractPatchDAOImpl extends Object implements PatchDAO, org.alfresco.ibatis.BatchingDAO
This provides additional queries used by patches.
PatchDAO.StringHandler| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPatchDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
deleteAclEntities(List<Long> aclIds) |
protected abstract int |
deleteAclMemberEntitiesForAcls(List<Long> aclIds) |
int |
deleteAclMembersForAcls(List<Long> aclIds) |
int |
deleteAcls(List<Long> aclIds) |
protected abstract int |
deleteDanglingAceEntities() |
int |
deleteDanglingAces() |
protected abstract List<Map<String,Object>> |
getAdmOldContentProperties(Long minNodeId,
Long maxNodeId)
Results are of the form:
|
protected abstract long |
getAVMNodeEntitiesCountWhereNewInStore() |
protected abstract List<AVMNodeEntity> |
getAVMNodeEntitiesWithEmptyGUID(int maxResults) |
long |
getAVMNodesCountWhereNewInStore() |
long |
getDmNodeCount()
How many DM nodes are there?
|
long |
getDmNodeCountWithNewACLs(Long above)
How many DM nodes are three with new ACls (to track patch progress)
|
protected abstract long |
getDmNodeEntitiesCount() |
protected abstract long |
getDmNodeEntitiesCountWithNewACLs(Long above) |
List<AVMNodeEntity> |
getEmptyGUIDS(int count) |
protected abstract long |
getMaxAclEntityId() |
long |
getMaxAclId()
Get the max acl id
|
List<AVMNodeEntity> |
getNullVersionLayeredDirectories(int count) |
protected abstract List<AVMNodeEntity> |
getNullVersionLayeredDirectoryNodeEntities(int maxResults) |
protected abstract List<AVMNodeEntity> |
getNullVersionLayeredFileNodeEntities(int maxResults) |
List<AVMNodeEntity> |
getNullVersionLayeredFiles(int count) |
protected abstract void |
getOldAttrAVMLocksImpl(org.apache.ibatis.session.ResultHandler resultHandler) |
protected abstract void |
getOldAttrChainingURSImpl(org.apache.ibatis.session.ResultHandler resultHandler) |
List<String> |
getOldAttrCustomNames()
Get custom global attribute names (if any)
|
protected abstract List<String> |
getOldAttrCustomNamesImpl() |
protected abstract void |
getOldAttrPropertyBackedBeansImpl(org.apache.ibatis.session.ResultHandler resultHandler) |
protected abstract void |
getOldAttrTenantsImpl(org.apache.ibatis.session.ResultHandler resultHandler) |
void |
migrateOldAttrAVMLocks(org.apache.ibatis.session.ResultHandler resultHandler)
Migrate old AVM Lock attributes (if any)
|
void |
migrateOldAttrChainingURS(org.apache.ibatis.session.ResultHandler resultHandler)
Migrate old Chaining User Registry Synchronizer attributes (if any)
|
void |
migrateOldAttrPropertyBackedBeans(org.apache.ibatis.session.ResultHandler resultHandler)
Migrate old Property-Backed Bean attributes (if any)
|
void |
migrateOldAttrTenants(org.apache.ibatis.session.ResultHandler resultHandler)
Migrate old Tenant attributes (if any)
|
protected abstract List<Long> |
selectAllAclEntityIds() |
List<Long> |
selectAllAclIds() |
protected abstract List<Long> |
selectNonDanglingAclEntityIds() |
List<Long> |
selectNonDanglingAclIds() |
void |
setContentDataDAO(ContentDataDAO contentDataDAO)
Set the DAO that supplies
ContentData IDs |
protected abstract void |
updateAdmOldContentProperty(Long nodeId,
Long qnameId,
Integer listIndex,
Long localeId,
Long longValue) |
void |
updateAdmV31ContentProperties(Long minNodeId,
Long maxNodeId)
Migrates DM content properties from the old V3.1 format (String-based
ContentData.toString())
to the new V3.2 format (ID based storage using ContentDataDAO). |
protected abstract int |
updateAVMNodeEntitiesNullifyAcl(List<Long> nodeIds) |
protected abstract int |
updateAVMNodeEntitiesSetAcl(long aclId,
List<Long> nodeIds) |
int |
updateAVMNodesNullifyAcl(List<Long> nodeIds) |
int |
updateAVMNodesSetAcl(long aclId,
List<Long> nodeIds) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSizeCurrentProp, getAclsThatInheritFromNonPrimaryParent, getAclsThatInheritWithInheritanceUnset, getAuthoritiesWithNonUtf8Crcs, getAvmNodesWithOldContentProperties, getChildAssocCount, getChildAssocsForCrcFix, getChildrenOfTheSharedSurfConfigFolder, getCountNodesWithAspects, getCountNodesWithTypId, getDefiningAclsThatDoNotInheritCorrectlyFromThePrimaryParent, getMaxAdmNodeID, getMaxAvmNodeID, getMaxChildAssocId, getNodesByAspectQNameId, getNodesByContentPropertyMimetypeId, getNodesByTypeQNameId, getNodesByTypeUriId, getNodesOfTypeWithNamePattern, getSharedAclsThatDoNotInheritCorrectlyFromTheirDefiningAcl, getSharedAclsThatDoNotInheritCorrectlyFromThePrimaryParent, migrateOldAttrDropTables, updateChildAssocCrc, updateContentMimetypeIdspublic void setContentDataDAO(ContentDataDAO contentDataDAO)
ContentData IDspublic long getAVMNodesCountWhereNewInStore()
getAVMNodesCountWhereNewInStore in interface PatchDAOpublic List<AVMNodeEntity> getEmptyGUIDS(int count)
getEmptyGUIDS in interface PatchDAOpublic List<AVMNodeEntity> getNullVersionLayeredDirectories(int count)
getNullVersionLayeredDirectories in interface PatchDAOpublic List<AVMNodeEntity> getNullVersionLayeredFiles(int count)
getNullVersionLayeredFiles in interface PatchDAOpublic int updateAVMNodesNullifyAcl(List<Long> nodeIds)
updateAVMNodesNullifyAcl in interface PatchDAOpublic int updateAVMNodesSetAcl(long aclId,
List<Long> nodeIds)
updateAVMNodesSetAcl in interface PatchDAOprotected abstract long getAVMNodeEntitiesCountWhereNewInStore()
protected abstract List<AVMNodeEntity> getAVMNodeEntitiesWithEmptyGUID(int maxResults)
protected abstract List<AVMNodeEntity> getNullVersionLayeredDirectoryNodeEntities(int maxResults)
protected abstract List<AVMNodeEntity> getNullVersionLayeredFileNodeEntities(int maxResults)
protected abstract int updateAVMNodeEntitiesNullifyAcl(List<Long> nodeIds)
protected abstract int updateAVMNodeEntitiesSetAcl(long aclId,
List<Long> nodeIds)
public long getMaxAclId()
PatchDAOgetMaxAclId in interface PatchDAOpublic long getDmNodeCount()
PatchDAOgetDmNodeCount in interface PatchDAOpublic long getDmNodeCountWithNewACLs(Long above)
PatchDAOgetDmNodeCountWithNewACLs in interface PatchDAOpublic List<Long> selectAllAclIds()
selectAllAclIds in interface PatchDAOpublic List<Long> selectNonDanglingAclIds()
selectNonDanglingAclIds in interface PatchDAOpublic int deleteDanglingAces()
deleteDanglingAces in interface PatchDAOpublic int deleteAcls(List<Long> aclIds)
deleteAcls in interface PatchDAOpublic int deleteAclMembersForAcls(List<Long> aclIds)
deleteAclMembersForAcls in interface PatchDAOpublic void updateAdmV31ContentProperties(Long minNodeId, Long maxNodeId)
ContentData.toString())
to the new V3.2 format (ID based storage using ContentDataDAO).
updateAdmV31ContentProperties in interface PatchDAOminNodeId - the inclusive node ID to limit the updates tomaxNodeId - the exclusive node ID to limit the updates togetAdmOldContentProperties(Long, Long)protected abstract List<Map<String,Object>> getAdmOldContentProperties(Long minNodeId, Long maxNodeId)
nodeId: java.lang.Long
qnameId: java.lang.Long
listIndex: java.lang.Integer
localeId: java.lang.Long
stringValue: java.lang.String
minNodeId - inclusive lower bound for Node IDmaxNodeId - exclusive upper bound for Node IDprotected abstract void updateAdmOldContentProperty(Long nodeId, Long qnameId, Integer listIndex, Long localeId, Long longValue)
nodeId - part of the unique keyqnameId - part of the unique keylistIndex - part of the unique keylocaleId - part of the unique keylongValue - the new ContentData IDprotected abstract long getMaxAclEntityId()
protected abstract long getDmNodeEntitiesCount()
protected abstract long getDmNodeEntitiesCountWithNewACLs(Long above)
protected abstract int deleteDanglingAceEntities()
protected abstract int deleteAclMemberEntitiesForAcls(List<Long> aclIds)
public void migrateOldAttrTenants(org.apache.ibatis.session.ResultHandler resultHandler)
PatchDAOmigrateOldAttrTenants in interface PatchDAOprotected abstract void getOldAttrTenantsImpl(org.apache.ibatis.session.ResultHandler resultHandler)
public void migrateOldAttrAVMLocks(org.apache.ibatis.session.ResultHandler resultHandler)
PatchDAOmigrateOldAttrAVMLocks in interface PatchDAOprotected abstract void getOldAttrAVMLocksImpl(org.apache.ibatis.session.ResultHandler resultHandler)
public void migrateOldAttrPropertyBackedBeans(org.apache.ibatis.session.ResultHandler resultHandler)
PatchDAOmigrateOldAttrPropertyBackedBeans in interface PatchDAOprotected abstract void getOldAttrPropertyBackedBeansImpl(org.apache.ibatis.session.ResultHandler resultHandler)
public void migrateOldAttrChainingURS(org.apache.ibatis.session.ResultHandler resultHandler)
PatchDAOmigrateOldAttrChainingURS in interface PatchDAOprotected abstract void getOldAttrChainingURSImpl(org.apache.ibatis.session.ResultHandler resultHandler)
public List<String> getOldAttrCustomNames()
PatchDAOgetOldAttrCustomNames in interface PatchDAOCopyright © 2005–2014 Alfresco Software. All rights reserved.