public class ProdCustAttr extends java.lang.Object implements ProdCustAttrIf
| Modifier and Type | Field and Description |
|---|---|
static int |
BOOLEAN_TYPE
The string in the Value attribute is a boolean (should contain the string
true
or false) |
static int |
DATE_TYPE
The string in the Value attribute is a Date.
|
static int |
DECIMAL_TYPE
The string in the Value attribute is a Decimal
|
static int |
INT_TYPE
The string in the Value attribute is an int
|
static int |
STRING_TYPE
The string in the Value attribute is a String
|
| Constructor and Description |
|---|
ProdCustAttr()
Constructor
|
ProdCustAttr(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the ProdAttrDesc object from a Record object
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
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 storefront
|
java.lang.String |
getName()
The attribute name
|
java.lang.String |
getTemplate()
A template that can be used to format the stored data.
|
java.lang.String |
getTemplateName()
Name of template that the attribute belongs to
|
int |
getType()
The type of attribute.
|
java.lang.String |
getValue()
The value of the attribute
|
java.math.BigDecimal |
kkGetValueAsBigDecimal()
Utility method to return a BigDecimal.
|
boolean |
kkGetValueAsBoolean()
Utility method to return a boolean.
|
java.util.Date |
kkGetValueAsDate()
Utility method to return a Date.
|
int |
kkGetValueAsInt()
Utility method to return an int.
|
java.lang.String |
kkGetValueAsString()
Utility method to return a String.
|
void |
kkSetValueAsBigDecimal(java.math.BigDecimal val)
Utility method to set the tag value as a BigDecimal.
|
void |
kkSetValueAsBoolean(boolean val)
Utility method to set the tag value as a boolean.
|
void |
kkSetValueAsDate(java.util.Date val)
Utility method to set the tag value as a Date.
|
void |
kkSetValueAsInt(int val)
Utility method to set the tag value as an int.
|
void |
kkSetValueAsString(java.lang.String val)
Utility method to set the tag value as a String.
|
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustom4(java.lang.String custom4) |
void |
setCustom5(java.lang.String custom5) |
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 storefront
|
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 |
setTemplateName(java.lang.String templateName)
Name of template that the attribute belongs to
|
void |
setType(int type)
The type of attribute.
|
void |
setValue(java.lang.String value)
The value of the attribute
|
java.lang.String |
toString() |
public static final int STRING_TYPE
public static final int INT_TYPE
public static final int DECIMAL_TYPE
public static final int DATE_TYPE
public static final int BOOLEAN_TYPE
true
or false)public ProdCustAttr()
public ProdCustAttr(com.workingdogs.village.Record vr,
KKCriteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column namescom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString in class java.lang.Objectpublic int kkGetValueAsInt()
throws com.konakart.app.KKException
KKException - an unexpected KKException exceptionpublic java.util.Date kkGetValueAsDate()
throws com.konakart.app.KKException,
java.text.ParseException
KKException - an unexpected KKException exceptionjava.text.ParseException - an unexpected ParseException exceptionpublic java.lang.String kkGetValueAsString()
public java.math.BigDecimal kkGetValueAsBigDecimal()
public boolean kkGetValueAsBoolean()
throws com.konakart.app.KKException
KKException - an unexpected KKException exceptionpublic void kkSetValueAsInt(int val)
val - the valpublic void kkSetValueAsDate(java.util.Date val)
val - the valpublic void kkSetValueAsBoolean(boolean val)
val - the valpublic void kkSetValueAsString(java.lang.String val)
val - the valpublic void kkSetValueAsBigDecimal(java.math.BigDecimal val)
val - the valpublic int getId()
getId in interface ProdCustAttrIfpublic void setId(int id)
setId in interface ProdCustAttrIfid - the id to setpublic java.lang.String getName()
ProdCustAttrIfgetName in interface ProdCustAttrIfpublic void setName(java.lang.String name)
ProdCustAttrIfsetName in interface ProdCustAttrIfname - the name to setpublic int getType()
ProdCustAttrIfSTRING_TYPE=0: The tag value is a StringINT_TYPE=1: The tag value is an integerDECIMAL_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 falsegetType in interface ProdCustAttrIfpublic void setType(int type)
ProdCustAttrIfSTRING_TYPE=0: The tag value is a StringINT_TYPE=1: The tag value is an integerDECIMAL_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 falsesetType in interface ProdCustAttrIftype - the type to setpublic java.lang.String getCustom1()
getCustom1 in interface ProdCustAttrIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface ProdCustAttrIfcustom1 - the custom1 to setpublic java.lang.String getCustom2()
getCustom2 in interface ProdCustAttrIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface ProdCustAttrIfcustom2 - the custom2 to setpublic java.lang.String getCustom3()
getCustom3 in interface ProdCustAttrIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface ProdCustAttrIfcustom3 - the custom3 to setpublic java.lang.String getValue()
ProdCustAttrIfgetValue in interface ProdCustAttrIfpublic void setValue(java.lang.String value)
ProdCustAttrIfsetValue in interface ProdCustAttrIfvalue - the value to setpublic java.lang.String getMsgCatKey()
ProdCustAttrIfgetMsgCatKey in interface ProdCustAttrIfpublic void setMsgCatKey(java.lang.String msgCatKey)
ProdCustAttrIfsetMsgCatKey in interface ProdCustAttrIfmsgCatKey - the msgCatKey to setpublic java.lang.String getTemplate()
ProdCustAttrIfgetTemplate in interface ProdCustAttrIfpublic void setTemplate(java.lang.String template)
ProdCustAttrIfsetTemplate in interface ProdCustAttrIftemplate - the template to setpublic int getFacetNumber()
getFacetNumber in interface ProdCustAttrIfpublic void setFacetNumber(int facetNumber)
setFacetNumber in interface ProdCustAttrIffacetNumber - the facetNumber to setpublic java.lang.String getCustom4()
getCustom4 in interface ProdCustAttrIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface ProdCustAttrIfcustom4 - the custom4 to setpublic java.lang.String getCustom5()
getCustom5 in interface ProdCustAttrIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface ProdCustAttrIfcustom5 - the custom5 to setpublic java.lang.String getTemplateName()
getTemplateName in interface ProdCustAttrIfpublic void setTemplateName(java.lang.String templateName)
setTemplateName in interface ProdCustAttrIftemplateName - the templateName to setCopyright © 2018 DS Data Systems UK Ltd.