org.restafarian.core.dao.hibernate
Class LookupTableDaoHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.restafarian.core.dao.hibernate.LookupTableDaoHibernate
All Implemented Interfaces:
Dao, LookupTableDao, org.springframework.beans.factory.InitializingBean

public class LookupTableDaoHibernate
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements LookupTableDao

This is the LookupTable data access object.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
LookupTableDaoHibernate()
           
 
Method Summary
 void delete(java.lang.String id)
          Deletes the LookupTable with the specified id.
 java.util.List findAll()
          Returns all LookupTables in the database.
 java.util.List findByExample(LookupTable lookupTable)
          Returns all LookupTables in the database that match the specified search criteria.
 LookupTable findById(java.lang.String id)
          Returns the LookupTable with the specified id.
 java.util.List findByProperty(java.lang.String propertyName, java.lang.Object propertyValue)
          Returns all LookupTables in the database that match the specified search criteria.
 void save(LookupTable lookupTable)
          Saves the LookupTable passed.
 
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

LookupTableDaoHibernate

public LookupTableDaoHibernate()
Method Detail

findAll

public java.util.List findAll()

Returns all LookupTables in the database.

Specified by:
findAll in interface LookupTableDao
Returns:
all LookupTables in the database

findByExample

public java.util.List findByExample(LookupTable lookupTable)

Returns all LookupTables in the database that match the specified search criteria.

Specified by:
findByExample in interface LookupTableDao
Parameters:
lookupTable - an example LookupTable
Returns:
all LookupTables in the database that match the specified search criteria

findByProperty

public java.util.List findByProperty(java.lang.String propertyName,
                                     java.lang.Object propertyValue)

Returns all LookupTables in the database that match the specified search criteria.

Specified by:
findByProperty in interface LookupTableDao
Parameters:
propertyName - the name of the specified property
propertyValue - the search value for the specified property
Returns:
all LookupTables in the database that match the specified search criteria

findById

public LookupTable findById(java.lang.String id)

Returns the LookupTable with the specified id.

Specified by:
findById in interface LookupTableDao
Parameters:
id - the id of the requested lookupTable
Returns:
the LookupTable with the specified id

save

public void save(LookupTable lookupTable)

Saves the LookupTable passed.

Specified by:
save in interface LookupTableDao
Parameters:
lookupTable - the lookupTable to save

delete

public void delete(java.lang.String id)

Deletes the LookupTable with the specified id.

Specified by:
delete in interface LookupTableDao
Parameters:
id - the id of the lookupTable to delete


Copyright © 2008. All Rights Reserved.