Examples of Artist


Examples of de.linwave.music.Artist

  }

  public void testArtistJohnLennon()
  {
    int cnt = 0;
    ObjectSet<Artist> artists = gtm.queryByExample(new Artist("John Lennon"), 1);
    for (Artist artist : artists) {
      if (!artist.getName().equals("John Lennon"))
        fail("Invalid artist. Expected 'John Lennon' but got '" + artist.getName() + "'");
      cnt++;
    }
View Full Code Here

Examples of dnb.data.Artist

    for (Artist a : artists) {
      if (a.getName().equalsIgnoreCase(artist)) {
        return a; // already contained
      }
    }
    Artist a = new ArtistHibernateImpl(artist);   
    List<?> l = artists; // old trick, we know Genre is a repo object
    InsertionSort.insert((List<RepositoryObjectHibernateImpl>)l, (RepositoryObjectHibernateImpl) a);
    save(a);
    return a;
  }
View Full Code Here

Examples of doan.thymeleaf.demo.domain.Artist

  private List<Artist> getResults()
  {
    List<Artist> results = new ArrayList<Artist>();

    results.add(new Artist(
        "Mariah",
        "Carrey",
        Arrays.asList("Mariah Carey", "Emotions", "Music Box", "Merry Christmas", "DayDream", "ButterFly"),
        "Mariah Carey (born March 27, 1970) is an American singer, songwriter, record producer, and actress. She made her recording debut in 1990 under the guidance of Columbia Records executive Tommy Mottola, and released her self-titled debut studio album, Mariah Carey.",
        true));

    results.add(new Artist(
        "Elvis",
        "Presley",
        Arrays.asList("Elvis Presley", "Elvis", "Loving You", "Elvis' Christmas Album", "Elvis Is Back!", "G.I. Blues"),
        "Elvis Aaron Presleya (January 8, 1935 – August 16, 1977) was one of the most popular American singers of the 20th century. A cultural icon, he is widely known by the single name Elvis. He is often referred to as the 'King of Rock and Roll' or simply 'the King'.",
        false));

    results.add(new Artist(
        "John",
        "Lennon",
        Arrays.asList("John Lennon", "Imagine", "Some Time in New York City", "Mind Games", "Walls and Bridges", "Rock 'n' Roll"),
        "John Winston Lennon (9 October 1940 – 8 December 1980) was an English musician and singer-songwriter who rose to worldwide fame as one of the founding members of The Beatles, one of the most commercially successful and critically acclaimed acts in the history of popular music. Along with fellow Beatle Paul McCartney, he formed one of the most successful songwriting partnerships of the 20th century.",
        false));
View Full Code Here

Examples of er.cayenne.example.persistent.Artist

  private void deleteTutorial() {
    // Delete object examples
    Expression qualifier = ExpressionFactory.matchExp(Artist.NAME_KEY,
        "Pablo Picasso");
    SelectQuery selectToDelete = new SelectQuery(Artist.class, qualifier);
    Artist picasso = (Artist) Cayenne.objectForQuery(objContext,
        selectToDelete);

    if (picasso != null) {
      objContext.deleteObjects(picasso);
      objContext.commitChanges();
View Full Code Here

Examples of fm.last.musicbrainz.data.model.Artist

    assertThat(track.getName(), is("The Saint"));
  }

  @Test
  public void getByArtistAndNameReturnsOneTrack() {
    Artist artist = (Artist) session.load(Artist.class, 5);
    String trackName = "The Saint";
    List<Track> tracks = dao.getByArtistAndName(artist, trackName);
    assertThat(tracks, hasSize(2));
    for (Track track : tracks) {
      assertThat(track.getName(), is(trackName));
View Full Code Here

Examples of jtrackbase.db.Artist

    }
  }

  @Override
  public Object getValueAt(int rowIndex, int columnIndex) {
    Artist a=get(rowIndex);
    if (a==null) {
      return null;
    }
    switch (columnIndex) {
    case 0:{
      return a.getId();
    }
    case 1:{
      return a.getName();
    }
    }
    return null;
  }
View Full Code Here

Examples of kz.sysdesign.app.Entities.Artist

  public Artist getArtistByName(String name)
  {
    String jpqlQuery = "FROM " + Artist.class.getSimpleName() + " a WHERE LOWER(a.name) = LOWER(:name)";
    Query query = em.createQuery(jpqlQuery, Artist.class).setParameter("name", name);

    Artist artist = null;
    try
    {
      artist = (Artist) query.getSingleResult();
    }
    catch(NonUniqueResultException ue) {  }
View Full Code Here

Examples of model.Artist

  }
  public void valueChanged(ListSelectionEvent e) {
    if (!e.getValueIsAdjusting()) {
      int row =table.getSelectedRow();
      if (row>=0) {
        Artist selection = ((Artist) table.getModel().getValueAt(row, 0));
        view.artistSelected(selection);
      }
    }
  }
View Full Code Here

Examples of models.Artist

        }
        Element albumNode = document.getDocumentElement();
        //get the artist
        Node artistNode = XPath.selectNode("artist", albumNode);
        String artistName = XPath.selectText("name",artistNode);
        Artist artist = new Artist(artistName);
        //get the name
        String albumName = XPath.selectText("name", albumNode);
        Album album = new Album(albumName);
        //get the date
        String date = XPath.selectText("release-date",albumNode);
View Full Code Here

Examples of models.Artist

    }


    @Test
    public void testUniqueArtist() {
        Artist artist1 = new Artist("john");
        Album album1 = new Album("coolAlbum");
        album1.artist=artist1;
        album1.replaceDuplicateArtist();
        album1.save();
        // name must be unique
        Artist artist2 = new Artist("john");
        Album album2 = new Album("coolAlbum2");
        album2.artist=artist2;
        album2.replaceDuplicateArtist();
        album2.save();
        // check artist is unique
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.