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 SummaryConstructors Constructor Description Clip()
 - 
Method SummaryAll 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- 
getIdpublic 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:
 
 - 
setSongTitlepublic 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:
 
 - 
setArtistpublic void setArtist(@NonNull java.lang.String artist)Sets the name of the clip's artist- Parameters:
- artist- String
 
 - 
getAlbumpublic java.lang.String getAlbum() Returns the name of the clip's album- Returns:
 
 - 
setAlbumpublic 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:
 
 - 
setTrackKeypublic void setTrackKey(@NonNull java.lang.String trackKey)Sets the track key associated with the song on Spotify.- Parameters:
- trackKey- String
 
 - 
getBeginTimestamppublic long getBeginTimestamp() Returns the timestamp for the beginning of the clip- Returns:
 
 - 
setBeginTimestamppublic void setBeginTimestamp(long beginTimestamp) Sets the timestamp for the beginning of the clip- Parameters:
- beginTimestamp- int
 
 - 
getEndTimestamppublic long getEndTimestamp() Returns the timestamp for the end of the clip- Returns:
 
 - 
setEndTimestamppublic 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:
 
 
- 
 
-