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.Object
public 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 ProdCustAttrIf
public void setId(int id)
setId
in interface ProdCustAttrIf
id
- the id to setpublic java.lang.String getName()
ProdCustAttrIf
getName
in interface ProdCustAttrIf
public void setName(java.lang.String name)
ProdCustAttrIf
setName
in interface ProdCustAttrIf
name
- the name to setpublic int getType()
ProdCustAttrIf
STRING_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 false
getType
in interface ProdCustAttrIf
public void setType(int type)
ProdCustAttrIf
STRING_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 false
setType
in interface ProdCustAttrIf
type
- the type to setpublic java.lang.String getCustom1()
getCustom1
in interface ProdCustAttrIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface ProdCustAttrIf
custom1
- the custom1 to setpublic java.lang.String getCustom2()
getCustom2
in interface ProdCustAttrIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface ProdCustAttrIf
custom2
- the custom2 to setpublic java.lang.String getCustom3()
getCustom3
in interface ProdCustAttrIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface ProdCustAttrIf
custom3
- the custom3 to setpublic java.lang.String getValue()
ProdCustAttrIf
getValue
in interface ProdCustAttrIf
public void setValue(java.lang.String value)
ProdCustAttrIf
setValue
in interface ProdCustAttrIf
value
- the value to setpublic java.lang.String getMsgCatKey()
ProdCustAttrIf
getMsgCatKey
in interface ProdCustAttrIf
public void setMsgCatKey(java.lang.String msgCatKey)
ProdCustAttrIf
setMsgCatKey
in interface ProdCustAttrIf
msgCatKey
- the msgCatKey to setpublic java.lang.String getTemplate()
ProdCustAttrIf
getTemplate
in interface ProdCustAttrIf
public void setTemplate(java.lang.String template)
ProdCustAttrIf
setTemplate
in interface ProdCustAttrIf
template
- the template to setpublic int getFacetNumber()
getFacetNumber
in interface ProdCustAttrIf
public void setFacetNumber(int facetNumber)
setFacetNumber
in interface ProdCustAttrIf
facetNumber
- the facetNumber to setpublic java.lang.String getCustom4()
getCustom4
in interface ProdCustAttrIf
public void setCustom4(java.lang.String custom4)
setCustom4
in interface ProdCustAttrIf
custom4
- the custom4 to setpublic java.lang.String getCustom5()
getCustom5
in interface ProdCustAttrIf
public void setCustom5(java.lang.String custom5)
setCustom5
in interface ProdCustAttrIf
custom5
- the custom5 to setpublic java.lang.String getTemplateName()
getTemplateName
in interface ProdCustAttrIf
public void setTemplateName(java.lang.String templateName)
setTemplateName
in interface ProdCustAttrIf
templateName
- the templateName to setCopyright © 2018 DS Data Systems UK Ltd.