Package org.opennms.web.rest.v2
Class AbstractDaoRestService<T,Q,K extends Serializable,I extends Serializable>
- java.lang.Object
-
- org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO<T,T,Q,K,I>
-
- org.opennms.web.rest.v2.AbstractDaoRestService<T,Q,K,I>
-
- Direct Known Subclasses:
AbstractNodeDependentRestService,ApplicationRestService,IfServiceRestService,IpInterfaceRestService,MinionRestService,MonitoringLocationRestService,NodeRestService,NotificationRestService,OutageRestService,SnmpInterfaceRestService,UserDefinedLinkRestService
public abstract class AbstractDaoRestService<T,Q,K extends Serializable,I extends Serializable> extends AbstractDaoRestServiceWithDTO<T,T,Q,K,I>
Abstract class for use by V2 endpoints that do not support DTOs. SeeAbstractDaoRestServiceWithDTOfor more details.
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description AbstractDaoRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TmapDTOToEntity(T dto)Map the given instance of the DTO to the corresponding entity.TmapEntityToDTO(T entity)Map the given instance of the entity to the corresponding DTO.-
Methods inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
applyLimitOffsetOrderBy, create, createListWrapper, createSpecific, delete, deleteMany, doCreate, doDelete, doGet, doUpdate, doUpdateProperties, get, get, getCount, getCriteria, getCriteriaBehaviors, getCriteriaBuilder, getDao, getDaoClass, getException, getProperties, getPropertyValues, getQueryBeanClass, getQueryProperties, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
mapEntityToDTO
public T mapEntityToDTO(T entity)
Description copied from class:AbstractDaoRestServiceWithDTOMap the given instance of the entity to the corresponding DTO.- Specified by:
mapEntityToDTOin classAbstractDaoRestServiceWithDTO<T,T,Q,K extends Serializable,I extends Serializable>
-
mapDTOToEntity
public T mapDTOToEntity(T dto)
Description copied from class:AbstractDaoRestServiceWithDTOMap the given instance of the DTO to the corresponding entity.- Specified by:
mapDTOToEntityin classAbstractDaoRestServiceWithDTO<T,T,Q,K extends Serializable,I extends Serializable>
-
-