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, updatecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, countAll, countMatching, delete, findAll, findMatching, flush, get, initialize, load, lock, updatepublic List<NCSComponent> findByType(String type)
findByType in interface NCSComponentRepositorypublic NCSComponent findByTypeAndForeignIdentity(String type, String foreignSource, String foreignId)
findByTypeAndForeignIdentity in interface NCSComponentRepositorypublic List<NCSComponent> findComponentsThatDependOn(NCSComponent component)
findComponentsThatDependOn in interface NCSComponentRepositorypublic List<NCSComponent> findComponentsWithChild(NCSComponent component)
public List<NCSComponent> findComponentsWithAttribute(String attrKey, String attrValue)
findComponentsWithAttribute in interface NCSComponentRepositorypublic List<NCSComponent> findComponentsByNodeId(int nodeid)
findComponentsByNodeId in interface NCSComponentRepositorypublic Long save(NCSComponent entity) throws org.springframework.dao.DataAccessException
AbstractDaoHibernatesave
save in interface OnmsDao<NCSComponent,Long>save in interface NCSComponentRepositorysave 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
AbstractDaoHibernatesaveOrUpdate
saveOrUpdate in interface OnmsDao<NCSComponent,Long>saveOrUpdate in interface NCSComponentRepositorysaveOrUpdate in class AbstractDaoHibernate<NCSComponent,Long>entity - a T object.org.springframework.dao.DataAccessException - if any.Copyright © 2020. All rights reserved.