com.ibm.retail.AEF.automation
Class ItemIdentifierImpl

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.ibm.retail.AEF.automation.IdentifierImpl
                    |
                    +--com.ibm.retail.AEF.automation.ItemIdentifierImpl
All Implemented Interfaces:
java.lang.Cloneable, Identifier, ItemIdentifier, java.util.Map, java.io.Serializable

public class ItemIdentifierImpl
extends com.ibm.retail.AEF.automation.IdentifierImpl
implements ItemIdentifier

ItemIdentifierImpl is a class which contains item code information. It contains the item code data, as well as indicating the type of item code.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Fields inherited from interface com.ibm.retail.AEF.automation.ItemIdentifier
CLASS, CLASS_KEY, DEAL_PRICE, DEAL_QUANTITY, DEPARTMENT, ITEM_CODE, ITEM_TYPE, NONMERCHANDISE, ORIGINAL_SALESPERSON, PRICE, QUANTITY, TAXABLE, WEIGHT
 
Fields inherited from interface com.ibm.retail.AEF.automation.Identifier
ACCOUNT_NUMBER
 
Constructor Summary
ItemIdentifierImpl()
          Constructor.
ItemIdentifierImpl(java.lang.String itemCode, java.lang.String itemCodeType)
          Constructor.
 
Method Summary
(package private) static java.lang.String copyright()
           
 java.lang.String getDealPrice()
          Gets the item's deal price.
 java.lang.String getDealQuantity()
          Gets the item's deal quantity.
 java.lang.String getDepartment()
          Gets the item's department.
 java.lang.String getItemClass()
          Gets the item's class.
 java.lang.String getItemCode()
          Gets the item code.
 java.lang.String getItemCodeType()
          Gets the item code type.
 java.lang.String getOriginalSalesperson()
          Gets the Original Salesperson for this item.
 java.lang.String getPrice()
          Gets the item's price.
 java.lang.String getQuantity()
          Gets the item's quantity.
 java.lang.String getWeight()
          Gets the item's weight.
 boolean isNonMerchandise()
          Gets the item's non-merchandise status.
 void setDealPrice(java.lang.String dealPrice)
          Sets the deal price for the item.
 void setDealQuantity(java.lang.String dealQuantity)
          Sets the deal quantity for the item.
 void setDepartment(java.lang.String itemdepartment)
          Sets the department for the item.
 void setItemClass(java.lang.String itemClass)
          Sets the class for the item.
 void setItemCode(java.lang.String itemCode)
          Sets the item code.
 void setItemCodeType(java.lang.String itemCodeType)
          Sets the item code type.
 void setNonMerchandise(boolean itemNonMerchandiseStatus)
          Sets the non-merchandise flag for this item.
 void setOriginalSalesperson(java.lang.String originalSalesperson)
          Sets the Original Salesperson for this item.
 void setPrice(java.lang.String itemPrice)
          Sets the price for the item.
 void setQuantity(java.lang.String itemQuantity)
          Sets the quantity.
 void setWeight(java.lang.String itemWeight)
          Sets the weight of the item.
 
Methods inherited from class com.ibm.retail.AEF.automation.IdentifierImpl
toString
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.retail.AEF.automation.Identifier
toString
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

ItemIdentifierImpl

public ItemIdentifierImpl()
Constructor.


ItemIdentifierImpl

public ItemIdentifierImpl(java.lang.String itemCode,
                          java.lang.String itemCodeType)
Constructor.

Parameters:
itemCode - The unique item identifier.
itemCodeType - The type of identifier (sku, velocity, upc, dept, etc) See AEFConst.java for the valid id types.
Method Detail

copyright

static java.lang.String copyright()

setItemCode

public void setItemCode(java.lang.String itemCode)
Sets the item code. This should be the upc code, velocity number, sku number, or department number.

Specified by:
setItemCode in interface ItemIdentifier
Parameters:
itemCode - The unique item identifier.

setItemCodeType

public void setItemCodeType(java.lang.String itemCodeType)
Sets the item code type. This should be UPC, VELOCITY, SKU, or DEPT as defined in AEFConst.java.

Specified by:
setItemCodeType in interface ItemIdentifier
Parameters:
itemCodeType - The type of identifier (sku, velocity, upc, dept, etc)
See Also:
for the valid id types.

