Class Event
- java.lang.Object
-
- edu.cnm.deepdive.picmegallery.model.entity.Event
-
@Entity public class Event extends Object
Event is a @Entity class with the following fields id, name, address, description, time, latitude, longitude, passkey, and photos. All of the fields in this class are attributes of Event and help form the structure of the PicMe Gallery database.
-
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
Gets the Event's address.String
getDescription()
Gets the Event's description.Long
getId()
Gets the Event's id.Double
getLatitude()
Gets the latitude of an Event.Double
getLongitude()
Gets the longitude of an Event.String
getName()
Gets the Event's name.String
getPasskey()
Gets the passkey of an Event.List<Photo>
getPhotos()
Gets all the photos related to an event.Date
getTime()
Gets the Event's start timeDate
getUpdated()
Gets the time the Event was updated.User
getUser()
Gets the User who created the event.List<User>
getUsers()
Gets all the user associated with an event.void
setAddress(String eventAddress)
Sets the Event's address.void
setDescription(String eventDescription)
Sets the Event's description.void
setLatitude(Double latitude)
Sets the latitude of an Event.void
setLongitude(Double longitude)
Sets the longitude of an Event.void
setName(String name)
Sets the Event's name.void
setPasskey(String passkey)
Sets the passkey of an Event.void
setUser(User user)
Sets the sets the User who created the event.
-
-
-
Method Detail
-
getId
public Long getId()
Gets the Event's id.
-
getUser
@NonNull public User getUser()
Gets the User who created the event.
-
setUser
public void setUser(@NonNull User user)
Sets the sets the User who created the event.
-
getTime
@NonNull public Date getTime()
Gets the Event's start time
-
getUpdated
@NonNull public Date getUpdated()
Gets the time the Event was updated.
-
getName
@NonNull public String getName()
Gets the Event's name.
-
setName
public void setName(@NonNull String name)
Sets the Event's name.
-
getAddress
public String getAddress()
Gets the Event's address.
-
setAddress
public void setAddress(String eventAddress)
Sets the Event's address.
-
getDescription
public String getDescription()
Gets the Event's description.
-
setDescription
public void setDescription(String eventDescription)
Sets the Event's description.
-
getLatitude
@Nullable public Double getLatitude()
Gets the latitude of an Event.
-
setLatitude
public void setLatitude(@Nullable Double latitude)
Sets the latitude of an Event.
-
getLongitude
@Nullable public Double getLongitude()
Gets the longitude of an Event.
-
setLongitude
public void setLongitude(@Nullable Double longitude)
Sets the longitude of an Event.
-
getPasskey
@NonNull public String getPasskey()
Gets the passkey of an Event.
-
setPasskey
public void setPasskey(@NonNull String passkey)
Sets the passkey of an Event.
-
-