Class DaoSolarNodeMetadataBiz

java.lang.Object
net.solarnetwork.central.biz.dao.DaoSolarNodeMetadataBiz
All Implemented Interfaces:
SolarNodeMetadataBiz

public class DaoSolarNodeMetadataBiz extends Object implements SolarNodeMetadataBiz
DAO-based implementation of SolarNodeMetadataBiz.
  • Constructor Details

    • DaoSolarNodeMetadataBiz

      public DaoSolarNodeMetadataBiz(SolarNodeMetadataDao solarNodeMetadataDao)
      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: SolarNodeMetadataBiz
      Add 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:
      addSolarNodeMetadata in interface SolarNodeMetadataBiz
      Parameters:
      nodeId - the node ID to add to
      meta - 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: SolarNodeMetadataBiz
      Store metadata to a specific node, replacing any existing metadata with the provided metadata.
      Specified by:
      storeSolarNodeMetadata in interface SolarNodeMetadataBiz
      Parameters:
      nodeId - the node ID to add to
      meta - the metadata to store
    • removeSolarNodeMetadata

      @Transactional(readOnly=false, propagation=REQUIRED) public void removeSolarNodeMetadata(Long nodeId)
      Description copied from interface: SolarNodeMetadataBiz
      Remove all metadata to a specific node.
      Specified by:
      removeSolarNodeMetadata in interface SolarNodeMetadataBiz
      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: SolarNodeMetadataBiz
      Search for node metadata.
      Specified by:
      findSolarNodeMetadata in interface SolarNodeMetadataBiz
      Parameters:
      criteria - the search criteria
      sortDescriptors - the optional sort descriptors
      offset - an optional result offset
      max - an optional maximum number of returned results
      Returns:
      the results, never null