Class Clip
- java.lang.Object
-
- edu.cnm.deepdive.tunefull.model.entity.Clip
-
@Entity public class Clip extends java.lang.ObjectThe
Clipentity holds the data for each clip of music shared in the TuneFull server.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Robert Dominguez, Roderick Frechette, Laura Steiner
-
-
Constructor Summary
Constructors Constructor Description Clip()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlbum()Returns the name of the clip's albumjava.lang.StringgetArtist()Returns the name of the clip's artistlonggetBeginTimestamp()Returns the timestamp for the beginning of the clipjava.util.DategetDateTimePosted()Returns the date and time that the clip was postedlonggetEndTimestamp()Returns the timestamp for the end of the clipjava.lang.LonggetId()Returns the clip's id.java.lang.StringgetSongTitle()Returns the title for the song the clip is from .java.lang.StringgetTrackKey()Returns the track key associated with the song on Spotify.UsergetUser()Returns theUserwho created the clipvoidsetAlbum(java.lang.String album)Sets the name of the clip's albumvoidsetArtist(java.lang.String artist)Sets the name of the clip's artistvoidsetBeginTimestamp(long beginTimestamp)Sets the timestamp for the beginning of the clipvoidsetEndTimestamp(long endTimestamp)Sets the timestamp for the beginning of the clipvoidsetSongTitle(java.lang.String songTitle)Sets the title for the song the clip is fromvoidsetTrackKey(java.lang.String trackKey)Sets the track key associated with the song on Spotify.voidsetUser(User user)Sets theUserwho posted the clip
-
-
-
Method Detail
-
getId
public java.lang.Long getId()
Returns the clip's id.- Returns:
-
getSongTitle
@NonNull public java.lang.String getSongTitle()
Returns the title for the song the clip is from .- Returns:
-
setSongTitle
public void setSongTitle(@NonNull java.lang.String songTitle)Sets the title for the song the clip is from- Parameters:
songTitle- String
-
getArtist
@NonNull public java.lang.String getArtist()
Returns the name of the clip's artist- Returns:
-
setArtist
public void setArtist(@NonNull java.lang.String artist)Sets the name of the clip's artist- Parameters:
artist- String
-
getAlbum
public java.lang.String getAlbum()
Returns the name of the clip's album- Returns:
-
setAlbum
public void setAlbum(java.lang.String album)
Sets the name of the clip's album- Parameters:
album- String
-
getTrackKey
@NonNull public java.lang.String getTrackKey()
Returns the track key associated with the song on Spotify.- Returns:
-
setTrackKey
public void setTrackKey(@NonNull java.lang.String trackKey)Sets the track key associated with the song on Spotify.- Parameters:
trackKey- String
-
getBeginTimestamp
public long getBeginTimestamp()
Returns the timestamp for the beginning of the clip- Returns:
-
setBeginTimestamp
public void setBeginTimestamp(long beginTimestamp)
Sets the timestamp for the beginning of the clip- Parameters:
beginTimestamp- int
-
getEndTimestamp
public long getEndTimestamp()
Returns the timestamp for the end of the clip- Returns:
-
setEndTimestamp
public void setEndTimestamp(long endTimestamp)
Sets the timestamp for the beginning of the clip- Parameters:
endTimestamp- int
-
getDateTimePosted
@NonNull public java.util.Date getDateTimePosted()
Returns the date and time that the clip was posted- Returns:
-
-