Interface LocationRequestDao
- All Superinterfaces:
net.solarnetwork.dao.FilterableDao<LocationRequest,,Long, LocationRequestCriteria> net.solarnetwork.dao.GenericDao<LocationRequest,Long>
- All Known Implementing Classes:
JdbcLocationRequestDao
public interface LocationRequestDao
extends net.solarnetwork.dao.GenericDao<LocationRequest,Long>, net.solarnetwork.dao.FilterableDao<LocationRequest,Long,LocationRequestCriteria>
DAO API for location requests.
- Since:
- 1.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.dao.GenericDao
net.solarnetwork.dao.GenericDao.EntityEventType, net.solarnetwork.dao.GenericDao.StandardSortKey -
Field Summary
Fields inherited from interface net.solarnetwork.dao.GenericDao
ENTITY_EVENT_ENTITY_ID_PROPERTY, ENTITY_EVENT_ENTITY_PROPERTY, ENTITY_EVENT_TOPIC_TEMPLATE, SORT_BY_CREATED_ASCENDING, SORT_BY_CREATED_DESCENDING, SORT_BY_CREATED_ID_ASCENDING, SORT_BY_CREATED_ID_DESCENDING, SORT_BY_ID_ASCENDING, SORT_BY_ID_DESCENDING -
Method Summary
Modifier and TypeMethodDescriptionintdelete(Long id, LocationRequestCriteria filter) Remove persisted entities.find(Long id, LocationRequestCriteria filter) Get a persisted entity by its primary key.Methods inherited from interface net.solarnetwork.dao.FilterableDao
findFiltered, findFilteredMethods inherited from interface net.solarnetwork.dao.GenericDao
delete, entityEventTopic, entityKey, get, getAll, getObjectType, save
-
Method Details
-
find
Get a persisted entity by its primary key.- Parameters:
id- the primary key to retrievefilter- the optional filter- Returns:
- the domain object, or null if not available
-
delete
Remove persisted entities.- Parameters:
id- optional ID to deletefilter- optional filter to delete- Returns:
- the number of entities deleted
-