com.ibm.commerce.catalog.commands
Interface ResolveSkuCmd
- All Superinterfaces:
- TaskCommand
- All Known Implementing Classes:
- ResolveSkuCmdImpl
- public interface ResolveSkuCmd
- extends TaskCommand
This command resolves a Product and its associated Attributes and AttributeValues into an orderable Item.
The input to this command is:
- ProductID: the ID of the Product that is to be resolved, and
- AttributeNVPs: a hashtable of ProductAttribute IDs and their associated values that are used to perform the resolution
The output of the command is:
- ItemId: the ID of the resolved orderable Item
- ItemSpecId: the ID of item specification that is associated with the resolved orderable Item
Field Summary |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
static java.lang.String |
defaultCommandClassName
The default implementation class is "com.ibm.commerce.catalog.commands.ResolveSkuCmdImpl". |
static java.lang.String |
NAME
The name of this interface is "com.ibm.commerce.catalog.commands.ResolveSkuCmd". |
Method Summary |
java.lang.Long |
getItemId()
Returns the ItemId that represents the primary key of the resolved Item. |
java.lang.Long |
getItemSpecId()
Returns the ItemspecId that represents the primary key of the resolved ItemSpecification. |
void |
setAttributeNVPs(java.util.Hashtable ahshAttrNVPs)
Sets the hashtable that represents the Attribute names and values that will be used to perform the Item resolution. |
void |
setProductId(java.lang.Long anProductId)
Sets the ProductId that represents the primary key of the CatalogEntry that is to be resolved. |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The internal copyright field.
- See Also:
- Constant Field Values
NAME
public static final java.lang.String NAME
- The name of this interface is "com.ibm.commerce.catalog.commands.ResolveSkuCmd".
- See Also:
- Constant Field Values
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
- The default implementation class is "com.ibm.commerce.catalog.commands.ResolveSkuCmdImpl".
- See Also:
- Constant Field Values
getItemId
public java.lang.Long getItemId()
- Returns the ItemId that represents the primary key of the resolved Item.
-
- Returns:
- the primary key of the resolved item
getItemSpecId
public java.lang.Long getItemSpecId()
- Returns the ItemspecId that represents the primary key of the resolved ItemSpecification. The ItemSpecification is the interface between the Catalog and the rest of the system.
-
- Returns:
- the primary key of the specified item
setAttributeNVPs
public void setAttributeNVPs(java.util.Hashtable ahshAttrNVPs)
- Sets the hashtable that represents the Attribute names and values that will be used to perform the Item resolution.
-
- Parameters:
- ahshAttrNVPs - a set of name-value pairs that represent the product attribute names and associated values
setProductId
public void setProductId(java.lang.Long anProductId)
- Sets the ProductId that represents the primary key of the CatalogEntry that is to be resolved.
-
- Parameters:
- anProductId - the primary key of the product
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.