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

    • ArtService

      public ArtService()
  • Method Details

    • createArtist

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

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

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

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

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

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

      @Transactional public IRI addArtist(Artist artist)
    • addPainting

      @Transactional public IRI addPainting(Painting painting)