public class AdminProdAttrDesc
extends java.lang.Object
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 ) |
private java.lang.String |
custom1
Custom fields
|
private java.lang.String |
custom2 |
private java.lang.String |
custom3 |
private java.lang.String |
custom4 |
private java.lang.String |
custom5 |
static int |
DATE_TYPE
The string in the Value attribute is a Date.
|
private java.util.Date |
dateAdded
dateAdded
|
static int |
DECIMAL_TYPE
The string in the Value attribute is a Decimal
|
private int |
facetNumber
Facet number
|
private int |
id
id
|
static int |
INT_TYPE
The string in the Value attribute is an int
|
private java.lang.String |
msgCatKey
The key used for the message catalog to look up the name to display in the store front
|
private java.lang.String |
name
The attribute name
|
private java.lang.String |
setFunction
Metadata used to display the type of entry field (i.e.
|
static int |
STRING_TYPE
The string in the Value attribute is a String
|
private java.lang.String |
template
A template that can be used to format the stored data.
|
private java.lang.String |
templateName
Template Name
|
private int |
type
The type of attribute.
|
private java.lang.String |
validation
A regular expression validation string used when a new value is inserted.
|
private java.lang.String |
value
The value of the attribute
|
Constructor and Description |
---|
AdminProdAttrDesc()
Constructor
|
AdminProdAttrDesc(com.workingdogs.village.Record vr,
com.konakart.db.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() |
java.util.Date |
getDateAdded() |
int |
getFacetNumber()
Defines the facet field the attribute is mapped to in SOLR
|
int |
getId() |
java.lang.String |
getMsgCatKey() |
java.lang.String |
getName() |
java.lang.String |
getSetFunction() |
java.lang.String |
getTemplate() |
java.lang.String |
getTemplateName()
Name of template that the attribute belongs to
|
int |
getType() |
java.lang.String |
getValidation() |
java.lang.String |
getValue() |
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 |
setDateAdded(java.util.Date dateAdded) |
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) |
void |
setName(java.lang.String name) |
void |
setSetFunction(java.lang.String setFunction) |
void |
setTemplate(java.lang.String template) |
void |
setTemplateName(java.lang.String templateName)
Name of template that the attribute belongs to
|
void |
setType(int type) |
void |
setValidation(java.lang.String validation) |
void |
setValue(java.lang.String value) |
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
)private int id
private java.lang.String name
private java.lang.String msgCatKey
private java.lang.String template
private java.lang.String value
private java.lang.String validation
private java.lang.String setFunction
private int type
STRING_TYPE
: The tag value is a StringINT_TYPE
: The tag value is an integerDECIMAL_TYPE
: The tag value is a decimal.DATE_TYPE
: The tag value is a date.BOOLEAN_TYPE
: The tag value is a boolean and so must contain the string
true
or false
private java.util.Date dateAdded
private int facetNumber
private java.lang.String custom1
private java.lang.String custom2
private java.lang.String custom3
private java.lang.String custom4
private java.lang.String custom5
private java.lang.String templateName
public AdminProdAttrDesc()
public AdminProdAttrDesc(com.workingdogs.village.Record vr, com.konakart.db.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 KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic java.util.Date kkGetValueAsDate() throws KKAdminException, java.text.ParseException
KKAdminException
- an unexpected exception in the KonaKart Admin enginejava.text.ParseException
- an unexpected ParseException exceptionpublic java.lang.String kkGetValueAsString()
public java.math.BigDecimal kkGetValueAsBigDecimal()
public boolean kkGetValueAsBoolean() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic 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()
public void setId(int id)
id
- the id to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getValidation()
public void setValidation(java.lang.String validation)
validation
- the validation to setpublic int getType()
public void setType(int type)
type
- the type to setpublic java.lang.String getCustom1()
public void setCustom1(java.lang.String custom1)
custom1
- the custom1 to setpublic java.lang.String getCustom2()
public void setCustom2(java.lang.String custom2)
custom2
- the custom2 to setpublic java.lang.String getCustom3()
public void setCustom3(java.lang.String custom3)
custom3
- the custom3 to setpublic java.util.Date getDateAdded()
public void setDateAdded(java.util.Date dateAdded)
dateAdded
- the dateAdded to setpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value to setpublic java.lang.String getMsgCatKey()
public void setMsgCatKey(java.lang.String msgCatKey)
msgCatKey
- the msgCatKey to setpublic java.lang.String getTemplate()
public void setTemplate(java.lang.String template)
template
- the template to setpublic java.lang.String getSetFunction()
public void setSetFunction(java.lang.String setFunction)
setFunction
- the setFunction to setpublic int getFacetNumber()
public void setFacetNumber(int facetNumber)
facetNumber
- the facetNumber to setpublic java.lang.String getCustom4()
public void setCustom4(java.lang.String custom4)
custom4
- the custom4 to setpublic java.lang.String getCustom5()
public void setCustom5(java.lang.String custom5)
custom5
- the custom5 to setpublic java.lang.String getTemplateName()
public void setTemplateName(java.lang.String templateName)
templateName
- the templateName to setCopyright © 2018 DS Data Systems UK Ltd.