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 StringgetAddress()Gets the Event's address.StringgetDescription()Gets the Event's description.LonggetId()Gets the Event's id.DoublegetLatitude()Gets the latitude of an Event.DoublegetLongitude()Gets the longitude of an Event.StringgetName()Gets the Event's name.StringgetPasskey()Gets the passkey of an Event.List<Photo>getPhotos()Gets all the photos related to an event.DategetTime()Gets the Event's start timeDategetUpdated()Gets the time the Event was updated.UsergetUser()Gets the User who created the event.List<User>getUsers()Gets all the user associated with an event.voidsetAddress(String eventAddress)Sets the Event's address.voidsetDescription(String eventDescription)Sets the Event's description.voidsetLatitude(Double latitude)Sets the latitude of an Event.voidsetLongitude(Double longitude)Sets the longitude of an Event.voidsetName(String name)Sets the Event's name.voidsetPasskey(String passkey)Sets the passkey of an Event.voidsetUser(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.
-
-