Interface ChargePointConnectorDao

All Superinterfaces:
net.solarnetwork.dao.GenericDao<ChargePointConnector,ChargePointConnectorKey>

public interface ChargePointConnectorDao extends net.solarnetwork.dao.GenericDao<ChargePointConnector,ChargePointConnectorKey>
Data Access Object API for ChargePointConnector entities.
Version:
1.0
Author:
matt
  • 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 Type
    Method
    Description
    findByChargePointId(long chargePointId)
    Find all available connectors for a given Charge Point ID.
    saveStatusInfo(long chargePointId, StatusNotification info)
    Save (insert/update) status information directly.
    int
    updateChargePointStatus(long chargePointId, int connectorId, ChargePointStatus status)
    Update just the status of one or more connectors for a specific Charge Point.

    Methods inherited from interface net.solarnetwork.dao.GenericDao

    delete, entityEventTopic, get, getAll, getObjectType, save
  • Method Details

    • saveStatusInfo

      ChargePointConnectorKey saveStatusInfo(long chargePointId, StatusNotification info)
      Save (insert/update) status information directly.

      If a ChargePointConnector entity does not exist, this method will insert a new row, using default values for all non StatusNotification properties.

      Parameters:
      chargePointId - the Charge Point ID
      info - the status info
      Returns:
      the saved primary key
    • updateChargePointStatus

      int updateChargePointStatus(long chargePointId, int connectorId, ChargePointStatus status)
      Update just the status of one or more connectors for a specific Charge Point.
      Parameters:
      chargePointId - the Charge Point ID
      connectorId - the connector ID, or 0 for all connectors for Charge Point
      status - the desired status
      Returns:
      the number of connectors updated
    • findByChargePointId

      Collection<ChargePointConnector> findByChargePointId(long chargePointId)
      Find all available connectors for a given Charge Point ID.
      Parameters:
      chargePointId - the ID of the Charge Point to find connectors for
      Returns:
      the connectors, ordered by connector ID in ascending order