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