public class AtInterfaceDaoHibernate extends AbstractDaoHibernate<OnmsAtInterface,Integer> implements AtInterfaceDao
Constructor and Description |
---|
AtInterfaceDaoHibernate() |
Modifier and Type | Method and Description |
---|---|
void |
deactivateForSourceNodeIdIfOlderThan(int nodeid,
Timestamp scanTime) |
void |
deleteForNodeSourceIdIfOlderThan(int nodeid,
Timestamp scanTime) |
Collection<OnmsAtInterface> |
findByMacAddress(String macAddress) |
OnmsAtInterface |
findByNodeAndAddress(Integer nodeId,
InetAddress ipAddress,
String macAddress) |
OnmsAtInterface |
getAtInterfaceForAddress(Connection dbConn,
InetAddress address)
Get the
OnmsAtInterface that goes with a given address and
node. |
void |
markDeletedIfNodeDeleted() |
void |
saveAtInterface(Connection dbConn,
OnmsAtInterface saveMe) |
void |
setStatusForNode(Integer nodeid,
Character action) |
void |
setStatusForNodeAndIfIndex(Integer nodeid,
Integer ifIndex,
Character action) |
void |
setStatusForNodeAndIp(Integer nodeid,
String ipAddr,
Character action) |
bulkDelete, clear, countAll, countMatching, countMatching, delete, delete, deleteAll, evict, find, find, findAll, findMatching, findMatching, findMatchingObjects, findObjects, findUnique, findUnique, 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, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
public void markDeletedIfNodeDeleted()
markDeletedIfNodeDeleted
in interface AtInterfaceDao
public void deactivateForSourceNodeIdIfOlderThan(int nodeid, Timestamp scanTime)
deactivateForSourceNodeIdIfOlderThan
in interface AtInterfaceDao
public void deleteForNodeSourceIdIfOlderThan(int nodeid, Timestamp scanTime)
deleteForNodeSourceIdIfOlderThan
in interface AtInterfaceDao
public Collection<OnmsAtInterface> findByMacAddress(String macAddress)
findByMacAddress
in interface AtInterfaceDao
public void setStatusForNode(Integer nodeid, Character action)
setStatusForNode
in interface AtInterfaceDao
public void setStatusForNodeAndIp(Integer nodeid, String ipAddr, Character action)
setStatusForNodeAndIp
in interface AtInterfaceDao
public void setStatusForNodeAndIfIndex(Integer nodeid, Integer ifIndex, Character action)
setStatusForNodeAndIfIndex
in interface AtInterfaceDao
public OnmsAtInterface findByNodeAndAddress(Integer nodeId, InetAddress ipAddress, String macAddress)
findByNodeAndAddress
in interface AtInterfaceDao
public void saveAtInterface(Connection dbConn, OnmsAtInterface saveMe)
saveAtInterface
in interface AtInterfaceDao
public OnmsAtInterface getAtInterfaceForAddress(Connection dbConn, 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
dbConn
- the database connection, if necessaryOnmsAtInterface
Copyright © 2015. All Rights Reserved.