Package com.github.hakko.musiccabinet.domain.model.music

Examples of com.github.hakko.musiccabinet.domain.model.music.MBRelease


    additionDao.getJdbcTemplate().execute("truncate library.file cascade");

    artist = new Artist(ARTIST);
    musicDao.setArtistId(artist);
   
    album1 = new MBRelease(MBID1, null, null, TITLE1, TYPE1, YEAR1, null);
    album2 = new MBRelease(MBID2, null, null, TITLE2, TYPE2, YEAR2, null);
    album1.setArtistId(artist.getId());
    album2.setArtistId(artist.getId());
    albumDao.createAlbums(Arrays.asList(album1, album2));
  }
View Full Code Here


  public void startElement(String uri, String localName, String qName, Attributes attributes)
  throws SAXException {
    if (TAG_RELEASE_LIST.equals(qName)) {
      totalAlbums = toInt(attributes.getValue(ATTR_COUNT));
    } else if (TAG_RELEASE.equals(qName)) {
      releases.add(currentRelease = new MBRelease());
    } else if (TAG_RELEASE_GROUP.equals(qName)) {
      currentRelease.setReleaseGroupMbid(attributes.getValue(ATTR_ID));
      currentRelease.setAlbumType(attributes.getValue(ATTR_TYPE));
    } else if (TAG_LABEL.equals(qName)) {
      currentRelease.setLabelMbid(attributes.getValue(ATTR_ID));
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.domain.model.music.MBRelease

Copyright © 2018 www.massapicom. 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.