public class CatEntryPriceKey
extends java.lang.Object
Constructor and Description |
---|
CatEntryPriceKey(CatEntryPrices catEntry)
Constructor to build an instance from a
CatEntryPrices . |
CatEntryPriceKey(java.lang.Long newCatEntryID,
QuantityAmount newQuantity)
Constructor to build an instance from a catalog entry ID and a quantity
amount, with a null order item ID.
|
CatEntryPriceKey(java.lang.Long newCatEntryID,
QuantityAmount newQuantity,
com.ibm.commerce.order.objects.OrderItemAccessBean newOrderItem)
Constructor to build an instance from a catalog entry ID, a quantity
amount, and an order item ID from an order item.
|
CatEntryPriceKey(PriceInputCase priceInputCase)
Constructor to build an instance from a
PriceInputCase . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getCatEntryId()
Returns the catalog entry identifier.
|
java.lang.Long |
getOrderItemID()
Returns the order item identifier.
|
QuantityAmount |
getQuantity()
Returns the quantity.
|
int |
hashCode() |
public CatEntryPriceKey(CatEntryPrices catEntry)
CatEntryPrices
.catEntry
- The catalog entry that contains the catalog entry identifier,
quantity and order item ID to use. Cannot be null.public CatEntryPriceKey(java.lang.Long newCatEntryID, QuantityAmount newQuantity)
newCatEntryID
- The catalog entry identifier. Cannot be null.newQuantity
- The quantity amount. Cannot be null.public CatEntryPriceKey(java.lang.Long newCatEntryID, QuantityAmount newQuantity, com.ibm.commerce.order.objects.OrderItemAccessBean newOrderItem)
newCatEntryID
- The catalog entry identifier. Cannot be null.newQuantity
- The quantity amount. Cannot be null.newOrderItem
- The order item. May be null.public CatEntryPriceKey(PriceInputCase priceInputCase)
PriceInputCase
.priceInputCase
- The price input case used to build an instance. Cannot be
null.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Long getCatEntryId()
public java.lang.Long getOrderItemID()
public QuantityAmount getQuantity()
public int hashCode()
hashCode
in class java.lang.Object