BF [ 2738883 ] - DBUtils deprecated

This commit is contained in:
mjudd 2009-04-06 23:03:10 +00:00
parent a9b486f2cd
commit 19cb8a820b
5 changed files with 16 additions and 21 deletions

View File

@ -41,7 +41,6 @@ import org.compiere.model.MOrg;
import org.compiere.model.MRegion;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.utils.DBUtils;
import org.posterita.beans.AddressBean;
import org.posterita.beans.BPartnerBean;
import org.posterita.beans.StatementOfAccountBean;
@ -854,8 +853,8 @@ public class BPartnerManager
}
finally
{
DBUtils.close(rs);
DBUtils.close(pstmt);
DB.close(rs);
DB.close(pstmt);
}
return bpList;

View File

@ -90,7 +90,6 @@ import org.compiere.util.DisplayType;
import org.compiere.util.Env;
import org.compiere.util.Language;
import org.compiere.util.Util;
import org.compiere.utils.DBUtils;
import org.posterita.Constants;
import org.posterita.beans.BPartnerBean;
import org.posterita.beans.CloseTillBean;
@ -2433,8 +2432,8 @@ public class POSReportManager {
}
finally
{
DBUtils.close(rs);
DBUtils.close(pstmt);
DB.close(rs);
DB.close(pstmt);
}
String doubleLine = "";
@ -2588,8 +2587,8 @@ public class POSReportManager {
}
finally
{
DBUtils.close(rs);
DBUtils.close(pstmt);
DB.close(rs);
DB.close(pstmt);
}
@ -2674,8 +2673,8 @@ public class POSReportManager {
}
finally
{
DBUtils.close(rs);
DBUtils.close(pstmt);
DB.close(rs);
DB.close(pstmt);
}

View File

@ -46,7 +46,6 @@ import org.compiere.model.MInventory;
import org.compiere.print.ReportEngine;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.utils.DBUtils;
import org.posterita.Constants;
import org.posterita.beans.DocumentBean;
import org.posterita.beans.InventoryBean;
@ -270,8 +269,8 @@ public class DocumentAction extends POSDispatchAction
}
finally
{
DBUtils.close(rs);
DBUtils.close(pstmt);
DB.close(rs);
DB.close(pstmt);
}
//constructing the table

View File

@ -50,7 +50,6 @@ import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.util.Trx;
import org.compiere.utils.DBUtils;
import org.posterita.Constants;
import org.posterita.beans.InventoryCartBean;
import org.posterita.beans.InventoryLineBean;
@ -490,8 +489,8 @@ public class InventoryCartAction extends POSDispatchAction
}
finally
{
DBUtils.close(rs);
DBUtils.close(pstmt);
DB.close(rs);
DB.close(pstmt);
}
//constructing the table

View File

@ -69,7 +69,6 @@ import org.compiere.report.ReportStarter;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.util.MimeType;
import org.compiere.utils.DBUtils;
import org.posterita.Constants;
import org.posterita.beans.POSHistoryBean;
import org.posterita.beans.ReportBean;
@ -816,8 +815,8 @@ public class POSReportAction extends BaseDispatchAction
}
finally
{
DBUtils.close(rs);
DBUtils.close(pstmt);
DB.close(rs);
DB.close(pstmt);
}
SimpleDateFormat dateFormat2 = new SimpleDateFormat("dd-MMM-yyyy");
@ -949,8 +948,8 @@ public class POSReportAction extends BaseDispatchAction
}
finally
{
DBUtils.close(rs);
DBUtils.close(pstmt);
DB.close(rs);
DB.close(pstmt);
}
SimpleDateFormat dateFormat2 = new SimpleDateFormat("dd-MMM-yyyy");