Package net.solarnetwork.ocpp.dao
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 TypeMethodDescriptionfindByChargePointId(long chargePointId) Find all available connectors for a given Charge Point ID.saveStatusInfo(long chargePointId, StatusNotification info) Save (insert/update) status information directly.intupdateChargePointStatus(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
Save (insert/update) status information directly.If a
ChargePointConnectorentity does not exist, this method will insert a new row, using default values for all nonStatusNotificationproperties.- Parameters:
chargePointId- the Charge Point IDinfo- the status info- Returns:
- the saved primary key
-
updateChargePointStatus
Update just the status of one or more connectors for a specific Charge Point.- Parameters:
chargePointId- the Charge Point IDconnectorId- the connector ID, or 0 for all connectors for Charge Pointstatus- the desired status- Returns:
- the number of connectors updated
-
findByChargePointId
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
-