Commit 2f71b6c1 authored by ssalve's avatar ssalve

Changes for E12GenericUtility and DBConnect


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105729 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c420cb6e
package ibase.webitm.ejb.fin;
import ibase.system.config.ConnDriver;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.fin.FinCommon;
......@@ -68,6 +69,8 @@ public class BankIC extends ValidatorEJB implements BankICRemote, BankICLocal
double cr_bal_amt=0,od_amt_dbl=0,min_bal_amt=0,safe_bal_amt=0;
String cr_bal = "", od_amt = "", min_bal = "", safe_bal = "";
Connection conn = null;
//Added by sarita on 01/06/2017
ConnDriver connDriver = null;
PreparedStatement pstmt = null;
ResultSet rs = null ;
NodeList parentNodeList = null;
......@@ -87,7 +90,13 @@ public class BankIC extends ValidatorEJB implements BankICRemote, BankICLocal
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
try
{
conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//conn = getConnection();
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
//changes and commented by sarita for DBConnection on 01/06/2017 :END
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if(objContext != null && objContext.trim().length() > 0)
......@@ -578,6 +587,8 @@ public class BankIC extends ValidatorEJB implements BankICRemote, BankICLocal
public String itemChanged(Document dom, Document dom1, Document dom2,String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Connection conn = null;
//Added by sarita on 01/06/2017
ConnDriver connDriver = null;
PreparedStatement pstmt = null;
ResultSet rs = null ;
SimpleDateFormat sdf;
......@@ -596,7 +607,13 @@ public class BankIC extends ValidatorEJB implements BankICRemote, BankICLocal
int pos =0;
try
{
conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//conn = getConnection();
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
//changes and commented by sarita for DBConnection on 01/06/2017 :END
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
if(objContext != null && objContext.trim().length()>0)
{
......
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