Class LocationRequest

java.lang.Object
net.solarnetwork.dao.BasicIdentity<Long>
net.solarnetwork.dao.BasicEntity<Long>
net.solarnetwork.dao.BasicLongEntity
net.solarnetwork.central.domain.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 Details

    • LocationRequest

      public LocationRequest()
      Default constructor.
    • LocationRequest

      public LocationRequest(Long id, Instant created)
      Construct with an ID.
      Parameters:
      id - the ID
      created - the creation date
  • Method Details

    • clone

      public LocationRequest clone()
      Overrides:
      clone in class net.solarnetwork.dao.BasicLongEntity
    • withId

      public LocationRequest withId(Long id)
      Create a copy with a given ID.
      Parameters:
      id - the ID to use
      Returns:
      the new copy
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getModified

      public Instant getModified()
      Get the modification date.
      Returns:
      the modified
    • setModified

      public void setModified(Instant modified)
      Set the modification date.
      Parameters:
      modified - the modified to set
    • getUserId

      public Long getUserId()
      Get the user ID.
      Returns:
      the userId
    • setUserId

      public void setUserId(Long userId)
      Set the user ID.
      Parameters:
      userId - the userId to set
    • getStatus

      public LocationRequestStatus getStatus()
      Get the status.
      Returns:
      the status
    • setStatus

      public void setStatus(LocationRequestStatus status)
      Set the status.
      Parameters:
      status - the status to set
    • getLocationId

      public Long getLocationId()
      Get the location ID.
      Returns:
      the locationId
    • setLocationId

      public void setLocationId(Long locationId)
      Set the location ID.
      Parameters:
      locationId - the locationId to set
    • getMessage

      public String getMessage()
      Get the message.
      Returns:
      the message
    • setMessage

      public void setMessage(String message)
      Set the message.
      Parameters:
      message - the message to set
    • getJsonData

      public String getJsonData()
      Set the JSON data.
      Returns:
      the JSON data
    • setJsonData

      public void setJsonData(String jsonData)
      Get the JSON data.
      Parameters:
      jsonData - the jsonData to set