import com.sun.java.util.collections.ArrayList;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.server.OAViewObjectImpl;
// ---------------------------------------------------------------------
// --- File generated by Oracle ADF Business Components Design Time.
// --- Custom code may be added to this class.
// --- Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class xxcfiInvoicesSearchVOImpl extends OAViewObjectImpl
{
public static final String RCS_ID="$Header: InvoicesSearchVOImpl.java 1.0 kandkuma$ ";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "cisco.oracle.apps.xxcfi.ap.holdtel.summary.server");
/**This is the default constructor (do not remove)
*/
public xxcfiInvoicesSearchVOImpl()
{
}
/**
* procedure to execute the invoice search vo.
* @param purchaseGroup
* @param managerId
* @param buyerId
* @param supplierId
* @return
*/
public Boolean execInvoiceSrchQuery(String purchaseGroup, String managerId, String buyerId, String supplierId)
{
setWhereClause(null);
setWhereClauseParams(null);
StringBuffer whereclause = new StringBuffer(400);
ArrayList params = new ArrayList(4);
int paramCount =7;
params.add(managerId);
params.add(buyerId);
params.add(supplierId);
params.add(managerId);
params.add(buyerId);
params.add(supplierId);
if(purchaseGroup != null && !"".equals(purchaseGroup))
{
whereclause.append(" PURCHASE_GROUP = :");
whereclause.append(paramCount++);
params.add(purchaseGroup);
}
/*
if(managerId !=null && !"".equals(managerId))
{
if(whereclause.toString().length()>1)
whereclause.append(" AND ");
whereclause.append(" MANAGER_ID = :");
whereclause.append(paramCount++);
params.add(managerId);
}
if(buyerId != null && !"".equals(buyerId))
{
if (whereclause.toString().length() > 1)
whereclause.append(" AND ");
whereclause.append(" BUYER_ID = :");
whereclause.append(paramCount++);
params.add(buyerId);
}
if(supplierId != null && !"".equals(supplierId))
{
if(whereclause.toString().length()>1)
whereclause.append(" AND ");
whereclause.append(" SUPPLIER_ID = :");
whereclause.append(paramCount++);
params.add(supplierId);
}
*/
if( whereclause.toString().length() > 1)
setWhereClause(whereclause.toString());
setWhereClauseParams(params.toArray());
executeQuery();
if(first()!=null)
return Boolean.TRUE;
return Boolean.FALSE;
}
}
No comments:
Post a Comment