mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.1 to HEAD
6944: More hibernate session cache taming. 6945: Times for commits are close to linear in the number of items submitted. 6946: Missing break statement. (Courtesy of Jan). 6948: Fixed session cache eviction problem triggered by resetLayer(). 6956: Wrapped AVMService and AttributeService in TransactionResourceInterceptor. Reverted log4j.properties git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7368 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -3,7 +3,7 @@ package org.alfresco.repo.attributes;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Interface for MapEntry persistence.
|
||||
* Interface for MapEntry persistence.
|
||||
* @author britt
|
||||
*/
|
||||
public interface MapEntryDAO
|
||||
@@ -13,37 +13,43 @@ public interface MapEntryDAO
|
||||
* @param entry To save.
|
||||
*/
|
||||
public void save(MapEntry entry);
|
||||
|
||||
|
||||
/**
|
||||
* Delete a MapEntry.
|
||||
* @param entry
|
||||
*/
|
||||
public void delete(MapEntry entry);
|
||||
|
||||
|
||||
/**
|
||||
* Delete all entries for a map.
|
||||
* @param mapAttr The map to purge.
|
||||
*/
|
||||
public void delete(MapAttribute mapAttr);
|
||||
|
||||
|
||||
/**
|
||||
* Get an entry by name.
|
||||
* @param key The key of the entry.
|
||||
* @return A MapEntry or null.
|
||||
*/
|
||||
public MapEntry get(MapEntryKey key);
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve all the entries in a map.
|
||||
* @param mapAttr
|
||||
* @return A List of all entries in the given map.
|
||||
*/
|
||||
public List<MapEntry> get(MapAttribute mapAttr);
|
||||
|
||||
|
||||
/**
|
||||
* Get the number of entries in a MapAttribute.
|
||||
* @param mapAttr The MapAttribute/
|
||||
* @return The number of entries.
|
||||
*/
|
||||
public int size(MapAttribute mapAttr);
|
||||
|
||||
/**
|
||||
* Evict an entry.
|
||||
* @param entry
|
||||
*/
|
||||
public void evict(MapEntry entry);
|
||||
}
|
||||
|
Reference in New Issue
Block a user