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

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


      public TrackRelation mapRow(ResultSet rs, int rowNum)
          throws SQLException {
        String artistName = rs.getString(1);
        String trackName = rs.getString(2);
        float weight = rs.getFloat(3);
        return new TrackRelation(new Track(artistName, trackName), weight);
      }
    });
   
    return trackRelations;
  }
View Full Code Here


    md.setModified(rs.getTimestamp(19).getTime());
    int trackId = rs.getInt(20);
    md.setAlbumId(rs.getInt(21));
    md.setArtistId(rs.getInt(22));

    return new Track(trackId, trackName, md);
  }
View Full Code Here

  @Override
  public Track mapRow(ResultSet rs, int rowNum) throws SQLException {
    String artistName = rs.getString(1);
    String trackName = rs.getString(2);

    return new Track(artistName, trackName);
  }
View Full Code Here

  public void endElement(String uri, String localName, String qName)
  throws SAXException {
    if (TAG_NAME.equals(qName)) {
      String chars = characterData.toString();
      if (stateArtist) {
        lovedTracks.add(new Track(chars, currentTrackName));
      } else {
        currentTrackName = chars;
      }
    }
  }
View Full Code Here

      page = toShort(attributes.getValue(ATTR_PAGE));
      totalPages = toShort(attributes.getValue(ATTR_TOTAL_PAGES));
    } else if (TAG_TRACK.equals(qName)) {
      scope = TRACK;
      currentTrackPlayCount = new TrackPlayCount();
      currentTrackPlayCount.setTrack(new Track());
      currentTrackPlayCount.getTrack().setArtist(new Artist());
    } else if (TAG_ALBUM.equals(qName)) {
      scope = ALBUM;
    } else if (TAG_ARTIST.equals(qName)) {
      scope = ARTIST;
View Full Code Here

TOP

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

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.