org.alfresco.repo.attributes.hibernate
Class MapEntryDAOHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.alfresco.repo.attributes.hibernate.MapEntryDAOHibernate
All Implemented Interfaces:
MapEntryDAO, org.springframework.beans.factory.InitializingBean

public class MapEntryDAOHibernate
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements MapEntryDAO

Hibernate implementation of persistence for MapEntries.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
MapEntryDAOHibernate()
           
 
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.
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapEntryDAOHibernate

public MapEntryDAOHibernate()
Method Detail

delete

public void delete(MapEntry entry)
Description copied from interface: MapEntryDAO
Delete a MapEntry.

Specified by:
delete in interface MapEntryDAO

delete

public void delete(MapAttribute mapAttr)
Description copied from interface: MapEntryDAO
Delete all entries for a map.

Specified by:
delete in interface MapEntryDAO
Parameters:
mapAttr - The map to purge.

get

public MapEntry get(MapEntryKey key)
Description copied from interface: MapEntryDAO
Get an entry by name.

Specified by:
get in interface MapEntryDAO
Parameters:
key - The key of the entry.
Returns:
A MapEntry or null.

get

public java.util.List get(MapAttribute mapAttr)
Description copied from interface: MapEntryDAO
Retrieve all the entries in a map.

Specified by:
get in interface MapEntryDAO
Returns:
A List of all entries in the given map.

save

public void save(MapEntry entry)
Description copied from interface: MapEntryDAO
Save a MapEntry.

Specified by:
save in interface MapEntryDAO
Parameters:
entry - To save.

size

public int size(MapAttribute mapAttr)
Description copied from interface: MapEntryDAO
Get the number of entries in a MapAttribute.

Specified by:
size in interface MapEntryDAO
Parameters:
mapAttr - The MapAttribute/
Returns:
The number of entries.

evict

public void evict(MapEntry entry)
Description copied from interface: MapEntryDAO
Evict an entry.

Specified by:
evict in interface MapEntryDAO


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