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