com.ibm.commerce.utf.utils
Class RFQProductAttributes

java.lang.Object
  |
  +--com.ibm.commerce.utf.utils.RFQProductAttributes
Direct Known Subclasses:
RFQResProductAttributes

public class RFQProductAttributes
extends java.lang.Object

Every instance of the RFQProductAttributes class represents an attribute that has been associated with an RFQ item. The attribute could be standard attributes defined in the catalog or personalized attributed specifically requested by the buyer.
An RFQ product attribute could be specified as follows:

 Length in 10,11,12 feet .
 

or

 Color = Yellow.
 

In the Length example, the name of the attribute is "Length", the operator is "in", the values are 10,11 and 12, the value delimiter is ",", since it separates one value from another and the unit is "feet".
In the Color example, the name of the attribute is "Color", the operator is "=", the value is "Yellow" and there is no unit.

Each instance of this class has the following information

The class RFQProductAttribute includes methods for getting and setting the fields that comprise an rfq product attribute.


Field Summary
 java.lang.Long attribute_id
           
 java.lang.String attrtype
           
 java.lang.Long catentry_id
           
 java.lang.Integer changeable
           
 java.lang.String description
           
 java.lang.Integer mandatory
           
 java.lang.String name
           
 java.lang.Integer operator_id
           
 java.lang.Long pattribute_id
           
 java.lang.Long tc_id
           
 java.lang.String unit
           
 java.lang.String value
           
 java.lang.String valueDelim
           
 
Constructor Summary
RFQProductAttributes(java.util.Hashtable h, java.lang.Integer languageId)
          Constructs an instance of the RFQProductAttributes class using the incoming Hashtable.
 
Method Summary
 java.lang.Long getAttribute_id()
          Returns the identifier of the standard WebSphere Commerce attribute.
 java.lang.String getAttrtype()
          Returns the type of the attribute.
 java.lang.Long getCatentry_id()
          Returns the catalog entry ID.
 java.lang.Integer getChangeable()
          Returns the flag which indicates whether the attribute value can be changed in the response.
 java.lang.String getDescription()
          Returns the language dependent description of the attribute.
 java.lang.Integer getMandatory()
          Returns the flag which indicates whether the attribute is optional or required in the response.
 java.lang.String getName()
          Returns the attribute name.
 java.lang.Integer getOperator_id()
          Returns the operator identifier.
 java.lang.Long getPattribute_id()
          Returns the identifier of the personalization attribute.
 java.lang.Long getTc_id()
          Returns the identifier of the term and condition corresponding to this attribute.
 java.lang.String getUnit()
          Returns the unit.
 java.lang.String getValue()
          Returns the attribute value.
 java.lang.String getValueDelim()
          Returns the delimiter that separates one value from another, in the case of multi-valued attributes.
 boolean isChangeable()
          Returns a boolean that indicates whether the attribute value is changeable in the response.
 boolean isMandatory()
          Returns a boolean value which indicates whether the attribute is optional or required in the response.
 void setAttribute_id(java.lang.Long newAttribute_id)
          Stores the incoming identifier for the standard attribute.
 void setAttrtype(java.lang.String newAttrtype)
          Stores the type of the attribute.
 void setCatentry_id(java.lang.Long newCatentry_id)
          Stores the catalog entry ID.
 void setChangeable(java.lang.Integer newChangeable)
          Stores the incoming value for the "changeable" flag.
 void setDescription(java.lang.String newDescription)
          Stores the language dependent description of the attribute.
 void setMandatory(java.lang.Integer newMandatory)
          Stores the incoming value of the "mandatory" flag.
 void setName(java.lang.String newName)
          Stores the attribute name.
 void setOperator_id(java.lang.Integer newOperator_id)
          Stores the operator ID.
 void setPattribute_id(java.lang.Long newPattribute_id)
          Stores the identifier of the personalization attribute.
 void setTc_id(java.lang.Long newTc_id)
          Stores the identifier of the term and condition.
 void setUnit(java.lang.String newUnit)
          Stores the unit.
 void setValue(java.lang.String newStringValue)
          Stores the attribute value.
 void setValueDelim(java.lang.String newValueDelim)
          Stores the value delimiter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attribute_id

public java.lang.Long attribute_id

attrtype

public java.lang.String attrtype

catentry_id

public java.lang.Long catentry_id

changeable

public java.lang.Integer changeable

description

public java.lang.String description

mandatory

public java.lang.Integer mandatory

name

public java.lang.String name

operator_id

public java.lang.Integer operator_id

pattribute_id

public java.lang.Long pattribute_id

tc_id

public java.lang.Long tc_id

unit

public java.lang.String unit

value

public java.lang.String value

valueDelim

public java.lang.String valueDelim
Constructor Detail

RFQProductAttributes

public RFQProductAttributes(java.util.Hashtable h,
                            java.lang.Integer languageId)
                     throws java.lang.Exception
Constructs an instance of the RFQProductAttributes class using the incoming Hashtable.

