Commit fa3a858e authored by mkhan's avatar mkhan

alter resultset and paremaredStatement


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91144 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 60c77447
...@@ -192,7 +192,7 @@ public class FullFinalAct extends ActionHandlerEJB implements FullFinalActLocal, ...@@ -192,7 +192,7 @@ public class FullFinalAct extends ActionHandlerEJB implements FullFinalActLocal,
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false); conn.setAutoCommit(false);
stmt = conn.createStatement(); stmt = conn.createStatement();
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
...@@ -626,7 +626,8 @@ public class FullFinalAct extends ActionHandlerEJB implements FullFinalActLocal, ...@@ -626,7 +626,8 @@ public class FullFinalAct extends ActionHandlerEJB implements FullFinalActLocal,
log.write("sqlStr..:: " + sqlStr); log.write("sqlStr..:: " + sqlStr);
stmt = conn.prepareStatement( sqlStr ); stmt = conn.prepareStatement( sqlStr );
rsMain = stmt.executeQuery(sqlStr); //rsMain = stmt.executeQuery(sqlStr); changes on 31/08/09 by manazir
rsMain = stmt.executeQuery();
while( rsMain.next() ) while( rsMain.next() )
{ {
adCode = rsMain.getString( "AD_CODE" ); adCode = rsMain.getString( "AD_CODE" );
...@@ -659,7 +660,7 @@ public class FullFinalAct extends ActionHandlerEJB implements FullFinalActLocal, ...@@ -659,7 +660,7 @@ public class FullFinalAct extends ActionHandlerEJB implements FullFinalActLocal,
rs = stmt1.executeQuery( ); rs = stmt1.executeQuery( );
//stmt1 = conn.createStatement(); //stmt1 = conn.createStatement();
rs = stmt1.executeQuery( ); // rs = stmt1.executeQuery( ); changes on 31/08/09 by manazir
if( rs.next() ) if( rs.next() )
{ {
amount = rs.getDouble("AMOUNT"); amount = rs.getDouble("AMOUNT");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment