Reworked MapEntry schema for better cache performance.

Set Attribute entities to be not lazy.
Additional AttributeService testing.
Fixed DoubleAttributeImpl's declaration to implement DoubleAttribute.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5566 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-04-26 15:53:13 +00:00
parent 2888a3737c
commit e73ce68e8f
19 changed files with 150 additions and 107 deletions

View File

@@ -31,11 +31,7 @@ package org.alfresco.repo.attributes;
*/
public class MapEntryImpl implements MapEntry
{
private long fID;
private MapAttribute fMap;
private String fKey;
private MapEntryKey fKey;
private Attribute fAttribute;
@@ -43,11 +39,9 @@ public class MapEntryImpl implements MapEntry
{
}
public MapEntryImpl(MapAttribute map,
String key,
public MapEntryImpl(MapEntryKey key,
Attribute attribute)
{
fMap = map;
fKey = key;
fAttribute = attribute;
}
@@ -69,26 +63,10 @@ public class MapEntryImpl implements MapEntry
fAttribute = attr;
}
/* (non-Javadoc)
* @see org.alfresco.repo.attributes.MapEntry#getId()
*/
public long getId()
{
return fID;
}
/**
* Setter.
*/
public void setId(long id)
{
fID = id;
}
/* (non-Javadoc)
* @see org.alfresco.repo.attributes.MapEntry#getKey()
*/
public String getKey()
public MapEntryKey getKey()
{
return fKey;
}
@@ -96,24 +74,8 @@ public class MapEntryImpl implements MapEntry
/**
* Setter.
*/
public void setKey(String key)
public void setKey(MapEntryKey key)
{
fKey = key;
}
/* (non-Javadoc)
* @see org.alfresco.repo.attributes.MapEntry#getMap()
*/
public MapAttribute getMap()
{
return fMap;
}
/**
* Setter.
*/
public void setMap(MapAttribute map)
{
fMap = map;
}
}