Commit 28c38cea authored by prane's avatar prane

closed cursors and pstmts

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196717 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e6c9f7f8
......@@ -394,6 +394,7 @@ public class SchemeDefMaster extends ValidatorEJB implements
{
count = rs.getInt("COUNT");
}
callPstRs(pstmt, rs);
if (count <= 0)
{
errList.add("VMITEM_CD");
......@@ -411,7 +412,7 @@ public class SchemeDefMaster extends ValidatorEJB implements
{
active = rs.getString("ACTIVE");
}
callPstRs(pstmt, rs);
if (!active.equalsIgnoreCase("Y"))
{
errList.add("VTITEM4");
......@@ -1631,9 +1632,10 @@ public class SchemeDefMaster extends ValidatorEJB implements
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, errorCode);
rs = pstmt.executeQuery();
while (rs.next()) {
if (rs.next()) {
msgType = rs.getString("MSG_TYPE");
}
callPstRs(pstmt, rs);
} catch (Exception ex) {
ex.printStackTrace();
} finally {
......@@ -1671,6 +1673,7 @@ public class SchemeDefMaster extends ValidatorEJB implements
recCount = rs.getInt(1);
}
callPstRs(pstmt, rs);
if (recCount > 0) {
isExist = true;
......
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