|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.app.AdminProdAttrDesc
public class AdminProdAttrDesc
A Product Attribute Descriptor is used to store metadata for a custom product attribute
Field Summary | |
---|---|
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
|
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 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 Summary | |
---|---|
AdminProdAttrDesc()
Constructor |
|
AdminProdAttrDesc(com.workingdogs.village.Record vr,
com.konakart.bl.KKCriteria 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()
|
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()
|
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 _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 |
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 |
setType(int type)
|
void |
setValidation(java.lang.String validation)
|
void |
setValue(java.lang.String value)
|
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
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
Constructor Detail |
---|
public AdminProdAttrDesc()
public AdminProdAttrDesc(com.workingdogs.village.Record vr, com.konakart.bl.KKCriteria 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 interface AdminObjectIf
toString
in class java.lang.Object
public int kkGetValueAsInt() throws KKAdminException
KKAdminException
public java.util.Date kkGetValueAsDate() throws KKAdminException, java.text.ParseException
KKAdminException
java.text.ParseException
public java.lang.String kkGetValueAsString()
public java.math.BigDecimal kkGetValueAsBigDecimal()
public boolean kkGetValueAsBoolean() throws KKAdminException
KKAdminException
public 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 AdminObjectIf
public void setId(int id)
setId
in interface AdminObjectIf
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 set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |