org.opennms.netmgt.dao
Interface OnmsDao<T,K extends Serializable>

All Known Subinterfaces:
AcknowledgmentDao, AlarmDao, ApplicationDao, AssetRecordDao, CategoryDao, DataLinkInterfaceDao, DemandPollDao, DistPollerDao, EventCountDao, EventDao, IpInterfaceDao, LinkStateDao, LocationMonitorDao, MonitoredServiceDao, NodeDao, NotificationDao, OnmsMapDao, OnmsMapElementDao, OutageDao, ReportCatalogDao, ResourceReferenceDao, ServiceTypeDao, SnmpInterfaceDao, StatisticsReportDao, StatisticsReportDataDao, UserNotificationDao
All Known Implementing Classes:
AbstractCachingDaoHibernate, AbstractDaoHibernate, AcknowledgmentDaoHibernate, AlarmDaoHibernate, ApplicationDaoHibernate, AssetRecordDaoHibernate, CategoryDaoHibernate, DataLinkInterfaceDaoHibernate, DemandPollDaoHibernate, DistPollerDaoHibernate, EventCountDaoHibernate, EventDaoHibernate, IpInterfaceDaoHibernate, LinkStateDaoHibernate, LocationMonitorDaoHibernate, MonitoredServiceDaoHibernate, NodeDaoHibernate, NotificationDaoHibernate, OnmsMapDaoHibernate, OnmsMapElementDaoHibernate, OutageDaoHibernate, ReportCatalogDaoHibernate, ResourceReferenceDaoHibernate, ServiceTypeDaoHibernate, SnmpInterfaceDaoHibernate, StatisticsReportDaoHibernate, StatisticsReportDataDaoHibernate, UserNotificationDaoHibernate

public interface OnmsDao<T,K extends Serializable>

OnmsDao interface.

Version:
$Id: $
Author:
ranger

Method Summary
 void clear()
          clear
 int countAll()
          countAll
 int countMatching(OnmsCriteria onmsCrit)
          countMatching
 void delete(T entity)
          delete
 List<T> findAll()
          findAll
 List<T> findMatching(OnmsCriteria criteria)
          findMatching
 void flush()
          flush
 T get(K id)
          get
 void initialize(Object obj)
          initialize
 T load(K id)
          load
 void save(T entity)
          save
 void saveOrUpdate(T entity)
          saveOrUpdate
 void update(T entity)
          update
 

Method Detail

initialize

void initialize(Object obj)

initialize

Type Parameters:
T - a T object.
K - a K object.
Parameters:
obj - a Object object.

flush

void flush()

flush


clear

void clear()

clear


countAll

int countAll()

countAll

Returns:
a int.

delete

void delete(T entity)

delete

Parameters:
entity - a T object.

findAll

List<T> findAll()

findAll

Returns:
a List object.

findMatching

List<T> findMatching(OnmsCriteria criteria)

findMatching

Parameters:
criteria - a OnmsCriteria object.
Returns:
a List object.

countMatching

int countMatching(OnmsCriteria onmsCrit)

countMatching

Parameters:
onmsCrit - a OnmsCriteria object.
Returns:
a int.

get

T get(K id)

get

Parameters:
id - a K object.
Returns:
a T object.

load

T load(K id)

load

Parameters:
id - a K object.
Returns:
a T object.

save

void save(T entity)

save

Parameters:
entity - a T object.

saveOrUpdate

void saveOrUpdate(T entity)

saveOrUpdate

Parameters:
entity - a T object.

update

void update(T entity)

update

Parameters:
entity - a T object.


Copyright © 2011. All Rights Reserved.