Class ArtService

java.lang.Object
org.eclipse.rdf4j.spring.demo.service.ArtService

@Component public class ArtService extends Object
Uses ArtistDao and PaintingDao to query and manipulate the repository.
Since:
4.0.0
Author:
Florian Kleedorfer
  • Constructor Details Link icon

    • ArtService Link icon

      public ArtService()
  • Method Details Link icon

    • createArtist Link icon

      @Transactional public Artist createArtist(String firstName, String lastName)
    • createPainting Link icon

      @Transactional public Painting createPainting(String title, String technique, IRI artist)
    • getPaintings Link icon

      @Transactional public List<Painting> getPaintings()
    • getArtists Link icon

      @Transactional public List<Artist> getArtists()
    • getArtistsWithoutPaintings Link icon

      @Transactional public Set<Artist> getArtistsWithoutPaintings()
    • getPaintingsGroupedByArtist Link icon

      @Transactional public Map<Artist,Set<Painting>> getPaintingsGroupedByArtist()
    • addArtist Link icon

      @Transactional public IRI addArtist(Artist artist)
    • addPainting Link icon

      @Transactional public IRI addPainting(Painting painting)