Package net.solarnetwork.central.dao
Class BaseObjectEntity<PK extends Comparable<PK> & Serializable>
java.lang.Object
net.solarnetwork.central.domain.BaseObjectIdentity<PK>
net.solarnetwork.central.dao.BaseObjectEntity<PK>
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<PK>,net.solarnetwork.dao.Entity<PK>,net.solarnetwork.domain.Identity<PK>
- Direct Known Subclasses:
BaseClaimableJob,Ec2VirtualMachine
public class BaseObjectEntity<PK extends Comparable<PK> & Serializable>
extends BaseObjectIdentity<PK>
implements Cloneable, Serializable, net.solarnetwork.dao.Entity<PK>
Base implementation of
Entity using a comparable, serializable
primary key.- Since:
- 1.34
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the modification date.voidsetCreated(Instant created) Set the creation date.voidsetModified(Instant modified) Set the modification date.Methods inherited from class net.solarnetwork.central.domain.BaseObjectIdentity
clone, compareTo, equals, getId, hashCode, setIdMethods 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
-
BaseObjectEntity
public BaseObjectEntity()
-
-
Method Details
-
getCreated
- Specified by:
getCreatedin interfacenet.solarnetwork.dao.Entity<PK extends Comparable<PK> & Serializable>
-
setCreated
Set the creation date.- Parameters:
created- the created to set
-
getModified
Get the modification date.- Returns:
- the modification date
-
setModified
Set the modification date.- Parameters:
modified- the modification date to set
-