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

@@ -373,6 +373,18 @@ public class AVMNodeEntity
this.vers = vers;
}
public void incrementVers()
{
if (this.vers >= Long.MAX_VALUE)
{
this.vers = 0L;
}
else
{
this.vers++;
}
}
@Override
public int hashCode()
{