Package org.opennms.netmgt.dao.hibernate
Class ServiceTypeDaoHibernate
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<T,DbKey>
-
- org.opennms.netmgt.dao.hibernate.AbstractCachingDaoHibernate<OnmsServiceType,Integer,String>
-
- org.opennms.netmgt.dao.hibernate.ServiceTypeDaoHibernate
-
- All Implemented Interfaces:
OnmsDao<OnmsServiceType,Integer>
,ServiceTypeDao
,org.springframework.beans.factory.InitializingBean
public class ServiceTypeDaoHibernate extends AbstractCachingDaoHibernate<OnmsServiceType,Integer,String> implements ServiceTypeDao
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
m_criteriaConverter
-
-
Constructor Summary
Constructors Constructor Description ServiceTypeDaoHibernate()
Constructor for ServiceTypeDaoHibernate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnmsServiceType
findByName(String name)
findByNameprotected String
getKey(OnmsServiceType serviceType)
getKey-
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractCachingDaoHibernate
clear, delete, deleteAll, findAll, findByCacheKey, get, load, merge, save, saveOrUpdate, update
-
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
buildHibernateCallback, bulkDelete, countAll, countMatching, countMatching, delete, find, find, findMatching, findMatching, findObjects, findUnique, flush, initDao, initialize, lock, queryInt, queryInt
-
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.dao.api.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
getKey
protected String getKey(OnmsServiceType serviceType)
getKey
- Specified by:
getKey
in classAbstractCachingDaoHibernate<OnmsServiceType,Integer,String>
- Parameters:
serviceType
- a T object.- Returns:
- a CacheKey object.
-
findByName
public OnmsServiceType findByName(String name)
findByName
- Specified by:
findByName
in interfaceServiceTypeDao
- Parameters:
name
- aString
object.- Returns:
- a
OnmsServiceType
object.
-
-