Class ArtistChangeEntry

java.lang.Object
org.localify.artist.jpa.ArtistChangeEntry

@Entity public class ArtistChangeEntry extends Object
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 Details

    • ArtistChangeEntry

      protected ArtistChangeEntry()
      Default constructor for JPA.
    • ArtistChangeEntry

      public ArtistChangeEntry(Artist artist)
      Constructs a new ArtistChangeEntry for the given artist.
      Parameters:
      artist - The artist.
  • Method Details

    • getId

      public UUID getId()
      Gets the unique identifier for the changelog entry.
      Returns:
      The ID.
    • getArtist

      public Artist getArtist()
      Gets the artist.
      Returns:
      The artist.
    • setArtist

      public void setArtist(Artist artist)
      Sets the artist.
      Parameters:
      artist - The artist.
    • getName

      public String getName()
      Gets the name of the artist at the time of this entry.
      Returns:
      The name.
    • setName

      public void setName(String name)
      Sets the name of the artist at the time of this entry.
      Parameters:
      name - The name.
    • getSpotifyPopularity

      public Integer getSpotifyPopularity()
      Gets the Spotify popularity of the artist at the time of this entry.
      Returns:
      The Spotify popularity.
    • setSpotifyPopularity

      public void setSpotifyPopularity(Integer spotifyPopularity)
      Sets the Spotify popularity of the artist at the time of this entry.
      Parameters:
      spotifyPopularity - The Spotify popularity.
    • getSpotifyFollowers

      public Integer getSpotifyFollowers()
      Gets the number of Spotify followers of the artist at the time of this entry.
      Returns:
      The number of Spotify followers.
    • setSpotifyFollowers

      public void setSpotifyFollowers(Integer spotifyFollowers)
      Sets the number of Spotify followers of the artist at the time of this entry.
      Parameters:
      spotifyFollowers - The number of Spotify followers.