diff --git a/repository/Options.java b/repository/Options.java deleted file mode 100644 index c66788e..0000000 --- a/repository/Options.java +++ /dev/null @@ -1,106 +0,0 @@ -//package in.gov.chennaicorporation.gccoffice.pgr.repository; -// -//import java.sql.Connection; -//import java.sql.ResultSet; -//import java.sql.SQLException; -//import java.util.List; -// -//import org.springframework.beans.factory.annotation.Autowired; -//import org.springframework.beans.factory.annotation.Qualifier; -//import org.springframework.jdbc.core.JdbcTemplate; -//import org.springframework.jdbc.core.RowMapper; -//import org.springframework.stereotype.Repository; -// -//import in.gov.chennaicorporation.gccoffice.pgr.dbconnection.DBConnection; -// -//@Repository -//public class Options { -// @Autowired -// DBConnection dbcon; -// -// @Autowired -// @Qualifier("mysqlPGRJdbcTemplate") -// private JdbcTemplate jdbcTemplate; // Use JdbcTemplate or any other Spring Data repository -// -// public List getComplaintGroups() { -// return jdbcTemplate.query("SELECT * FROM eggr_complaintgroup", new Rowmappercomplaintgroup()); -// } -// -// public static class Rowmappercomplaintgroup implements RowMapper { -// @Override -// public ComplaintGroup mapRow(ResultSet rs, int rowNum) throws SQLException { -// ComplaintGroup complaintGroup = new ComplaintGroup(); -// -// Connection con = DBConnection.getConnection(); -// stmt3 = con.prepareStatement(query); -// complaintGroup.setId(rs.getLong("id")); -// complaintGroup.setComplaintGroupName(rs.getString("complaint_group_name")); -// return complaintGroup; -// } -// } -// -// public static class ComplaintGroup { -// private Long id; -// private String complaintGroupName; -// -// public long getId() { -// return id; -// } -// -// public void setId(long id) { -// this.id = id; -// } -// -// public String getComplaintGroupName() { -// return complaintGroupName; -// } -// -// public void setComplaintGroupName(String complaintGroupName) { -// this.complaintGroupName = complaintGroupName; -// } -// } -// -// public List getComplaintTypes() { -// return jdbcTemplate.query("SELECT * FROM EGGR_COMPLAINTTYPES", new Rowmappercomplainttype()); -// } -// -// public static class Rowmappercomplainttype implements RowMapper { -// @Override -// public ComplaintType mapRow(ResultSet rs, int rowNum) throws SQLException { -// ComplaintType complaintType = new ComplaintType(); -// complaintType.setId(rs.getLong("id")); -// complaintType.setComplaintTypeName(rs.getString("complaint_type_name")); -// return complaintType; -// } -// } -// -// public static class ComplaintType { -// private Long id; -// private String complaintTypeName; -// -// public long getId() { -// return id; -// } -// -// public void setId(long id) { -// this.id = id; -// } -// -// public String getComplaintTypeName() { -// return complaintTypeName; -// } -// -// public void setComplaintTypeName(String complaintTypeName) { -// this.complaintTypeName = complaintTypeName; -// } -// } -// -// -// -// -// -// public List asList(String pending, String completed,String forwarded,String reopened) { -// // TODO Auto-generated method stub -// return null; -// } -//}