org.restafarian.core.dao.hibernate
Class LookupTableEntryDaoHibernate

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.LookupTableEntryDaoHibernate
All Implemented Interfaces:
Dao, LookupTableEntryDao, org.springframework.beans.factory.InitializingBean

public class LookupTableEntryDaoHibernate
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements LookupTableEntryDao

This is the LookupTableEntry data access object.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
LookupTableEntryDaoHibernate()
           
 
Method Summary
 void delete(int id)
          Deletes the LookupTableEntry with the specified id.
 java.util.List findAll()
          Returns all LookupTableEntries in the database.
 java.util.List findByExample(LookupTableEntry lookupTableEntry)
          Returns all LookupTableEntries in the database that match the specified search criteria.
 LookupTableEntry findById(int id)
          Returns the LookupTableEntry with the specified id.
 java.util.List findByProperty(java.lang.String propertyName, java.lang.Object propertyValue)
          Returns all LookupTableEntries in the database that match the specified search criteria.
 LookupTableEntry findByTableIdEntryId(java.lang.String tableId, java.lang.String entryId)
          Returns the LookupTableEntry with the specified table id and entry id.
 void save(LookupTableEntry lookupTableEntry)
          Saves the LookupTableEntry 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

LookupTableEntryDaoHibernate

public LookupTableEntryDaoHibernate()
Method Detail

findAll

public java.util.List findAll()

Returns all LookupTableEntries in the database.

Specified by:
findAll in interface LookupTableEntryDao
Returns:
all LookupTableEntries in the database

findByExample

public java.util.List findByExample(LookupTableEntry lookupTableEntry)

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

Specified by:
findByExample in interface LookupTableEntryDao
Parameters:
lookupTableEntry - an example LookupTableEntry
Returns:
all LookupTableEntries 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 LookupTableEntries in the database that match the specified search criteria.

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

findById

public LookupTableEntry findById(int id)

Returns the LookupTableEntry with the specified id.

Specified by:
findById in interface LookupTableEntryDao
Parameters:
id - the id of the requested lookupTableEntry
Returns:
the LookupTableEntry with the specified id

findByTableIdEntryId

public LookupTableEntry findByTableIdEntryId(java.lang.String tableId,
                                             java.lang.String entryId)

Returns the LookupTableEntry with the specified table id and entry id.

Specified by:
findByTableIdEntryId in interface LookupTableEntryDao
Parameters:
id - the id of the requested look-up table
id - the id of the requested entry
Returns:
the requested LookupTableEntry

save

public void save(LookupTableEntry lookupTableEntry)

Saves the LookupTableEntry passed.

Specified by:
save in interface LookupTableEntryDao
Parameters:
lookupTableEntry - the lookupTableEntry to save

delete

public void delete(int id)

Deletes the LookupTableEntry with the specified id.

Specified by:
delete in interface LookupTableEntryDao
Parameters:
id - the id of the lookupTableEntry to delete


Copyright © 2008. All Rights Reserved.