Class JdbcLocationRequestDao
java.lang.Object
net.solarnetwork.central.common.dao.jdbc.JdbcLocationRequestDao
- All Implemented Interfaces:
LocationRequestDao,net.solarnetwork.dao.FilterableDao<LocationRequest,,Long, LocationRequestCriteria> net.solarnetwork.dao.GenericDao<LocationRequest,Long>
JDBC implementation of
LocationRequestDao.- 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 -
Constructor Summary
ConstructorsConstructorDescriptionJdbcLocationRequestDao(org.springframework.jdbc.core.JdbcOperations jdbcOps) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintdelete(Long id, LocationRequestCriteria filter) Remove persisted entities.voiddelete(LocationRequest entity) find(Long id, LocationRequestCriteria filter) Get a persisted entity by its primary key.net.solarnetwork.dao.FilterResults<LocationRequest, Long> findFiltered(LocationRequestCriteria filter, List<net.solarnetwork.domain.SortDescriptor> sorts, Integer offset, Integer max) Class<? extends LocationRequest> save(LocationRequest entity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.solarnetwork.dao.FilterableDao
findFilteredMethods inherited from interface net.solarnetwork.dao.GenericDao
entityEventTopic, entityKey
-
Constructor Details
-
JdbcLocationRequestDao
public JdbcLocationRequestDao(org.springframework.jdbc.core.JdbcOperations jdbcOps) Constructor.- Parameters:
jdbcOps- the JDBC operations- Throws:
IllegalArgumentException- if any argument is null
-
-
Method Details
-
findFiltered
public net.solarnetwork.dao.FilterResults<LocationRequest,Long> findFiltered(LocationRequestCriteria filter, List<net.solarnetwork.domain.SortDescriptor> sorts, Integer offset, Integer max) - Specified by:
findFilteredin interfacenet.solarnetwork.dao.FilterableDao<LocationRequest,Long, LocationRequestCriteria>
-
getObjectType
- Specified by:
getObjectTypein interfacenet.solarnetwork.dao.GenericDao<LocationRequest,Long>
-
save
- Specified by:
savein interfacenet.solarnetwork.dao.GenericDao<LocationRequest,Long>
-
get
- Specified by:
getin interfacenet.solarnetwork.dao.GenericDao<LocationRequest,Long>
-
getAll
- Specified by:
getAllin interfacenet.solarnetwork.dao.GenericDao<LocationRequest,Long>
-
delete
- Specified by:
deletein interfacenet.solarnetwork.dao.GenericDao<LocationRequest,Long>
-
find
Description copied from interface:LocationRequestDaoGet a persisted entity by its primary key.- Specified by:
findin interfaceLocationRequestDao- Parameters:
id- the primary key to retrievefilter- the optional filter- Returns:
- the domain object, or null if not available
-
delete
Description copied from interface:LocationRequestDaoRemove persisted entities.- Specified by:
deletein interfaceLocationRequestDao- Parameters:
id- optional ID to deletefilter- optional filter to delete- Returns:
- the number of entities deleted
-