public class NCSComponentDao extends AbstractDaoHibernate<NCSComponent,Long> implements NCSComponentRepository
Modifier and Type | Class and Description |
---|---|
static class |
NCSComponentDao.InvalidForeignIdException |
static class |
NCSComponentDao.InvalidForeignSourceException |
m_criteriaConverter
Constructor and Description |
---|
NCSComponentDao() |
Modifier and Type | Method and Description |
---|---|
List<NCSComponent> |
findByType(String type) |
NCSComponent |
findByTypeAndForeignIdentity(String type,
String foreignSource,
String foreignId) |
List<NCSComponent> |
findComponentsByNodeId(int nodeid) |
List<NCSComponent> |
findComponentsThatDependOn(NCSComponent component) |
List<NCSComponent> |
findComponentsWithAttribute(String attrKey,
String attrValue) |
List<NCSComponent> |
findComponentsWithChild(NCSComponent component) |
Long |
save(NCSComponent entity)
save
|
void |
saveOrUpdate(NCSComponent entity)
saveOrUpdate
|
bulkDelete, clear, countAll, countMatching, countMatching, delete, delete, deleteAll, find, find, findAll, findMatching, findMatching, findObjects, findUnique, flush, get, initDao, initialize, load, lock, merge, queryInt, queryInt, update
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, countAll, countMatching, delete, findAll, findMatching, flush, get, initialize, load, lock, update
public List<NCSComponent> findByType(String type)
findByType
in interface NCSComponentRepository
public NCSComponent findByTypeAndForeignIdentity(String type, String foreignSource, String foreignId)
findByTypeAndForeignIdentity
in interface NCSComponentRepository
public List<NCSComponent> findComponentsThatDependOn(NCSComponent component)
findComponentsThatDependOn
in interface NCSComponentRepository
public List<NCSComponent> findComponentsWithChild(NCSComponent component)
public List<NCSComponent> findComponentsWithAttribute(String attrKey, String attrValue)
findComponentsWithAttribute
in interface NCSComponentRepository
public List<NCSComponent> findComponentsByNodeId(int nodeid)
findComponentsByNodeId
in interface NCSComponentRepository
public Long save(NCSComponent entity) throws org.springframework.dao.DataAccessException
AbstractDaoHibernate
save
save
in interface OnmsDao<NCSComponent,Long>
save
in interface NCSComponentRepository
save
in class AbstractDaoHibernate<NCSComponent,Long>
entity
- a T object.org.springframework.dao.DataAccessException
- if any.public void saveOrUpdate(NCSComponent entity) throws org.springframework.dao.DataAccessException
AbstractDaoHibernate
saveOrUpdate
saveOrUpdate
in interface OnmsDao<NCSComponent,Long>
saveOrUpdate
in interface NCSComponentRepository
saveOrUpdate
in class AbstractDaoHibernate<NCSComponent,Long>
entity
- a T object.org.springframework.dao.DataAccessException
- if any.Copyright © 2016. All rights reserved.