mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
This is a checkpoint of metadata work. Nothing works, but it compiles.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5458 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
43
source/java/org/alfresco/repo/attributes/MapEntryDAO.java
Normal file
43
source/java/org/alfresco/repo/attributes/MapEntryDAO.java
Normal file
@@ -0,0 +1,43 @@
|
||||
package org.alfresco.repo.attributes;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Interface for MapEntry persistence.
|
||||
* @author britt
|
||||
*/
|
||||
public interface MapEntryDAO
|
||||
{
|
||||
/**
|
||||
* Save a MapEntry.
|
||||
* @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 mapAttr The map to get the entry from.
|
||||
* @param key The key of the entry.
|
||||
* @return A MapEntry or null.
|
||||
*/
|
||||
public MapEntry get(MapAttribute mapAttr, String 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);
|
||||
}
|
Reference in New Issue
Block a user