|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.CustomerTag
public class CustomerTag
A customer tag is used to save customer related information used mainly for marketing purposes.
| Field Summary | |
|---|---|
static int |
AGE_TYPE
The string in the Value attribute is a Date. |
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 represents a Date. |
static int |
DECIMAL_TYPE
The string in the Value attribute is a Decimal |
static java.lang.String |
DELIM
Used as the delimiter when storing multiple integers |
static int |
INT_TYPE
The string in the Value attribute is an int |
static int |
MULTI_INT_TYPE
The string in the Value attribute consists of multiple integers separated by a delimiter. |
static int |
STRING_TYPE
The string in the Value attribute is a String |
| Constructor Summary | |
|---|---|
CustomerTag()
Constructor |
|
CustomerTag(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the Tag object from a Record object |
|
| Method Summary | |
|---|---|
java.lang.String |
getCustom1()
|
java.lang.String |
getCustom2()
|
java.lang.String |
getCustom3()
|
java.lang.String |
getCustom4()
|
java.lang.String |
getCustom5()
|
int |
getCustomerId()
|
java.util.Calendar |
getDateAdded()
The last time the value of the tag (for a customer) was modified |
java.lang.String |
getDescription()
Description used in expression builder. |
int |
getId()
|
int |
getMaxInts()
When the tag value is of type MULTI_INT_TYPE, this attribute specifies the
maximum number of integers allowed. |
java.lang.String |
getName()
The tag name, normally in caps. |
int |
getType()
The type of tag. |
java.lang.String |
getValidation()
A regular expression validation string used when a new tag is inserted. |
java.lang.String |
getValue()
The value of the tag for a customer. |
java.math.BigDecimal |
getValueAsBigDecimal()
Utility method to return a BigDecimal. |
boolean |
getValueAsBoolean()
Utility method to return a boolean. |
java.util.Date |
getValueAsDate()
Utility method to return a Date. |
int |
getValueAsInt()
Utility method to return an int. |
int[] |
getValueAsIntArray()
Utility method to return an array of integers. |
java.lang.String |
getValueAsString()
Utility method to return a String. |
boolean |
isValueExists()
|
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 |
setCustomerId(int customerId)
|
void |
setDateAdded(java.util.Calendar dateAdded)
The last time the value of the tag (for a customer) was modified |
void |
setDescription(java.lang.String description)
Description used in expression builder. |
void |
setId(int id)
|
void |
setMaxInts(int maxInts)
When the tag value is of type MULTI_INT_TYPE, this attribute specifies the
maximum number of integers allowed. |
void |
setName(java.lang.String name)
The tag name, normally in caps. |
void |
setType(int type)
The type of tag. |
void |
setValidation(java.lang.String validation)
A regular expression validation string used when a new tag is inserted. |
void |
setValue(java.lang.String value)
The value of the tag for a customer. |
void |
setValueAsBigDecimal(java.math.BigDecimal value)
Utility method to set the tag value as a BigDecimal. |
void |
setValueAsBoolean(boolean value)
Utility method to set the tag value as a boolean. |
void |
setValueAsDate(java.util.Date value)
Utility method to set the tag value as a Date. |
void |
setValueAsInt(int value)
Utility method to set the tag value as an int. |
void |
setValueAsIntArray(int[] value)
Utility method to set the tag value as an array of ints. |
void |
setValueAsString(java.lang.String value)
Utility method to set the tag value as a String. |
void |
setValueExists(boolean valueExists)
|
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 java.lang.String DELIM
public static final int STRING_TYPE
public static final int INT_TYPE
public static final int MULTI_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
public static final int AGE_TYPE
| Constructor Detail |
|---|
public CustomerTag()
public CustomerTag(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 getValueAsInt()
throws KKException
KKExceptionpublic int[] getValueAsIntArray()
public java.util.Date getValueAsDate()
throws KKException,
java.text.ParseException
KKException
java.text.ParseExceptionpublic java.lang.String getValueAsString()
public java.math.BigDecimal getValueAsBigDecimal()
public boolean getValueAsBoolean()
throws KKException
KKExceptionpublic void setValueAsInt(int value)
value - public void setValueAsIntArray(int[] value)
value - public void setValueAsDate(java.util.Date value)
value - public void setValueAsBoolean(boolean value)
value - public void setValueAsString(java.lang.String value)
value - public void setValueAsBigDecimal(java.math.BigDecimal value)
value - public int getId()
getId in interface CustomerTagIfpublic void setId(int id)
setId in interface CustomerTagIfid - the id to setpublic java.lang.String getName()
CustomerTagIf
getName in interface CustomerTagIfpublic void setName(java.lang.String name)
CustomerTagIf
setName in interface CustomerTagIfname - the name to setpublic java.lang.String getDescription()
CustomerTagIf
getDescription in interface CustomerTagIfpublic void setDescription(java.lang.String description)
CustomerTagIf
setDescription in interface CustomerTagIfdescription - the description to setpublic java.lang.String getValue()
CustomerTagIf
getValue in interface CustomerTagIfpublic void setValue(java.lang.String value)
CustomerTagIf
setValue in interface CustomerTagIfvalue - the value to setpublic java.lang.String getValidation()
CustomerTagIf
getValidation in interface CustomerTagIfpublic void setValidation(java.lang.String validation)
CustomerTagIf
setValidation in interface CustomerTagIfvalidation - the validation to setpublic int getType()
CustomerTagIfSTRING_TYPE=0: The tag value is a StringINT_TYPE=1: The tag value is an integerMULTI_INT_TYPE=2: The tag value contains one or more integers separated by a
delimiter. The maxInts attributes determines how many integers are allowed.DECIMAL_TYPE=3: The tag value is a decimal.DATE_TYPE=4: The tag value is a date.BOOLEAN_TYPE=5: The tag value is a boolean and so must contain the string
true or falseAGE_TYPE=6: The tag value is a date. When creating expressions you can
define the value to be greater or less than a length of time (in seconds) rather than
comparing it to a specific date.
getType in interface CustomerTagIfpublic void setType(int type)
CustomerTagIfSTRING_TYPE=0: The tag value is a StringINT_TYPE=1: The tag value is an integerMULTI_INT_TYPE=2: The tag value contains one or more integers separated by a
delimiter. The maxInts attributes determines how many integers are allowed.DECIMAL_TYPE=3: The tag value is a decimal.DATE_TYPE=4: The tag value is a date.BOOLEAN_TYPE=5: The tag value is a boolean and so must contain the string
true or falseAGE_TYPE=6: The tag value is a date. When creating expressions you can
define the value to be greater or less than a length of time (in seconds) rather than
comparing it to a specific date.
setType in interface CustomerTagIftype - the type to setpublic int getMaxInts()
CustomerTagIfMULTI_INT_TYPE, this attribute specifies the
maximum number of integers allowed.
getMaxInts in interface CustomerTagIfpublic void setMaxInts(int maxInts)
CustomerTagIfMULTI_INT_TYPE, this attribute specifies the
maximum number of integers allowed.
setMaxInts in interface CustomerTagIfmaxInts - the maxInts to setpublic java.lang.String getCustom1()
getCustom1 in interface CustomerTagIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface CustomerTagIfcustom1 - the custom1 to setpublic java.lang.String getCustom2()
getCustom2 in interface CustomerTagIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface CustomerTagIfcustom2 - the custom2 to setpublic java.lang.String getCustom3()
getCustom3 in interface CustomerTagIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface CustomerTagIfcustom3 - the custom3 to setpublic java.lang.String getCustom4()
getCustom4 in interface CustomerTagIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface CustomerTagIfcustom4 - the custom4 to setpublic java.lang.String getCustom5()
getCustom5 in interface CustomerTagIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface CustomerTagIfcustom5 - the custom5 to setpublic int getCustomerId()
public void setCustomerId(int customerId)
customerId - the customerId to setpublic boolean isValueExists()
public void setValueExists(boolean valueExists)
valueExists - the valueExists to setpublic java.util.Calendar getDateAdded()
CustomerTagIf
getDateAdded in interface CustomerTagIfpublic void setDateAdded(java.util.Calendar dateAdded)
CustomerTagIf
setDateAdded in interface CustomerTagIfdateAdded - the dateAdded to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||