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

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


  @Override
  public Set<Directory> getRootDirectories() {
    String sql = "select id, path from library.directory where parent_id is null";
   
    return new TreeSet<>(jdbcTemplate.query(sql, new DirectoryRowMapper()));
  }
View Full Code Here


  @Override
  public Directory getDirectory(int directoryId) {
    String sql = "select id, path from library.directory where id = " + directoryId;
   
    return jdbcTemplate.queryForObject(sql, new DirectoryRowMapper());
  }
View Full Code Here

 
  @Override
  public Set<Directory> getSubDirectories(int directoryId) {
    String sql = "select id, path from library.directory where parent_id = " + directoryId;

    return new TreeSet<>(jdbcTemplate.query(sql, new DirectoryRowMapper()));
  }
View Full Code Here

TOP

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

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.