mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user