org.alfresco.repo.avm.hibernate
Class AVMAspectNameDAOHibernate

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

public class AVMAspectNameDAOHibernate
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements AVMAspectNameDAO

Hibernate implementation of AVMAspectNameDAO.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AVMAspectNameDAOHibernate()
           
 
Method Summary
 void delete(AVMAspectName aspectName)
          Delete an Aspect Name.
 void delete(AVMNode node)
          Delete all Aspect Names on a given node.
 void delete(AVMNode node, QName aspectName)
          Delete a single aspect name from a node.
 boolean exists(AVMNode node, QName name)
          Does the given node have the given asset.
 java.util.List get(AVMNode node)
          Get all Aspect Names for a given node.
 java.util.Iterator iterator()
          Get an iterator over all aspect instances.
 void save(AVMAspectName aspectName)
          Persist an aspect name.
 
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

AVMAspectNameDAOHibernate

public AVMAspectNameDAOHibernate()
Method Detail

save

public void save(AVMAspectName aspectName)
Persist an aspect name.

Specified by:
save in interface AVMAspectNameDAO
Parameters:
aspectName - The item to persist.

delete

public void delete(AVMAspectName aspectName)
Delete an Aspect Name.

Specified by:
delete in interface AVMAspectNameDAO
Parameters:
aspectName - The item to delete.

delete

public void delete(AVMNode node,
                   QName aspectName)
Delete a single aspect name from a node.

Specified by:
delete in interface AVMAspectNameDAO
Parameters:
node - The node.
aspectName - The aspect name.

delete

public void delete(AVMNode node)
Delete all Aspect Names on a given node.

Specified by:
delete in interface AVMAspectNameDAO
Parameters:
node - The given node.

get

public java.util.List get(AVMNode node)
Get all Aspect Names for a given node.

Specified by:
get in interface AVMAspectNameDAO
Parameters:
node - The AVM Node.
Returns:
A List of AVMAspectNames.

exists

public boolean exists(AVMNode node,
                      QName name)
Does the given node have the given asset.

Specified by:
exists in interface AVMAspectNameDAO
Parameters:
node - The AVM node.
name - The QName of the Aspect.
Returns:
Whether the aspect is there.

iterator

public java.util.Iterator iterator()
Description copied from interface: AVMAspectNameDAO
Get an iterator over all aspect instances.

Specified by:
iterator in interface AVMAspectNameDAO
Returns:


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