org.alfresco.repo.attributes.hibernate
Class GlobalAttributeEntryDAOHibernate

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

public class GlobalAttributeEntryDAOHibernate
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements GlobalAttributeEntryDAO

Hibernate implementation of Global Attribute Entries.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
GlobalAttributeEntryDAOHibernate()
           
 
Method Summary
 void delete(GlobalAttributeEntry entry)
          Delete an entry.
 void delete(java.lang.String name)
          Delete an entry by name.
 GlobalAttributeEntry get(java.lang.String name)
          Get an attribute by name.
 java.util.List getKeys()
          Get all keys for global attributes.
 void save(GlobalAttributeEntry entry)
          Save an entry.
 void setAttributeDao(AttributeDAO 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

GlobalAttributeEntryDAOHibernate

public GlobalAttributeEntryDAOHibernate()
Method Detail

setAttributeDao

public void setAttributeDao(AttributeDAO dao)

delete

public void delete(GlobalAttributeEntry entry)
Description copied from interface: GlobalAttributeEntryDAO
Delete an entry.

Specified by:
delete in interface GlobalAttributeEntryDAO
Parameters:
entry - To delete.

delete

public void delete(java.lang.String name)
Description copied from interface: GlobalAttributeEntryDAO
Delete an entry by name.

Specified by:
delete in interface GlobalAttributeEntryDAO
Parameters:
name - The name of the entry.

get

public GlobalAttributeEntry get(java.lang.String name)
Description copied from interface: GlobalAttributeEntryDAO
Get an attribute by name.

Specified by:
get in interface GlobalAttributeEntryDAO
Parameters:
name - The name of the attribute.
Returns:
The entry or null.

save

public void save(GlobalAttributeEntry entry)
Description copied from interface: GlobalAttributeEntryDAO
Save an entry.

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

getKeys

public java.util.List getKeys()
Description copied from interface: GlobalAttributeEntryDAO
Get all keys for global attributes.

Specified by:
getKeys in interface GlobalAttributeEntryDAO
Returns:
A list of all top level keys.


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