Package org.localify.artist.jpa
Class ArtistChangeEntry
java.lang.Object
org.localify.artist.jpa.ArtistChangeEntry
Represents a single entry in the artist changelog.
Each entry records a snapshot of an artist's properties at a specific point in time.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for JPA.ArtistChangeEntry(Artist artist) Constructs a new ArtistChangeEntry for the given artist. -
Method Summary
Modifier and TypeMethodDescriptionGets the artist.getId()Gets the unique identifier for the changelog entry.getName()Gets the name of the artist at the time of this entry.Gets the number of Spotify followers of the artist at the time of this entry.Gets the Spotify popularity of the artist at the time of this entry.voidSets the artist.voidSets the name of the artist at the time of this entry.voidsetSpotifyFollowers(Integer spotifyFollowers) Sets the number of Spotify followers of the artist at the time of this entry.voidsetSpotifyPopularity(Integer spotifyPopularity) Sets the Spotify popularity of the artist at the time of this entry.
-
Constructor Details
-
ArtistChangeEntry
protected ArtistChangeEntry()Default constructor for JPA. -
ArtistChangeEntry
Constructs a new ArtistChangeEntry for the given artist.- Parameters:
artist- The artist.
-
-
Method Details
-
getId
Gets the unique identifier for the changelog entry.- Returns:
- The ID.
-
getArtist
Gets the artist.- Returns:
- The artist.
-
setArtist
Sets the artist.- Parameters:
artist- The artist.
-
getName
Gets the name of the artist at the time of this entry.- Returns:
- The name.
-
setName
Sets the name of the artist at the time of this entry.- Parameters:
name- The name.
-
getSpotifyPopularity
Gets the Spotify popularity of the artist at the time of this entry.- Returns:
- The Spotify popularity.
-
setSpotifyPopularity
Sets the Spotify popularity of the artist at the time of this entry.- Parameters:
spotifyPopularity- The Spotify popularity.
-
getSpotifyFollowers
Gets the number of Spotify followers of the artist at the time of this entry.- Returns:
- The number of Spotify followers.
-
setSpotifyFollowers
Sets the number of Spotify followers of the artist at the time of this entry.- Parameters:
spotifyFollowers- The number of Spotify followers.
-