public class ProductInformation extends ERPInterfaceBogus implements IProductInformation
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
ivWhseDtlDesc
A supplied and WIP warehouse description for warehouse details.
|
protected java.lang.String |
ivWhseDtlId
A supplied warehouse id for warehouse details.
|
protected java.lang.String |
ivWhseDtlQty
A WIP warehouse quantity for warehouse details.
|
private static long |
serialVersionUID
The class' serialization version id.
|
ivConfigivHashCode, ivHashFlds, ivObjAttrsERROR_CONNECT, ERROR_NONE, ERROR_PROGRAM, WARN_DUPLICATE, WARN_NONE| Constructor and Description |
|---|
ProductInformation()
Constructs a new ERP product information interface.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<ImportMetaCriteria> |
getImportMeta()
Retrieves a collection of import metadata criteria for importing from
the ERP product database.
|
boolean |
getPending(ImportBatch batch)
Retrieves products from the ERP system that conform to the import criteria
given in the import batch object.
|
java.util.ArrayList<QuantityPriceBreak> |
getQtyBreaks(Product product)
Retrieves a collection of quantity price breaks for a product.
|
java.util.ArrayList<QuantityOnOrder> |
getQtyOnOrder(Product product)
Retrieves a collection of product on-order expected receipt dates and
quantities.
|
java.util.ArrayList<WarehouseDetail> |
getWhseDetail(java.lang.String whseId,
java.lang.String whseDesc,
Product product)
Retrieves a collection of detailed product quantities for a warehouse.
|
java.lang.String |
getWhseDetailDesc()
Returns the warehouse description that was retrieved from the ERP system
when a request was made to retrieve warehouse detail quantities.
|
java.lang.String |
getWhseDetailQty()
Returns the warehouse item on hand quantity that was retrieved from the
ERP system when a request was made for warehouse detail quantities.
|
java.util.ArrayList<WarehouseQuantity> |
getWhseQtys(Product product)
Retrieves a collection of product availability quantities by warehouse.
|
boolean |
setPriceAndAvail(java.util.ArrayList<Product> products,
int begIndex,
int endIndex,
boolean updatePrice,
boolean updateAvail)
Sets the price and availablility for a set of products using data from
the ERP system.
|
boolean |
validate(java.util.ArrayList<java.lang.Object[]> products)
Validates the given collection of products on the ERP system.
|
equals, getContext, getErrorType, getQueueKey, getWarningType, setContext, setErrorType, setQueueKey, setWarningTypecloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArrayclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetContext, getErrorType, getWarningType, setContext, setErrorType, setWarningTypeprivate static final long serialVersionUID
protected java.lang.String ivWhseDtlId
protected java.lang.String ivWhseDtlDesc
protected java.lang.String ivWhseDtlQty
public ProductInformation()
public java.util.ArrayList<ImportMetaCriteria> getImportMeta()
getImportMeta in IProductInformation.getImportMeta in interface IProductInformationpublic boolean getPending(ImportBatch batch)
PendingProduct information is
added to the batch.
Implements getPending in IProductInformation.getPending in interface IProductInformationbatch - (ImportBatch) The batch to retrieve.true if successful, otherwise false.public java.util.ArrayList<QuantityPriceBreak> getQtyBreaks(Product product)
getQtyBreaks in IProductInformation.getQtyBreaks in interface IProductInformationproduct - (Product) The product to retrieve.public java.util.ArrayList<QuantityOnOrder> getQtyOnOrder(Product product)
getQtyOnOrder in interface IProductInformationproduct - (Product) The product to retrieve.public java.util.ArrayList<WarehouseDetail> getWhseDetail(java.lang.String whseId, java.lang.String whseDesc, Product product)
getWhseDetail in IProductInformation.getWhseDetail in interface IProductInformationwhseId - (String) The id of the warehouse to retrieve.whseDesc - (String) The description of the warehouse to retrieve.product - (Product) The product to retrieve.public java.lang.String getWhseDetailDesc()
getWhseDetailDesc in IProductInformation.getWhseDetailDesc in interface IProductInformationpublic java.lang.String getWhseDetailQty()
getWhseDetailQty in IProductInformation.getWhseDetailQty in interface IProductInformationpublic java.util.ArrayList<WarehouseQuantity> getWhseQtys(Product product)
getWhseQtys in IProductInformation.getWhseQtys in interface IProductInformationproduct - (Product) The product to retrieve.public boolean setPriceAndAvail(java.util.ArrayList<Product> products, int begIndex, int endIndex, boolean updatePrice, boolean updateAvail)
setPriceAndAvail in IProductInformation.setPriceAndAvail in interface IProductInformationproducts - (ArrayList) A list of product objects to process.begIndex - (int) The beginning index, inclusive. Only products in
the collection between begin and end indecises will be updated.endIndex - (int) The ending index, inclusive.updatePrice - (boolean) If true, the price will be updated from
the ERP system.updateAvail - (boolean) If true, the available quantity will be
updated from the ERP system.true if successful, otherwise false.public boolean validate(java.util.ArrayList<java.lang.Object[]> products)
Object[] having 9 or more
elements. The Object[] array elements are defined as:
[0] input - (String) product id [1] input - (String) unit of measure code. [2] output - (Integer) new qty available [3] output - (Integer) new qty2 available [4] output - (BigDecimal) new price [5] output - (String) error codes (if validation errors or warnings) [9] output - (Boolean) qty breaks are possibleImplements
validate in IProductInformation.validate in interface IProductInformationproducts - (ArrayList) The products to validate.true if successful, otherwise false.