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

Source Code of com.github.hakko.musiccabinet.dao.jdbc.rowmapper.MBAlbumRowMapper

package com.github.hakko.musiccabinet.dao.jdbc.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.github.hakko.musiccabinet.domain.model.music.MBAlbum;

public class MBAlbumRowMapper implements RowMapper<MBAlbum> {

  @Override
  public MBAlbum mapRow(ResultSet rs, int rowNum) throws SQLException {
    return new MBAlbum(rs.getString(1), rs.getString(2), rs.getShort(3),
        rs.getInt(4), rs.getString(5));
  }

}
TOP

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

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.