org.hyperic.hq.appdef.server.session
Class AgentDAO
java.lang.Object
org.hyperic.hq.dao.HibernateDAO
org.hyperic.hq.appdef.server.session.AgentDAO
public class AgentDAO
- extends HibernateDAO
Methods inherited from class org.hyperic.hq.dao.HibernateDAO |
cacheFindAll, createCriteria, createQuery, findAllOrderByName, findById, findById, flushSession, get, getFactory, getPagedResult, getPagedResult, getPermissionManager, getPersistentClass, getSession, remove, save, size, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentDAO
public AgentDAO(DAOFactory f)
save
public void save(Agent entity)
remove
public void remove(Agent entity)
get
public Agent get(java.lang.Integer id)
findById
public Agent findById(java.lang.Integer id)
create
public Agent create(AgentType type,
java.lang.String address,
java.lang.Integer port,
boolean unidirectional,
java.lang.String authToken,
java.lang.String agentToken,
java.lang.String version)
findAll
public java.util.List findAll()
- Overrides:
findAll
in class HibernateDAO
findByIP
public java.util.List findByIP(java.lang.String ip)
countUsed
public int countUsed()
findByIpAndPort
public Agent findByIpAndPort(java.lang.String address,
int port)
findByAgentToken
public Agent findByAgentToken(java.lang.String token)
findAgents
public java.util.List findAgents(PageInfo pInfo)
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.