Describes how to use the external RetailUtility Java™ class to check that required attributes exist.
public boolean checkRequiredAttribute(BusObj busObj, Vector attrs, Vector err) \ throws ExceptionThis method, checkRequiredAttribute, takes as input the Retail_Item business object and two Vectors. The first Vector contains the list of fully qualified attribute names to be checked for NULL or BLANK values. On return, the second Vector contains the list of missing attributes (those containing NULL or BLANK values). The method returns true if no attribute data is missing; it returns false if any required attribute data is missing.
public boolean checkRequiredAttribute(BusObj busObj, String attr, Vector err) \ throws ExceptionThis method, also named checkRequiredAttribute, operates the same as the previous method, except it takes as input a single fully qualified attribute name.
public boolean checkComplexFilters(BusObj busObj, Vector complexFilters) \ throws ExceptioncheckComplexFilters, takes as input the Retail_Item business object and one Vector. The Vector contains HashMaps of complexFilters to be checked. If any of the complex filters evaluate to true, then true is returned. If none of them evaluate to true, then false is returned.
public boolean checkComplexFilter(BusObj busObj, HashMap complexFilter) \ throws ExceptionThis method, checkComplexFilter, operates the same as the previous method, except that it takes as input a HashMap of a single complex filter.