Package net.solarnetwork.central.biz.dao
Class DaoSolarNodeMetadataBiz
java.lang.Object
net.solarnetwork.central.biz.dao.DaoSolarNodeMetadataBiz
- All Implemented Interfaces:
SolarNodeMetadataBiz
DAO-based implementation of
SolarNodeMetadataBiz.-
Constructor Summary
ConstructorsConstructorDescriptionDaoSolarNodeMetadataBiz(SolarNodeMetadataDao solarNodeMetadataDao) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSolarNodeMetadata(Long nodeId, net.solarnetwork.domain.datum.GeneralDatumMetadata meta) Add metadata to a specific node.findSolarNodeMetadata(SolarNodeMetadataFilter criteria, List<net.solarnetwork.domain.SortDescriptor> sortDescriptors, Integer offset, Integer max) Search for node metadata.voidremoveSolarNodeMetadata(Long nodeId) Remove all metadata to a specific node.voidstoreSolarNodeMetadata(Long nodeId, net.solarnetwork.domain.datum.GeneralDatumMetadata meta) Store metadata to a specific node, replacing any existing metadata with the provided metadata.
-
Constructor Details
-
DaoSolarNodeMetadataBiz
Constructor.- Parameters:
solarNodeMetadataDao- the node metadata DAO to use
-
-
Method Details
-
addSolarNodeMetadata
@Transactional(readOnly=false, propagation=REQUIRED) public void addSolarNodeMetadata(Long nodeId, net.solarnetwork.domain.datum.GeneralDatumMetadata meta) Description copied from interface:SolarNodeMetadataBizAdd metadata to a specific node. If metadata already exists for the given node, the values will be merged such that tags are added and info values are added or updated.- Specified by:
addSolarNodeMetadatain interfaceSolarNodeMetadataBiz- Parameters:
nodeId- the node ID to add tometa- the metadata to add
-
storeSolarNodeMetadata
@Transactional(readOnly=false, propagation=REQUIRED) public void storeSolarNodeMetadata(Long nodeId, net.solarnetwork.domain.datum.GeneralDatumMetadata meta) Description copied from interface:SolarNodeMetadataBizStore metadata to a specific node, replacing any existing metadata with the provided metadata.- Specified by:
storeSolarNodeMetadatain interfaceSolarNodeMetadataBiz- Parameters:
nodeId- the node ID to add tometa- the metadata to store
-
removeSolarNodeMetadata
@Transactional(readOnly=false, propagation=REQUIRED) public void removeSolarNodeMetadata(Long nodeId) Description copied from interface:SolarNodeMetadataBizRemove all metadata to a specific node.- Specified by:
removeSolarNodeMetadatain interfaceSolarNodeMetadataBiz- Parameters:
nodeId- the node ID to remove from
-
findSolarNodeMetadata
@Transactional(readOnly=true, propagation=SUPPORTS) public FilterResults<SolarNodeMetadataFilterMatch> findSolarNodeMetadata(SolarNodeMetadataFilter criteria, List<net.solarnetwork.domain.SortDescriptor> sortDescriptors, Integer offset, Integer max) Description copied from interface:SolarNodeMetadataBizSearch for node metadata.- Specified by:
findSolarNodeMetadatain interfaceSolarNodeMetadataBiz- Parameters:
criteria- the search criteriasortDescriptors- the optional sort descriptorsoffset- an optional result offsetmax- an optional maximum number of returned results- Returns:
- the results, never null
-