org.alfresco.repo.attributes
Interface MapEntryDAO

All Known Implementing Classes:
MapEntryDAOHibernate

public interface MapEntryDAO

Interface for MapEntry persistence.


Method Summary
 void delete(MapAttribute mapAttr)
          Delete all entries for a map.
 void delete(MapEntry entry)
          Delete a MapEntry.
 void evict(MapEntry entry)
          Evict an entry.
 java.util.List get(MapAttribute mapAttr)
          Retrieve all the entries in a map.
 MapEntry get(MapEntryKey key)
          Get an entry by name.
 void save(MapEntry entry)
          Save a MapEntry.
 int size(MapAttribute mapAttr)
          Get the number of entries in a MapAttribute.
 

Method Detail

save

void save(MapEntry entry)
Save a MapEntry.

Parameters:
entry - To save.

delete

void delete(MapEntry entry)
Delete a MapEntry.

Parameters:
entry -

delete

void delete(MapAttribute mapAttr)
Delete all entries for a map.

Parameters:
mapAttr - The map to purge.

get

MapEntry get(MapEntryKey key)
Get an entry by name.

Parameters:
key - The key of the entry.
Returns:
A MapEntry or null.

get

java.util.List get(MapAttribute mapAttr)
Retrieve all the entries in a map.

Parameters:
mapAttr -
Returns:
A List of all entries in the given map.

size

int size(MapAttribute mapAttr)
Get the number of entries in a MapAttribute.

Parameters:
mapAttr - The MapAttribute/
Returns:
The number of entries.

evict

void evict(MapEntry entry)
Evict an entry.

Parameters:
entry -


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.