Package net.solarnetwork.central.domain
Class LocationRequest
- All Implemented Interfaces:
Serializable,Comparable<Long>,net.solarnetwork.dao.Entity<Long>,net.solarnetwork.domain.Identity<Long>
public class LocationRequest
extends net.solarnetwork.dao.BasicLongEntity
Entity for location requests.
- Since:
- 1.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.LocationRequest(Long id, Instant created) Construct with an ID. -
Method Summary
Modifier and TypeMethodDescriptionclone()Set the JSON data.Get the location ID.Get the message.Get the modification date.Get the status.Get the user ID.voidsetJsonData(String jsonData) Get the JSON data.voidsetLocationId(Long locationId) Set the location ID.voidsetMessage(String message) Set the message.voidsetModified(Instant modified) Set the modification date.voidsetStatus(LocationRequestStatus status) Set the status.voidSet the user ID.toString()Create a copy with a given ID.Methods inherited from class net.solarnetwork.dao.BasicEntity
getCreatedMethods inherited from class net.solarnetwork.dao.BasicIdentity
compareTo, equals, getId, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.solarnetwork.domain.Identity
getId, hasId
-
Constructor Details
-
LocationRequest
public LocationRequest()Default constructor. -
LocationRequest
Construct with an ID.- Parameters:
id- the IDcreated- the creation date
-
-
Method Details
-
clone
- Overrides:
clonein classnet.solarnetwork.dao.BasicLongEntity
-
withId
Create a copy with a given ID.- Parameters:
id- the ID to use- Returns:
- the new copy
-
toString
-
getModified
Get the modification date.- Returns:
- the modified
-
setModified
Set the modification date.- Parameters:
modified- the modified to set
-
getUserId
Get the user ID.- Returns:
- the userId
-
setUserId
Set the user ID.- Parameters:
userId- the userId to set
-
getStatus
Get the status.- Returns:
- the status
-
setStatus
Set the status.- Parameters:
status- the status to set
-
getLocationId
Get the location ID.- Returns:
- the locationId
-
setLocationId
Set the location ID.- Parameters:
locationId- the locationId to set
-
getMessage
Get the message.- Returns:
- the message
-
setMessage
Set the message.- Parameters:
message- the message to set
-
getJsonData
Set the JSON data.- Returns:
- the JSON data
-
setJsonData
Get the JSON data.- Parameters:
jsonData- the jsonData to set
-