This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #853 from egovernments/ISTE-224
Iste 224
- Loading branch information
Showing
7 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
.../main/java/org/egov/waterconnection/repository/rowmapper/DemandNotGeneratedRowMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.egov.waterconnection.repository.rowmapper; | ||
|
||
import org.egov.waterconnection.web.models.ConsumersDemandNotGenerated; | ||
import org.springframework.dao.DataAccessException; | ||
import org.springframework.jdbc.core.ResultSetExtractor; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.sql.ResultSet; | ||
import java.sql.SQLException; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@Component | ||
public class DemandNotGeneratedRowMapper implements ResultSetExtractor<List<ConsumersDemandNotGenerated>> { | ||
@Override | ||
public List<ConsumersDemandNotGenerated> extractData(ResultSet resultSet) throws SQLException, DataAccessException { | ||
List<ConsumersDemandNotGenerated> consumersDemandNotGeneratedList=new ArrayList<>(); | ||
while(resultSet.next()) | ||
{ | ||
ConsumersDemandNotGenerated consumersDemandNotGenerated=new ConsumersDemandNotGenerated(); | ||
consumersDemandNotGenerated.setConsumerCode(resultSet.getString("connectionno")); | ||
consumersDemandNotGeneratedList.add(consumersDemandNotGenerated); | ||
} | ||
return consumersDemandNotGeneratedList; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...rvices/src/main/java/org/egov/waterconnection/web/models/ConsumersDemandNotGenerated.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.egov.waterconnection.web.models; | ||
|
||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
public class ConsumersDemandNotGenerated { | ||
private String consumerCode; | ||
} |