org.promotego.dao.hibernate
Class HibernateAddressDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.promotego.dao.hibernate.HibernateDaoSupport<Address>
              extended by org.promotego.dao.hibernate.HibernateAddressDao
All Implemented Interfaces:
AddressDao, Dao<Address>, org.springframework.beans.factory.InitializingBean

public class HibernateAddressDao
extends HibernateDaoSupport<Address>
implements AddressDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateAddressDao()
           
 
Method Summary
 Address getByName(java.lang.String name, java.lang.Long userId)
           
 java.lang.String getCountQuery()
           
 java.lang.String getFindAllQuery()
           
 java.lang.String getIdQuery()
           
 
Methods inherited from class org.promotego.dao.hibernate.HibernateDaoSupport
create, create, delete, deleteAll, findAll, getById, getCount, reattach, saveOrUpdate, update
 
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
 
Methods inherited from interface org.promotego.dao.interfaces.Dao
create, create, delete, deleteAll, findAll, getById, getCount, reattach, saveOrUpdate, update
 

Constructor Detail

HibernateAddressDao

public HibernateAddressDao()
Method Detail

getFindAllQuery

public java.lang.String getFindAllQuery()
Specified by:
getFindAllQuery in class HibernateDaoSupport<Address>

getIdQuery

public java.lang.String getIdQuery()
Specified by:
getIdQuery in class HibernateDaoSupport<Address>

getCountQuery

public java.lang.String getCountQuery()
Specified by:
getCountQuery in class HibernateDaoSupport<Address>

getByName

@Transactional
public Address getByName(java.lang.String name,
                                       java.lang.Long userId)
Specified by:
getByName in interface AddressDao


Copyright © 2007. All Rights Reserved.