1 changed files with 0 additions and 106 deletions
@ -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<ComplaintGroup> getComplaintGroups() { |
|
||||
// return jdbcTemplate.query("SELECT * FROM eggr_complaintgroup", new Rowmappercomplaintgroup()); |
|
||||
// } |
|
||||
// |
|
||||
// public static class Rowmappercomplaintgroup implements RowMapper<ComplaintGroup> { |
|
||||
// @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<ComplaintType> getComplaintTypes() { |
|
||||
// return jdbcTemplate.query("SELECT * FROM EGGR_COMPLAINTTYPES", new Rowmappercomplainttype()); |
|
||||
// } |
|
||||
// |
|
||||
// public static class Rowmappercomplainttype implements RowMapper<ComplaintType> { |
|
||||
// @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<String> asList(String pending, String completed,String forwarded,String reopened) { |
|
||||
// // TODO Auto-generated method stub |
|
||||
// return null; |
|
||||
// } |
|
||||
//} |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue