com.konakart.json.app
Class J_ProdCustAttr

java.lang.Object
  extended by com.konakart.json.app.J_ProdCustAttr
All Implemented Interfaces:
java.io.Serializable

public class J_ProdCustAttr
extends java.lang.Object
implements java.io.Serializable

A Custom product attribute object stores the name and value of the attribute together with some metadata describing it.

See Also:
Serialized Form

Constructor Summary
J_ProdCustAttr()
           
 
Method Summary
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 int getFacetNumber()
          Defines the facet field the attribute is mapped to in SOLR
 int getId()
           
 java.lang.String getMsgCatKey()
          The key used for the message catalog to look up the name to display in the store-front
 java.lang.String getName()
          The attribute name
 java.lang.String getTemplate()
          A template that can be used to format the stored data.
 int getType()
          The type of attribute.
 java.lang.String getValue()
          The value of the attribute
 void setCustom1(java.lang.String _custom1)
           
 void setCustom2(java.lang.String _custom2)
           
 void setCustom3(java.lang.String _custom3)
           
 void setFacetNumber(int _facetNumber)
          Defines the facet field the attribute is mapped to in SOLR
 void setId(int _id)
           
 void setMsgCatKey(java.lang.String _msgCatKey)
          The key used for the message catalog to look up the name to display in the store-front
 void setName(java.lang.String _name)
          The attribute name
 void setTemplate(java.lang.String _template)
          A template that can be used to format the stored data.
 void setType(int _type)
          The type of attribute.
 void setValue(java.lang.String _value)
          The value of the attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_ProdCustAttr

public J_ProdCustAttr()
Method Detail

getId

public int getId()
Returns:
the id

setId

public void setId(int _id)
Parameters:
_id - the id to set

getName

public java.lang.String getName()
The attribute name

Returns:
the name

setName

public void setName(java.lang.String _name)
The attribute name

Parameters:
_name - the name to set

getType

public int getType()
The type of attribute. Valid values are:

Returns:
the type

setType

public void setType(int _type)
The type of attribute. Valid values are:
  • STRING_TYPE=0: The tag value is a String
  • INT_TYPE=1: The tag value is an integer
  • DECIMAL_TYPE=2: The tag value is a decimal.
  • DATE_TYPE=3: The tag value is a date.
  • BOOLEAN_TYPE=4: The tag value is a boolean and so must contain the string true or false

Parameters:
_type - the type to set

getCustom1

public java.lang.String getCustom1()
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String _custom1)
Parameters:
_custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String _custom2)
Parameters:
_custom2 - the custom2 to set

getCustom3

public java.lang.String getCustom3()
Returns:
the custom3

setCustom3

public void setCustom3(java.lang.String _custom3)
Parameters:
_custom3 - the custom3 to set

getValue

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

Returns:
the value

setValue

public void setValue(java.lang.String _value)
The value of the attribute

Parameters:
_value - the value to set

getMsgCatKey

public java.lang.String getMsgCatKey()
The key used for the message catalog to look up the name to display in the store-front

Returns:
the msgCatKey

setMsgCatKey

public void setMsgCatKey(java.lang.String _msgCatKey)
The key used for the message catalog to look up the name to display in the store-front

Parameters:
_msgCatKey - the msgCatKey to set

getTemplate

public java.lang.String getTemplate()
A template that can be used to format the stored data. i.e. For a date

Returns:
the template

setTemplate

public void setTemplate(java.lang.String _template)
A template that can be used to format the stored data. i.e. For a date

Parameters:
_template - the template to set

getFacetNumber

public int getFacetNumber()
Defines the facet field the attribute is mapped to in SOLR

Returns:
the facetNumber

setFacetNumber

public void setFacetNumber(int _facetNumber)
Defines the facet field the attribute is mapped to in SOLR

Parameters:
_facetNumber - the facetNumber to set


Copyright © 2011 DS Data Systems UK Ltd.