|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.ProdCustAttr
public class ProdCustAttr
A Custom product attribute object stores the name and value of the attribute together with some metadata describing it.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ProdCustAttr()
Constructor |
|
ProdCustAttr(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the ProdAttrDesc object from a Record object |
|
| 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 |
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 value)
Utility method to set the tag value as a BigDecimal. |
void |
kkSetValueAsBoolean(boolean value)
Utility method to set the tag value as a boolean. |
void |
kkSetValueAsDate(java.util.Date value)
Utility method to set the tag value as a Date. |
void |
kkSetValueAsInt(int value)
Utility method to set the tag value as an int. |
void |
kkSetValueAsString(java.lang.String value)
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 |
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 |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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)
- See Also:
- Constant Field Values
| Constructor Detail |
|---|
public ProdCustAttr()
public ProdCustAttr(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column names
com.workingdogs.village.DataSetException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public int kkGetValueAsInt()
throws KKException
KKException
public java.util.Date kkGetValueAsDate()
throws KKException,
java.text.ParseException
KKException
java.text.ParseExceptionpublic java.lang.String kkGetValueAsString()
public java.math.BigDecimal kkGetValueAsBigDecimal()
public boolean kkGetValueAsBoolean()
throws KKException
KKExceptionpublic void kkSetValueAsInt(int value)
value - public void kkSetValueAsDate(java.util.Date value)
value - public void kkSetValueAsBoolean(boolean value)
value - public void kkSetValueAsString(java.lang.String value)
value - public void kkSetValueAsBigDecimal(java.math.BigDecimal value)
value - public int getId()
getId in interface ProdCustAttrIfpublic void setId(int id)
setId in interface ProdCustAttrIfid - the id to setpublic java.lang.String getName()
ProdCustAttrIf
getName in interface ProdCustAttrIfpublic void setName(java.lang.String name)
ProdCustAttrIf
setName 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 false
getType 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 false
setType 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()
ProdCustAttrIf
getValue in interface ProdCustAttrIfpublic void setValue(java.lang.String value)
ProdCustAttrIf
setValue in interface ProdCustAttrIfvalue - the value to setpublic java.lang.String getMsgCatKey()
ProdCustAttrIf
getMsgCatKey in interface ProdCustAttrIfpublic void setMsgCatKey(java.lang.String msgCatKey)
ProdCustAttrIf
setMsgCatKey in interface ProdCustAttrIfmsgCatKey - the msgCatKey to setpublic java.lang.String getTemplate()
ProdCustAttrIf
getTemplate in interface ProdCustAttrIfpublic void setTemplate(java.lang.String template)
ProdCustAttrIf
setTemplate in interface ProdCustAttrIftemplate - the template to setpublic int getFacetNumber()
getFacetNumber in interface ProdCustAttrIfpublic void setFacetNumber(int facetNumber)
setFacetNumber in interface ProdCustAttrIffacetNumber - the facetNumber to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||