Node cache changes (step): properties and aspects are retrieved with the node's version

- Perform basic node version check when reading properties and aspects from DB
 - This is just the start.  Next step is to change the key of the cache itself.
 - Includes fix for rev 31109: Use setNodeAclId() to set ACL IDs


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31121 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2011-10-11 10:58:48 +00:00
parent d961c8f966
commit 87bee8092d
8 changed files with 262 additions and 99 deletions

View File

@@ -29,6 +29,7 @@ import java.util.List;
public class NodePropertyEntity
{
private Long nodeId;
private Long nodeVersion;
private NodePropertyKey key;
private NodePropertyValue value;
/** Carries data for queries and updates */
@@ -46,7 +47,7 @@ public class NodePropertyEntity
@Override
public String toString()
{
return "NodePropertyEntity [node=" + nodeId + ", key=" + key + ", value=" + value + "]";
return "NodePropertyEntity [node=" + nodeId + ", nodeVersion=" + nodeVersion + ", key=" + key + ", value=" + value + "]";
}
public Long getNodeId()
@@ -59,6 +60,16 @@ public class NodePropertyEntity
this.nodeId = nodeId;
}
public Long getNodeVersion()
{
return nodeVersion;
}
public void setNodeVersion(Long nodeVersion)
{
this.nodeVersion = nodeVersion;
}
public NodePropertyKey getKey()
{
return key;