public final class CSRackItemContent extends CSItemContent
CSRackItem
object.
set/get
methods within CSRackItem
provide access to this content data and so there
should not typically be any need to explicitly use the set/get
methods supplied here.
CSRackItem
,
Serialized FormConstructor and Description |
---|
CSRackItemContent()
Creates an empty
CSRackItemContent object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the data contained in this
CSRackItemContent object is the same as that
contained within the one supplied. |
int |
getDisplayOrder()
Gets the display order of the rack item.
|
int |
getItemID()
Gets the item ID of the rack item.
|
java.lang.String |
getItemType()
Gets the item type of the rack item.
|
CSProductGroup |
getProductGroup()
Gets the
CSProductGroup object that the ItemID of this rack item refers to. |
CSProductType |
getProductType()
Gets the
CSProductType object that the ItemID of this rack item refers to. |
CSRack |
getRack()
Gets the
CSRack object that the ItemID of this rack item refers to. |
int |
getRackID()
Gets the parent rack ID of the rack item.
|
void |
setDisplayOrder(int nDisplayOrder)
Sets the display order of the rack item.
|
void |
setItemID(int nItemID)
Sets the item ID of the rack item.
|
void |
setItemType(java.lang.String strItemType)
Sets the item type of the rack item.
|
void |
setProductGroup(CSProductGroup objProductGroup)
Sets the
CSProductGroup object that the ItemID of this rack item refers to. |
void |
setProductType(CSProductType objProductType)
Sets the
CSProductType object that the ItemID of this rack item refers to. |
void |
setRack(CSRack objRack)
Sets the
CSRack object that the ItemID of this rack item refers to. |
void |
setRackID(int nRackID)
Sets the parent rack ID of the rack item.
|
void |
unset()
Clear all the content details of the
CSRackItemContent object. |
clone, getID, setID, toString
public CSRackItemContent()
CSRackItemContent
object.public int getRackID()
public void setRackID(int nRackID)
nRackID
- the rack item's parent rack ID.public int getItemID()
When ItemType
is set to CSRackItem.ITEM_TYPE_RACK
then this rack item is a rack and
ItemID
is its rack ID.
When ItemType
is set to CSRackItem.ITEM_TYPE_GROUP
then this rack item is a product group
and ItemID
is its product group ID.
When ItemType
is set to CSRackItem.ITEM_TYPE_TYPE
then this rack item is a product type
and ItemID
is its product type ID.
public void setItemID(int nItemID)
When ItemType
is set to CSRackItem.ITEM_TYPE_RACK
then this rack item is a rack and
ItemID
is its rack ID.
When ItemType
is set to CSRackItem.ITEM_TYPE_GROUP
then this rack item is a product group
and ItemID
is its product group ID.
When ItemType
is set to CSRackItem.ITEM_TYPE_TYPE
then this rack item is a product type
and ItemID
is its product type ID.
nItemID
- the rack item's item ID.public java.lang.String getItemType()
public void setItemType(java.lang.String strItemType)
The valid item types are as follows :
Rack
Group
Type
strItemType
- the rack item's item type.public int getDisplayOrder()
public void setDisplayOrder(int nDisplayOrder)
nDisplayOrder
- the rack item's display order.public CSRack getRack()
CSRack
object that the ItemID
of this rack item refers to.
CSRack
object that this rack item refers to when ItemType
is set to CSRackItem.ITEM_TYPE_RACK
, or null when ItemType
is NOT set to
CSRackItem.ITEM_TYPE_RACK
.public void setRack(CSRack objRack)
CSRack
object that the ItemID
of this rack item refers to.
objRack
- the CSRack
object that this rack item refers to.public CSProductGroup getProductGroup()
CSProductGroup
object that the ItemID
of this rack item refers to.
CSProductGroup
object that this rack item refers to when ItemType
is set to
CSRackItem.ITEM_TYPE_GROUP
, or null when ItemType
is NOT set to
CSRackItem.ITEM_TYPE_GROUP
.public void setProductGroup(CSProductGroup objProductGroup)
CSProductGroup
object that the ItemID
of this rack item refers to.
objProductGroup
- the CSProductGroup
object that this rack item refers to.public CSProductType getProductType()
CSProductType
object that the ItemID
of this rack item refers to.
CSProductType
object that this rack item refers to when ItemType
is set to
CSRackItem.ITEM_TYPE_TYPE
, or null when ItemType
is NOT set to
CSRackItem.ITEM_TYPE_TYPE
.public void setProductType(CSProductType objProductType)
CSProductType
object that the ItemID
of this rack item refers to.
objProductType
- the CSProductType
object that this rack item refers to.public void unset()
CSRackItemContent
object.unset
in class CSItemContent
public boolean equals(java.lang.Object obj)
CSRackItemContent
object is the same as that
contained within the one supplied. Note that the key data used for searching is not tested for equality.
equals
in class CSItemContent
obj
- the CSRackItemContent
to be tested for equality.true
if the data matches, false
otherwise.Copyright © 2022 Goss Interactive Ltd. All Rights Reserved.