Upgrade overhaul: Retiring ancient patches and fixing de-Hibernate problems

- Moved setting of txn isolation level to ControlDAO
 - Retired patches where target schema is < 100
  - Removed unreferenced patch implementations
  - Removed unreferenced DB scripts
 - Moved patch-specific queries (ACL upgrade counts) into patch-common-SqlMap.xml
 - Fixed count query result processing (max of nothing is NULL) leading to unboxing NPEs
 - All DM-modifying patches depend on DmPermissionsPatch i.e. it will normally run immediately after SQL scripts


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21908 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2010-08-20 14:45:18 +00:00
parent bda714b422
commit a22fdceccd
45 changed files with 654 additions and 4468 deletions

View File

@@ -57,15 +57,7 @@ public abstract class AbstractPatchDAOImpl implements PatchDAO, BatchingDAO
/**
* {@inheritDoc}
*/
public boolean supportsProgressTracking()
{
return supportsProgressTrackingImpl();
}
/**
* {@inheritDoc}
*/
public Long getAVMNodesCountWhereNewInStore()
public long getAVMNodesCountWhereNewInStore()
{
return getAVMNodeEntitiesCountWhereNewInStore();
}
@@ -95,15 +87,14 @@ public abstract class AbstractPatchDAOImpl implements PatchDAO, BatchingDAO
return updateAVMNodeEntitiesSetAcl(aclId, nodeIds);
}
protected abstract boolean supportsProgressTrackingImpl();
protected abstract Long getAVMNodeEntitiesCountWhereNewInStore();
protected 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()
public long getMaxAclId()
{
return getMaxAclEntityId();
}
@@ -225,7 +216,7 @@ public abstract class AbstractPatchDAOImpl implements PatchDAO, BatchingDAO
Long localeId,
Long longValue);
protected abstract Long getMaxAclEntityId();
protected abstract long getMaxAclEntityId();
protected abstract long getDmNodeEntitiesCount();
protected abstract long getDmNodeEntitiesCountWithNewACLs(Long above);
protected abstract List<Long> selectAllAclEntityIds();