Important -> SQL keywords must go uppercase

Minor -> indentation, organize imports
This commit is contained in:
Carlos Ruiz 2008-12-05 16:14:44 +00:00
parent 7e0a2141bb
commit ff6b2bff61
1 changed files with 20 additions and 18 deletions

View File

@ -16,9 +16,11 @@
*****************************************************************************/
package org.compiere.model;
import java.sql.*;
import java.util.*;
import org.compiere.util.*;
import java.sql.ResultSet;
import java.util.List;
import java.util.Properties;
import org.compiere.util.Env;
/**
@ -60,8 +62,8 @@ public class MShipper extends X_M_Shipper
*/
public static List<MShipper> getShippersForFreightCategory(Properties ctx, int FreightCategory_ID, String trxName) {
Query q = new Query(ctx, MShipper.Table_Name,
"M_Shipper.AD_Client_ID=? and M_Shipper.AD_Org_ID in (0,?) and M_Shipper_ID " +
"in (select M_Shipper_ID from M_Freight where M_FreightCategory_ID=?)", trxName);
"M_Shipper.AD_Client_ID=? AND M_Shipper.AD_Org_ID IN (0,?) AND M_Shipper_ID " +
"IN (SELECT M_Shipper_ID FROM M_Freight WHERE M_FreightCategory_ID=?)", trxName);
q.setParameters(new Object[]{Env.getAD_Client_ID(ctx), Env.getAD_Org_ID(ctx), FreightCategory_ID});
List<MShipper> result = q.list();
return(result);