Package net.solarnetwork.ocpp.domain
Class ChargePointConnector
java.lang.Object
net.solarnetwork.dao.BasicIdentity<K>
net.solarnetwork.dao.BasicEntity<ChargePointConnectorKey>
net.solarnetwork.ocpp.domain.ChargePointConnector
- All Implemented Interfaces:
Serializable,Comparable<ChargePointConnectorKey>,net.solarnetwork.dao.Entity<ChargePointConnectorKey>,net.solarnetwork.domain.Identity<ChargePointConnectorKey>
A Charge Point connector entity.
A connector ID of 0 represents the Charge Point as a whole.
- Version:
- 1.1
- Author:
- matt
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Copy constructor.Constructor.ChargePointConnector(ChargePointConnectorKey id, Instant created) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()Get the status info.booleanisSameAs(ChargePointConnector other) Test if the properties of another entity are the same as in this instance.voidsetInfo(StatusNotification info) Set the status info.Methods inherited from class net.solarnetwork.dao.BasicEntity
clone, getCreatedMethods inherited from class net.solarnetwork.dao.BasicIdentity
compareTo, equals, getId, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.solarnetwork.domain.Identity
getId, hasId
-
Constructor Details
-
ChargePointConnector
public ChargePointConnector()Constructor. -
ChargePointConnector
Constructor.- Parameters:
id- the primary key
-
ChargePointConnector
Constructor.- Parameters:
id- the primary keycreated- the created date
-
ChargePointConnector
Copy constructor.- Parameters:
other- the other charge point to copy
-
-
Method Details
-
isSameAs
Test if the properties of another entity are the same as in this instance.The
idandcreatedproperties are not compared by this method.- Parameters:
other- the other entity to compare to- Returns:
- true if the properties of this instance are equal to the other
-
getInfo
Get the status info.- Returns:
- the info
-
setInfo
Set the status info.- Parameters:
info- the info to set
-