magoffin.matt.ma2.dao.hbm
Class HibernateThemeDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by magoffin.matt.dao.hbm.GenericHibernateDao<T,PK>
              extended by magoffin.matt.dao.hbm.GenericIndexableHibernateDao<Theme,java.lang.Long>
                  extended by magoffin.matt.ma2.dao.hbm.HibernateThemeDao
All Implemented Interfaces:
magoffin.matt.dao.GenericDao<Theme,java.lang.Long>, magoffin.matt.dao.IndexableDao<java.lang.Long>, ThemeDao, org.springframework.beans.factory.InitializingBean

public class HibernateThemeDao
extends magoffin.matt.dao.hbm.GenericIndexableHibernateDao<Theme,java.lang.Long>
implements ThemeDao

Hibernate impolementation of ThemeDao.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
matt.magoffin

Nested Class Summary
 
Nested classes/interfaces inherited from class magoffin.matt.dao.hbm.GenericHibernateDao
magoffin.matt.dao.hbm.GenericHibernateDao.UpdateMode
 
Field Summary
static java.lang.String QUERY_THEME_ALL
          Find all themes.
static java.lang.String QUERY_THEME_BY_NAME
          Find a theme by name.
 
Fields inherited from class magoffin.matt.dao.hbm.GenericIndexableHibernateDao
DEFAULT_INDEX_BATCH_SIZE
 
Fields inherited from class magoffin.matt.dao.hbm.GenericHibernateDao
DEFAULT_BATCH_FLUSH_COUNT, log
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateThemeDao()
          Default constructor.
 
Method Summary
 java.util.List<Theme> findAllThemes()
          Get all available themes.
protected  java.lang.Long getPrimaryKey(Theme domainObject)
           
 Theme getThemeForName(java.lang.String name)
          Get a Theme by its name.
 
Methods inherited from class magoffin.matt.dao.hbm.GenericIndexableHibernateDao
getIndexBatchSize, getIndexObjectIdColumnName, getIndexObjectTableAlias, getIndexRowMapper, getIndexTimeZone, getJdbcTemplate, getSqlIndexAll, getSqlIndexDateRange, getSqlParamIdxWithDateRange, index, populateIndexRow, setIndexBatchSize, setIndexObjectIdColumnName, setIndexObjectTableAlias, setIndexRowMapper, setIndexTimeZone, setJdbcTemplate, setSqlIndexAll, setSqlIndexDateRange, setSqlParamIdxWithDateRange
 
Methods inherited from class magoffin.matt.dao.hbm.GenericHibernateDao
delete, executeLiveCriteriaBatchCallback, executeNamedQueryBatchCallback, executeStatelessCriteriaBatchCallback, findByNamedQuery, findByNamedQuery, findByNamedQuery, findByNamedQuery, findByNamedQuery, get, getBatchFlushCount, getType, getUpdateMode, save, setBatchFlushCount, setUpdateMode, store, update
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, 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 magoffin.matt.dao.GenericDao
delete, get, store
 

Field Detail

QUERY_THEME_ALL

public static final java.lang.String QUERY_THEME_ALL
Find all themes.

See Also:
Constant Field Values

QUERY_THEME_BY_NAME

public static final java.lang.String QUERY_THEME_BY_NAME
Find a theme by name.

See Also:
Constant Field Values
Constructor Detail

HibernateThemeDao

public HibernateThemeDao()
Default constructor.

Method Detail

getPrimaryKey

protected java.lang.Long getPrimaryKey(Theme domainObject)
Specified by:
getPrimaryKey in class magoffin.matt.dao.hbm.GenericHibernateDao<Theme,java.lang.Long>

findAllThemes

public java.util.List<Theme> findAllThemes()
Description copied from interface: ThemeDao
Get all available themes.

Specified by:
findAllThemes in interface ThemeDao
Returns:
the themes

getThemeForName

public Theme getThemeForName(java.lang.String name)
Description copied from interface: ThemeDao
Get a Theme by its name.

Specified by:
getThemeForName in interface ThemeDao
Parameters:
name - the name
Returns:
the Theme, or null if not found