Package com.github.hakko.musiccabinet.dao.jdbc.rowmapper

Examples of com.github.hakko.musiccabinet.dao.jdbc.rowmapper.ArtistRecommendationRowMapper


        + " group by artist_id"
        + ") pc on pc.artist_id = a.id where true "
        + artistNameCriteria + hasAlbumsCriteria
        + " order by last_invocation_time desc offset ? limit ?";

    return jdbcTemplate.query(sql, args.toArray(), new ArtistRecommendationRowMapper());
  }
View Full Code Here


        + " from library.playcount pc" + userCriteria
        + " group by artist_id"
        + ") pc on pc.artist_id = a.id" + artistNameCriteria
        + " order by cnt desc offset ? limit ?";

    return jdbcTemplate.query(sql, args.toArray(), new ArtistRecommendationRowMapper());
  }
View Full Code Here

        + " inner join music.artist a on a.id = ai.artist_id"
        + " inner join library.artist la on la.artist_id = a.id"
        + (onlyAlbumArtists ? " where la.hasalbums" : "")
        + " order by random() limit " + limit;

    return jdbcTemplate.query(sql, new ArtistRecommendationRowMapper());
  }
View Full Code Here

        + " inner join library.artist la on la.artist_id = a.id"
        + " inner join library.starredartist sa on sa.artist_id = la.artist_id"
        + userTable + " where true" + userCriteria + artistNameCriteria
        + " order by sa.added desc offset ? limit ?";

    return jdbcTemplate.query(sql, args.toArray(), new ArtistRecommendationRowMapper());
  }
View Full Code Here

        + " order by rank"
        + " offset ? limit ?";

    return jdbcTemplate.query(sql,
        new Object[]{user.getLastFmUsername(), period.getDays(), offset, limit},
        new ArtistRecommendationRowMapper());
  }
View Full Code Here

      + " inner join music.artistrelation ar on ar.target_id = ma.id"
      + " where ar.source_id = " + artistId
      + (onlyAlbumArtists ? " and la.hasalbums" : "")
      + " order by weight desc limit " + amount;

    return jdbcTemplate.query(sql, new ArtistRecommendationRowMapper());
  }
View Full Code Here

        + " ) tag on tag.artist_id = ma.id and tag.tag_count > 25"
        + (onlyAlbumArtists ? " where la.hasalbums" : "")
        + " order by (tag.tag_count-1)/10 desc, ai.listeners desc"
        + " limit " + length + " offset " + offset;

    return jdbcTemplate.query(sql, new Object[]{tagName}, new ArtistRecommendationRowMapper());
  }
View Full Code Here

        + (onlyAlbumArtists ? " and la.hasalbums" : "")
        + " order by rank offset ? limit ?";

    return jdbcTemplate.query(sql,
        new Object[]{lastFmUsername, offset, limit},
        new ArtistRecommendationRowMapper());
  }
View Full Code Here

        + (onlyAlbumArtists ? " and la.hasalbums" : "")
        + " order by gwac.playcount desc offset ? limit ?";

    return jdbcTemplate.query(sql,
        new Object[]{lastFmGroupName, offset, limit},
        new ArtistRecommendationRowMapper());
  }
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.dao.jdbc.rowmapper.ArtistRecommendationRowMapper

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.