Commit 9fd87c00 authored by steurwadkar's avatar steurwadkar

Changed by Manish on 05/07/16 removed get connection.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102328 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 15972b75
...@@ -171,9 +171,7 @@ public class ItemDetailsBean ...@@ -171,9 +171,7 @@ public class ItemDetailsBean
* @throws ITMException * @throws ITMException
*/ */
//Added by Parikshit Kumbhar on 18/05/2015 [added getSizeDetails() function] Start //Added by Parikshit Kumbhar on 18/05/2015 [added getSizeDetails() function] Start
//Changed by Santosh on 16-06-16 to pass connection object public String getSizeDetails( String sizeCode ) throws ITMException
//public String getSizeDetails( String sizeCode ) throws ITMException
public String getSizeDetails( String sizeCode, Connection connection ) throws ITMException
{ {
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
StringBuffer valueXmlString = new StringBuffer("<Root>\r\n"); StringBuffer valueXmlString = new StringBuffer("<Root>\r\n");
...@@ -183,11 +181,8 @@ public class ItemDetailsBean ...@@ -183,11 +181,8 @@ public class ItemDetailsBean
try try
{ {
//Changed and commented by Santosh on 16-06-16 for connection object [Start] ConnDriver connDriver = new ConnDriver();
/*ConnDriver connDriver = new ConnDriver(); conn = connDriver.getConnectDB("DriverITM");
conn = connDriver.getConnectDB("DriverITM");*/
conn = connection;
//Changed and commented by Santosh on 16-06-16 for connection object [End]
String sql = "SELECT Attrib_Id, TRIM(Descr),trim(sh_descr) FROM itm_attrib_val WHERE Attrib_Code=? ORDER BY sort_order"; String sql = "SELECT Attrib_Id, TRIM(Descr),trim(sh_descr) FROM itm_attrib_val WHERE Attrib_Code=? ORDER BY sort_order";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, sizeCode); pstmt.setString(1, sizeCode);
...@@ -221,8 +216,7 @@ public class ItemDetailsBean ...@@ -221,8 +216,7 @@ public class ItemDetailsBean
{ {
try try
{ {
//Commented by Santosh on 16-06-16 [Start] if (rs != null)
/*if (rs != null)
{ {
rs.close(); rs.close();
rs = null; rs = null;
...@@ -236,8 +230,7 @@ public class ItemDetailsBean ...@@ -236,8 +230,7 @@ public class ItemDetailsBean
{ {
conn.close(); conn.close();
conn = null; conn = null;
}*/ }
//Commented by Santosh on 16-06-16 [End]
} }
catch (Exception e) catch (Exception e)
{ {
......
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