org.appfuse.persistence.hibernate
Class TemplateDAOHibernate

java.lang.Object
  extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
      extended byorg.appfuse.persistence.hibernate.TemplateDAOHibernate
All Implemented Interfaces:
DAO, InitializingBean, TemplateDAO

public class TemplateDAOHibernate
extends HibernateDaoSupport
implements TemplateDAO


Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
TemplateDAOHibernate()
           
 
Method Summary
 Template getTemplate(Long id)
          Get a template based on its primary key.
 void removeTemplate(Template template)
          Removes a template from the database.
 void saveTemplate(Template template)
          Saves a template to the database.
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateDAOHibernate

public TemplateDAOHibernate()
Method Detail

getTemplate

public Template getTemplate(Long id)
                     throws DAOException
Description copied from interface: TemplateDAO
Get a template based on its primary key.

Specified by:
getTemplate in interface TemplateDAO
Parameters:
id - the template's primary key
Throws:
DAOException - data access exception (fatal)
See Also:
TemplateDAO.getTemplate(Long)

saveTemplate

public void saveTemplate(Template template)
                  throws DAOException
Description copied from interface: TemplateDAO
Saves a template to the database.

Specified by:
saveTemplate in interface TemplateDAO
Parameters:
template - the modified template
Throws:
DAOException
See Also:
TemplateDAO.saveTemplate(Template)

removeTemplate

public void removeTemplate(Template template)
                    throws DAOException
Description copied from interface: TemplateDAO
Removes a template from the database.

Specified by:
removeTemplate in interface TemplateDAO
Parameters:
template - the template to delete
Throws:
DAOException
See Also:
TemplateDAO.removeTemplate(Template)


Copyright © 2002-2004