setQuantity

public void setQuantity(java.lang.String itemQuantity)
Sets the quantity.

Specified by:
setQuantity in interface ItemIdentifier
Parameters:
itemQuantity - The quantity for the item.

setPrice

public void setPrice(java.lang.String itemPrice)
Sets the price for the item.

Specified by:
setPrice in interface ItemIdentifier
Parameters:
itemPrice - The price for the item.

setDealPrice

public void setDealPrice(java.lang.String dealPrice)
Sets the deal price for the item.

Specified by:
setDealPrice in interface ItemIdentifier
Parameters:
dealPrice - The price for a number of items, for example 3 for $1.00.

setDealQuantity

public void setDealQuantity(java.lang.String dealQuantity)
Sets the deal quantity for the item.

Specified by:
setDealQuantity in interface ItemIdentifier
Parameters:
dealQuantity - The number of items selling for a price, for example 3 for $1.00.

setWeight

public void setWeight(java.lang.String itemWeight)
Sets the weight of the item.

Specified by:
setWeight in interface ItemIdentifier
Parameters:
itemWeight - The weight of the item.

setDepartment

public void setDepartment(java.lang.String itemdepartment)
Sets the department for the item.

Specified by:
setDepartment in interface ItemIdentifier
Parameters:
itemdepartment - The department for the item.

setItemClass

public void setItemClass(java.lang.String itemClass)
Sets the class for the item.

Specified by:
setItemClass in interface ItemIdentifier
Parameters:
itemClass - The item's class.

setNonMerchandise

public void setNonMerchandise(boolean itemNonMerchandiseStatus)
Sets the non-merchandise flag for this item.

Specified by:
setNonMerchandise in interface ItemIdentifier
Parameters:
itemNonMerchandiseStatus - The item's non-merchandise status.

setOriginalSalesperson

public void setOriginalSalesperson(java.lang.String originalSalesperson)
Sets the Original Salesperson for this item. This is used for returns on some systems.

Specified by:
setOriginalSalesperson in interface ItemIdentifier
Parameters:
originalSalesperson - The original salesperson for this item.

getItemCode

public java.lang.String getItemCode()
Gets the item code.

Specified by:
getItemCode in interface ItemIdentifier
Returns:
String The item code.

getItemCodeType

public java.lang.String getItemCodeType()
Gets the item code type. This should be UPC, VELOCITY, SKU, or DEPT as defined in AEFConst.java.

Specified by:
getItemCodeType in interface ItemIdentifier
Returns:
String The type of identifier (sku, velocity, upc, dept, etc)
See Also:
for the valid id types.

getQuantity

public java.lang.String getQuantity()
Gets the item's quantity.

Specified by:
getQuantity in interface ItemIdentifier
Returns:
String The item's quantity.

getPrice

public java.lang.String getPrice()
Gets the item's price.

Specified by:
getPrice in interface ItemIdentifier
Returns:
String The item's price.

getDealPrice

public java.lang.String getDealPrice()
Gets the item's deal price.

Specified by:
getDealPrice in interface ItemIdentifier
Returns:
String

getDealQuantity

public java.lang.String getDealQuantity()
Gets the item's deal quantity.

Specified by:
getDealQuantity in interface ItemIdentifier
Returns:
String

getWeight

public java.lang.String getWeight()
Gets the item's weight.

Specified by:
getWeight in interface ItemIdentifier
Returns:
String The item's weight.

getDepartment

public java.lang.String getDepartment()
Gets the item's department.

Specified by:
getDepartment in interface ItemIdentifier
Returns:
String The item's department.

getItemClass

public java.lang.String getItemClass()
Gets the item's class.

Specified by:
getItemClass in interface ItemIdentifier
Returns:
String The item's class.

getOriginalSalesperson

public java.lang.String getOriginalSalesperson()
Gets the Original Salesperson for this item. This is used for returns on some systems.

Specified by:
getOriginalSalesperson in interface ItemIdentifier
Returns:
The original salesperson for this item.

isNonMerchandise

public boolean isNonMerchandise()
Gets the item's non-merchandise status.

Specified by:
isNonMerchandise in interface ItemIdentifier
Returns:
boolean The item's non-merchandise status.


Copyright © 2004 IBM. All Rights Reserved.
Generated: July 19 2004