Package com.iisigroup.cap.auth.support

Source Code of com.iisigroup.cap.auth.support.FunctionRowMapper

package com.iisigroup.cap.auth.support;

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

import org.springframework.jdbc.core.RowMapper;

import com.iisigroup.cap.auth.model.Function;

/**
* <pre>
* CodeItem RowMapper
* </pre>
*
* @since 2014/4/30
* @author Lancelot
* @version <ul>
*          <li>2014/4/30,Lancelot,new
*          </ul>
*/
public class FunctionRowMapper implements RowMapper<Function> {

    @Override
    public Function mapRow(ResultSet rs, int rowNum) throws SQLException {
        Function item = new Function();
        item.setCode(rs.getInt("CODE"));
        item.setSysType(rs.getString("SYSTYPE"));
        item.setSequence(rs.getInt("SEQUENCE"));
        item.setLevel(rs.getInt("LEVEL"));
        item.setParent(rs.getInt("PARENT"));
        item.setName(rs.getString("NAME"));
        item.setPath(rs.getString("PATH"));
        item.setDesc(rs.getString("DESC"));
        item.setStatus(rs.getString("STATUS"));
        item.setUpdater(rs.getString("UPDATER"));
        item.setUpdateTime(rs.getTimestamp("UPDATETIME"));
        return item;
    }

}
TOP

Related Classes of com.iisigroup.cap.auth.support.FunctionRowMapper

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.