org.opennms.netmgt.dao.hibernate
Class OnmsMapElementDaoHibernate

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<OnmsMapElement,Integer>
              extended by org.opennms.netmgt.dao.hibernate.OnmsMapElementDaoHibernate
All Implemented Interfaces:
OnmsDao<OnmsMapElement,Integer>, OnmsMapElementDao, org.springframework.beans.factory.InitializingBean

public class OnmsMapElementDaoHibernate
extends AbstractDaoHibernate<OnmsMapElement,Integer>
implements OnmsMapElementDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
OnmsMapElementDaoHibernate()
           
 
Method Summary
 void deleteElementsByElementIdAndType(int id, String type)
           
 void deleteElementsByMapId(OnmsMap map)
           
 void deleteElementsByType(String type)
           
 Collection<OnmsMapElement> findAll(Integer offset, Integer limit)
           
 Collection<OnmsMapElement> findElementsByElementIdAndType(int elementId, String type)
           
 Collection<OnmsMapElement> findElementsByType(String type)
           
 OnmsMapElement findMapElement(int elementId, String type, OnmsMap map)
           
 OnmsMapElement findMapElementById(int id)
           
 Collection<OnmsMapElement> findMapElementsByMapId(OnmsMap map)
           
 
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
bulkDelete, clear, countAll, countMatching, delete, deleteAll, evict, find, find, findAll, findMatching, findMatchingObjects, findObjects, findUnique, findUnique, findUnique, flush, get, initialize, load, merge, queryInt, queryInt, save, 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.opennms.netmgt.dao.OnmsDao
clear, countAll, countMatching, delete, findAll, findMatching, flush, get, initialize, load, save, saveOrUpdate, update
 

Constructor Detail

OnmsMapElementDaoHibernate

public OnmsMapElementDaoHibernate()
Method Detail

findAll

public Collection<OnmsMapElement> findAll(Integer offset,
                                          Integer limit)
Specified by:
findAll in interface OnmsMapElementDao

findMapElementById

public OnmsMapElement findMapElementById(int id)
Specified by:
findMapElementById in interface OnmsMapElementDao

findMapElementsByMapId

public Collection<OnmsMapElement> findMapElementsByMapId(OnmsMap map)
Specified by:
findMapElementsByMapId in interface OnmsMapElementDao

deleteElementsByMapId

public void deleteElementsByMapId(OnmsMap map)
Specified by:
deleteElementsByMapId in interface OnmsMapElementDao

deleteElementsByType

public void deleteElementsByType(String type)
Specified by:
deleteElementsByType in interface OnmsMapElementDao

deleteElementsByElementIdAndType

public void deleteElementsByElementIdAndType(int id,
                                             String type)
Specified by:
deleteElementsByElementIdAndType in interface OnmsMapElementDao

findElementsByElementIdAndType

public Collection<OnmsMapElement> findElementsByElementIdAndType(int elementId,
                                                                 String type)
Specified by:
findElementsByElementIdAndType in interface OnmsMapElementDao

findElementsByType

public Collection<OnmsMapElement> findElementsByType(String type)
Specified by:
findElementsByType in interface OnmsMapElementDao

findMapElement

public OnmsMapElement findMapElement(int elementId,
                                     String type,
                                     OnmsMap map)
Specified by:
findMapElement in interface OnmsMapElementDao


Copyright © 2009. All Rights Reserved.