Package net.solarnetwork.central.dao
Interface SolarLocationDao
- All Superinterfaces:
FilterableDao<LocationMatch,,Long, Location> GenericDao<SolarLocation,Long>
- All Known Implementing Classes:
MyBatisSolarLocationDao
public interface SolarLocationDao
extends GenericDao<SolarLocation,Long>, FilterableDao<LocationMatch,Long,Location>
DAO API for Location.
-
Method Summary
Modifier and TypeMethodDescriptiongetSolarLocationForLocation(Location criteria) Find a SolarLocation that exactly matches the given criteria.getSolarLocationForNode(Long nodeId) Get the location associated with a node.getSolarLocationForTimeZone(String country, String timeZoneId) Find a SolarLocation for just a country and time zone.Methods inherited from interface net.solarnetwork.central.dao.FilterableDao
findFilteredMethods inherited from interface net.solarnetwork.central.dao.GenericDao
delete, get, getAll, getObjectType, store
-
Method Details
-
getSolarLocationForTimeZone
Find a SolarLocation for just a country and time zone.- Parameters:
country- the countrytimeZoneId- the time zone ID- Returns:
- the SolarLocation, or null if none found
-
getSolarLocationForLocation
Find a SolarLocation that exactly matches the given criteria. By exactly matching, even empty fields must match.- Parameters:
criteria- the search criteria- Returns:
- the matching location, or null if not found
-
getSolarLocationForNode
Get the location associated with a node.- Parameters:
nodeId- the node ID to get the location for- Returns:
- the location, or null if not found
- Since:
- 1.4
-