Commit c1a124a9 authored by ssalve's avatar ssalve

Sarita: Done changes for genericUtility to E12GenericUtility and getConnection on 09MARCH2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@181795 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5ebe1c51
...@@ -2,9 +2,9 @@ package ibase.webitm.ejb.fin; ...@@ -2,9 +2,9 @@ package ibase.webitm.ejb.fin;
import ibase.system.config.ConnDriver; import ibase.system.config.ConnDriver;
import ibase.webitm.ejb.ValidatorEJB; import ibase.webitm.ejb.ValidatorEJB;
//import ibase.utility.E12GenericUtility; import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.GenericUtility; //import ibase.webitm.utility.GenericUtility;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.rmi.RemoteException; import java.rmi.RemoteException;
...@@ -23,8 +23,9 @@ import javax.ejb.Stateless; ...@@ -23,8 +23,9 @@ import javax.ejb.Stateless;
public class LoanPartyIC extends ValidatorEJB implements LoanPartyICLocal, LoanPartyICRemote public class LoanPartyIC extends ValidatorEJB implements LoanPartyICLocal, LoanPartyICRemote
{ {
//changes and commented by sarita on 01/06/2017 //changes and commented by sarita on 01/06/2017
//E12GenericUtility genericUtility = new E12GenericUtility(); //changed by sarita on 09MAR2018
GenericUtility genericUtility = GenericUtility.getInstance(); E12GenericUtility genericUtility = new E12GenericUtility();
//GenericUtility genericUtility = GenericUtility.getInstance();
FinCommon finCommon = new FinCommon(); FinCommon finCommon = new FinCommon();
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
...@@ -76,10 +77,11 @@ public class LoanPartyIC extends ValidatorEJB implements LoanPartyICLocal, LoanP ...@@ -76,10 +77,11 @@ public class LoanPartyIC extends ValidatorEJB implements LoanPartyICLocal, LoanP
{ {
//changes and commented by sarita for DBConnection on 01/06/2017 //changes and commented by sarita for DBConnection on 01/06/2017
conn = connDriver.getConnectDB("DriverITM"); //changed by sarita on 09MAR2018
/*conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; connDriver = null;*/
//conn = getConnection(); conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 //changes and commented by sarita for DBConnection on 01/06/2017
if (objContext != null && objContext.trim().length() > 0) if (objContext != null && objContext.trim().length() > 0)
{ {
...@@ -807,8 +809,9 @@ public class LoanPartyIC extends ValidatorEJB implements LoanPartyICLocal, LoanP ...@@ -807,8 +809,9 @@ public class LoanPartyIC extends ValidatorEJB implements LoanPartyICLocal, LoanP
{ {
SimpleDateFormat sdf1= new SimpleDateFormat(genericUtility.getDBDateFormat()); SimpleDateFormat sdf1= new SimpleDateFormat(genericUtility.getDBDateFormat());
//changes and commented by sarita for DBConnection on 01/06/2017 //changes and commented by sarita for DBConnection on 01/06/2017
conn = connDriver.getConnectDB("DriverITM"); //changed by sarita on 09MAR2018
//conn = getConnection(); //conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 //changes and commented by sarita for DBConnection on 01/06/2017
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode"); userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if (objContext != null && objContext.trim().length() > 0) 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