AVM DAO - add rollover for avm_store/avm_node "vers" col

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16992 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2009-10-16 16:26:54 +00:00
parent 0e9e98d6cd
commit 3731cb9b42
8 changed files with 299 additions and 233 deletions

View File

@@ -189,7 +189,6 @@ public abstract class AbstractAVMNodeDAOImpl implements AVMNodeDAO
{
throw new ConcurrencyFailureException("AVMNode with ID (" + nodeEntity.getId() + ") no longer exists or has been updated concurrently");
}
nodeEntity.setVers(nodeEntity.getVers()+1);
}
/**
@@ -209,7 +208,6 @@ public abstract class AbstractAVMNodeDAOImpl implements AVMNodeDAO
{
throw new ConcurrencyFailureException("AVMNode with ID (" + nodeEntity.getId() + ") no longer exists or has been updated concurrently");
}
nodeEntity.setVers(nodeEntity.getVers()+1);
// update cache
avmNodeCache.removeByKey(nodeEntity.getId());
@@ -232,7 +230,6 @@ public abstract class AbstractAVMNodeDAOImpl implements AVMNodeDAO
{
throw new ConcurrencyFailureException("AVMNode with ID (" + nodeEntity.getId() + ") no longer exists or has been updated concurrently");
}
nodeEntity.setVers(nodeEntity.getVers()+1);
// update cache
avmNodeCache.removeByKey(nodeEntity.getId());