Every RFQ product attribute has the following fields:

  1. catentry_id: The catalog entry ID for which this attribute has been defined
  2. attribute_id: The identifier of the standard attribute.
  3. pattribute_id: The identifier of the personalized attribute.
  4. name: The name of the attribute.
  5. operator_id: The operator identifier.
  6. value: The attribute value.
  7. valueDelim: The value delimiter.
  8. unit: The unit identifier.
  9. mandatory: Flag indicating whether the attribute is mandatory in the response.
  10. changeable: Flag indicating whether the attribute value can be changed in the response.
  11. tc_id: The termcondition identifier. Applicable only when pattribute_id is not empty. If tc_id is non-empty, then it is an existing personalized attribute, else it is a new one.

Throws:
java.lang.Exception -  
Method Detail

getAttribute_id

public java.lang.Long getAttribute_id()
Returns the identifier of the standard WebSphere Commerce attribute.
Returns:
The standard attribute ID.

getAttrtype

public java.lang.String getAttrtype()
Returns the type of the attribute.
Returns:
The attribute type.

getCatentry_id

public java.lang.Long getCatentry_id()
Returns the catalog entry ID.
Returns:
The catalog entry ID.

getChangeable

public java.lang.Integer getChangeable()
Returns the flag which indicates whether the attribute value can be changed in the response.
Returns:
0 if the attribute value cannot be changed in the response, 1 otherwise.

getDescription

public java.lang.String getDescription()
Returns the language dependent description of the attribute.
Returns:
The attribute description.

getMandatory

public java.lang.Integer getMandatory()
Returns the flag which indicates whether the attribute is optional or required in the response.
Returns:
0 if the attribute need not be included in the response, 1 if the attribute must be present in the response.

getName

public java.lang.String getName()
Returns the attribute name.
Returns:
The attribute name.

getOperator_id

public java.lang.Integer getOperator_id()
Returns the operator identifier.
Returns:
The operator ID.

getPattribute_id

public java.lang.Long getPattribute_id()
Returns the identifier of the personalization attribute.
Returns:
The personalization attribute ID.

getTc_id

public java.lang.Long getTc_id()
Returns the identifier of the term and condition corresponding to this attribute.
Returns:
The term and condition identifier.

getUnit

public java.lang.String getUnit()
Returns the unit.
Returns:
The unit.

getValue

public java.lang.String getValue()
Returns the attribute value.
Returns:
The attribute value.

getValueDelim

public java.lang.String getValueDelim()
Returns the delimiter that separates one value from another, in the case of multi-valued attributes.
Returns:
The value delimiter.

isChangeable

public boolean isChangeable()
Returns a boolean that indicates whether the attribute value is changeable in the response.
Returns:
true if the attribute value can be changed in the response, false if the attribute value cannot be changed.

isMandatory

public boolean isMandatory()
Returns a boolean value which indicates whether the attribute is optional or required in the response.
Returns:
false if the attribute need not be included in the response, true if the attribute must be present in the response.

setAttribute_id

public void setAttribute_id(java.lang.Long newAttribute_id)
Stores the incoming identifier for the standard attribute.
Parameters:
newAttribute_id - The identifier for the standard attribute.

setAttrtype

public void setAttrtype(java.lang.String newAttrtype)
Stores the type of the attribute.
Parameters:
newAttrtype - The attribute type.

setCatentry_id

public void setCatentry_id(java.lang.Long newCatentry_id)
Stores the catalog entry ID.
Parameters:
newCatentry_id - The catalog entry ID.

setChangeable

public void setChangeable(java.lang.Integer newChangeable)
Stores the incoming value for the "changeable" flag.
Parameters:
newChangeable - The changeable flag.

setDescription

public void setDescription(java.lang.String newDescription)
Stores the language dependent description of the attribute.
Parameters:
newDescription - The attribute description.

setMandatory

public void setMandatory(java.lang.Integer newMandatory)
Stores the incoming value of the "mandatory" flag.
Parameters:
newMandatory - The mandatory flag.

setName

public void setName(java.lang.String newName)
Stores the attribute name.
Parameters:
newName - The attribute name.

setOperator_id

public void setOperator_id(java.lang.Integer newOperator_id)
Stores the operator ID.
Parameters:
newOperator_id - The operator ID.

setPattribute_id

public void setPattribute_id(java.lang.Long newPattribute_id)
Stores the identifier of the personalization attribute.
Parameters:
newPattribute_id - The personalization attribute ID.

setTc_id

public void setTc_id(java.lang.Long newTc_id)
Stores the identifier of the term and condition.
Parameters:
newTc_id - The term condition ID.

setUnit

public void setUnit(java.lang.String newUnit)
Stores the unit.
Parameters:
newUnit - The unit.

setValue

public void setValue(java.lang.String newStringValue)
Stores the attribute value.
Parameters:
newStringValue - The attribute value.

setValueDelim

public void setValueDelim(java.lang.String newValueDelim)
Stores the value delimiter.
Parameters:
newValueDelim - The value delimiter.