BF [ 2738883 ] - DBUtils deprecated
This commit is contained in:
parent
a9b486f2cd
commit
19cb8a820b
|
@ -41,7 +41,6 @@ import org.compiere.model.MOrg;
|
||||||
import org.compiere.model.MRegion;
|
import org.compiere.model.MRegion;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.utils.DBUtils;
|
|
||||||
import org.posterita.beans.AddressBean;
|
import org.posterita.beans.AddressBean;
|
||||||
import org.posterita.beans.BPartnerBean;
|
import org.posterita.beans.BPartnerBean;
|
||||||
import org.posterita.beans.StatementOfAccountBean;
|
import org.posterita.beans.StatementOfAccountBean;
|
||||||
|
@ -854,8 +853,8 @@ public class BPartnerManager
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
DBUtils.close(rs);
|
DB.close(rs);
|
||||||
DBUtils.close(pstmt);
|
DB.close(pstmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
return bpList;
|
return bpList;
|
||||||
|
|
|
@ -90,7 +90,6 @@ import org.compiere.util.DisplayType;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.Language;
|
import org.compiere.util.Language;
|
||||||
import org.compiere.util.Util;
|
import org.compiere.util.Util;
|
||||||
import org.compiere.utils.DBUtils;
|
|
||||||
import org.posterita.Constants;
|
import org.posterita.Constants;
|
||||||
import org.posterita.beans.BPartnerBean;
|
import org.posterita.beans.BPartnerBean;
|
||||||
import org.posterita.beans.CloseTillBean;
|
import org.posterita.beans.CloseTillBean;
|
||||||
|
@ -2433,8 +2432,8 @@ public class POSReportManager {
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
DBUtils.close(rs);
|
DB.close(rs);
|
||||||
DBUtils.close(pstmt);
|
DB.close(pstmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
String doubleLine = "";
|
String doubleLine = "";
|
||||||
|
@ -2588,8 +2587,8 @@ public class POSReportManager {
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
DBUtils.close(rs);
|
DB.close(rs);
|
||||||
DBUtils.close(pstmt);
|
DB.close(pstmt);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2674,8 +2673,8 @@ public class POSReportManager {
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
DBUtils.close(rs);
|
DB.close(rs);
|
||||||
DBUtils.close(pstmt);
|
DB.close(pstmt);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,6 @@ import org.compiere.model.MInventory;
|
||||||
import org.compiere.print.ReportEngine;
|
import org.compiere.print.ReportEngine;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.utils.DBUtils;
|
|
||||||
import org.posterita.Constants;
|
import org.posterita.Constants;
|
||||||
import org.posterita.beans.DocumentBean;
|
import org.posterita.beans.DocumentBean;
|
||||||
import org.posterita.beans.InventoryBean;
|
import org.posterita.beans.InventoryBean;
|
||||||
|
@ -270,8 +269,8 @@ public class DocumentAction extends POSDispatchAction
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
DBUtils.close(rs);
|
DB.close(rs);
|
||||||
DBUtils.close(pstmt);
|
DB.close(pstmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
//constructing the table
|
//constructing the table
|
||||||
|
|
|
@ -50,7 +50,6 @@ import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.Trx;
|
import org.compiere.util.Trx;
|
||||||
import org.compiere.utils.DBUtils;
|
|
||||||
import org.posterita.Constants;
|
import org.posterita.Constants;
|
||||||
import org.posterita.beans.InventoryCartBean;
|
import org.posterita.beans.InventoryCartBean;
|
||||||
import org.posterita.beans.InventoryLineBean;
|
import org.posterita.beans.InventoryLineBean;
|
||||||
|
@ -490,8 +489,8 @@ public class InventoryCartAction extends POSDispatchAction
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
DBUtils.close(rs);
|
DB.close(rs);
|
||||||
DBUtils.close(pstmt);
|
DB.close(pstmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
//constructing the table
|
//constructing the table
|
||||||
|
|
|
@ -69,7 +69,6 @@ import org.compiere.report.ReportStarter;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.MimeType;
|
import org.compiere.util.MimeType;
|
||||||
import org.compiere.utils.DBUtils;
|
|
||||||
import org.posterita.Constants;
|
import org.posterita.Constants;
|
||||||
import org.posterita.beans.POSHistoryBean;
|
import org.posterita.beans.POSHistoryBean;
|
||||||
import org.posterita.beans.ReportBean;
|
import org.posterita.beans.ReportBean;
|
||||||
|
@ -816,8 +815,8 @@ public class POSReportAction extends BaseDispatchAction
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
DBUtils.close(rs);
|
DB.close(rs);
|
||||||
DBUtils.close(pstmt);
|
DB.close(pstmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
SimpleDateFormat dateFormat2 = new SimpleDateFormat("dd-MMM-yyyy");
|
SimpleDateFormat dateFormat2 = new SimpleDateFormat("dd-MMM-yyyy");
|
||||||
|
@ -949,8 +948,8 @@ public class POSReportAction extends BaseDispatchAction
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
DBUtils.close(rs);
|
DB.close(rs);
|
||||||
DBUtils.close(pstmt);
|
DB.close(pstmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
SimpleDateFormat dateFormat2 = new SimpleDateFormat("dd-MMM-yyyy");
|
SimpleDateFormat dateFormat2 = new SimpleDateFormat("dd-MMM-yyyy");
|
||||||
|
|
Loading…
Reference in New Issue