public class AtInterfaceDaoHibernate extends AbstractDaoHibernate<OnmsAtInterface,Integer> implements AtInterfaceDao
Constructor and Description |
---|
AtInterfaceDaoHibernate() |
Modifier and Type | Method and Description |
---|---|
void |
deactivateForSourceNodeIdIfOlderThan(int nodeid,
Date scanTime) |
void |
deleteForNodeSourceIdIfOlderThan(int nodeid,
Date scanTime) |
Collection<OnmsAtInterface> |
findByMacAddress(String macAddress) |
OnmsAtInterface |
findByNodeAndAddress(Integer nodeId,
InetAddress ipAddress,
String macAddress) |
Collection<OnmsAtInterface> |
getAtInterfaceForAddress(InetAddress address)
Get the
OnmsAtInterface that goes with a given address and
node. |
void |
markDeletedIfNodeDeleted() |
void |
setStatusForNode(Integer nodeid,
OnmsArpInterface.StatusType action) |
void |
setStatusForNodeAndIfIndex(Integer nodeid,
Integer ifIndex,
OnmsArpInterface.StatusType action) |
void |
setStatusForNodeAndIp(Integer nodeid,
String ipAddr,
OnmsArpInterface.StatusType action) |
bulkDelete, clear, countAll, countMatching, countMatching, delete, delete, deleteAll, find, find, findAll, findMatching, findMatching, findMatchingObjects, findObjects, findUnique, flush, get, initDao, initialize, load, lock, merge, queryInt, queryInt, save, saveOrUpdate, 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, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
public void markDeletedIfNodeDeleted()
markDeletedIfNodeDeleted
in interface AtInterfaceDao
public void deactivateForSourceNodeIdIfOlderThan(int nodeid, Date scanTime)
deactivateForSourceNodeIdIfOlderThan
in interface AtInterfaceDao
public void deleteForNodeSourceIdIfOlderThan(int nodeid, Date scanTime)
deleteForNodeSourceIdIfOlderThan
in interface AtInterfaceDao
public Collection<OnmsAtInterface> findByMacAddress(String macAddress)
findByMacAddress
in interface AtInterfaceDao
public void setStatusForNode(Integer nodeid, OnmsArpInterface.StatusType action)
setStatusForNode
in interface AtInterfaceDao
public void setStatusForNodeAndIp(Integer nodeid, String ipAddr, OnmsArpInterface.StatusType action)
setStatusForNodeAndIp
in interface AtInterfaceDao
public void setStatusForNodeAndIfIndex(Integer nodeid, Integer ifIndex, OnmsArpInterface.StatusType action)
setStatusForNodeAndIfIndex
in interface AtInterfaceDao
public OnmsAtInterface findByNodeAndAddress(Integer nodeId, InetAddress ipAddress, String macAddress)
findByNodeAndAddress
in interface AtInterfaceDao
public Collection<OnmsAtInterface> getAtInterfaceForAddress(InetAddress address)
AtInterfaceDao
OnmsAtInterface
that goes with a given address and
node. If it does not exist, but the IP interface does exist, then
create it. If an equivalent IP interface does *not* exist, returns
null.getAtInterfaceForAddress
in interface AtInterfaceDao
OnmsAtInterface
Copyright © 2015. All rights reserved.