Skip to content

Commit

Permalink
Forgot to commit SourceTypeMapper
Browse files Browse the repository at this point in the history
git-svn-id: https://source.sakaiproject.org/svn/dashboard/trunk@312824 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
jimeng committed Aug 9, 2011
1 parent e7f8b35 commit b477e7a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dashboard/SourceTypeMapper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
*
*/
package org.sakaiproject.dash.dao.impl;

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

import org.sakaiproject.dash.model.SourceType;
import org.springframework.jdbc.core.RowMapper;

/**
* @author jimeng
*
*/
public class SourceTypeMapper implements RowMapper {

public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
SourceType sourceType = new SourceType();
sourceType.setId(rs.getLong("type_id"));
sourceType.setName(rs.getString("type_name"));
sourceType.setAccessPermission(rs.getString("type_access_permission"));
return sourceType;
}

}

0 comments on commit b477e7a

Please sign in to comment.