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

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

public interface OnmsDao<T,K extends Serializable>

OnmsDao interface.


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 lock()
          This is used to lock the table in order to implement upsert type operations
 void save(T entity)
          save
 void saveOrUpdate(T entity)
          saveOrUpdate
 void update(T entity)
          update
 

Method Detail

lock

void lock()
This is used to lock the table in order to implement upsert type operations


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.