org.alfresco.repo.attributes.hibernate
Class AttributeDAOHibernate

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.AttributeDAOHibernate
All Implemented Interfaces:
AttributeDAO, org.springframework.beans.factory.InitializingBean

public class AttributeDAOHibernate
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements AttributeDAO

Hibernate implementation of persistence for Attributes.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AttributeDAOHibernate()
           
 
Method Summary
 void delete(Attribute attr)
          Delete an attribute (recursively).
 void delete(MapAttribute map, AttrQuery query)
          Delete entries from a map that match the given query.
 void evict(Attribute attr)
          Evict an Attribute from the session cache.
 void evictFlat(Attribute attr)
          Evict an Attribute non-recursively.
 java.util.List find(MapAttribute map, AttrQuery query)
          Find all attributes that match a given path and AttrQuery.
 void flush()
          Force a flush.
 void save(Attribute attr)
          Save an attribute (recursively).
 void setListEntryDao(ListEntryDAO dao)
           
 void setMapEntryDao(MapEntryDAO dao)
           
 
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

AttributeDAOHibernate

public AttributeDAOHibernate()
Method Detail

setMapEntryDao

public void setMapEntryDao(MapEntryDAO dao)

setListEntryDao

public void setListEntryDao(ListEntryDAO dao)

delete

public void delete(Attribute attr)
Description copied from interface: AttributeDAO
Delete an attribute (recursively).

Specified by:
delete in interface AttributeDAO
Parameters:
attr - The attribute to delete.

find

public java.util.List find(MapAttribute map,
                           AttrQuery query)
Description copied from interface: AttributeDAO
Find all attributes that match a given path and AttrQuery.

Specified by:
find in interface AttributeDAO
Parameters:
map - The map within which to query.
query - The AttrQuery.
Returns:
A List of key, attribute value pairs.

delete

public void delete(MapAttribute map,
                   AttrQuery query)
Description copied from interface: AttributeDAO
Delete entries from a map that match the given query.

Specified by:
delete in interface AttributeDAO

save

public void save(Attribute attr)
Description copied from interface: AttributeDAO
Save an attribute (recursively).

Specified by:
save in interface AttributeDAO
Parameters:
attr - The attribute to save.

evict

public void evict(Attribute attr)
Description copied from interface: AttributeDAO
Evict an Attribute from the session cache.

Specified by:
evict in interface AttributeDAO

flush

public void flush()
Description copied from interface: AttributeDAO
Force a flush.

Specified by:
flush in interface AttributeDAO

evictFlat

public void evictFlat(Attribute attr)
Description copied from interface: AttributeDAO
Evict an Attribute non-recursively.

Specified by:
evictFlat in interface AttributeDAO


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