|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.app.AdminCustomerTag
public class AdminCustomerTag
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) |
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
|
private int |
customerId
customerId - Set to identify the customer when the value is set. |
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 |
static java.lang.String |
DELIM
Used as the delimiter when storing multiple integers |
private java.lang.String |
description
Description used in expression builder. |
private int |
id
id |
static int |
INT_TYPE
The string in the Value attribute is an int |
private int |
maxInts
When the tag value is of type MULTI_INT_TYPE , this attribute specifies the
maximum number of integers allowed. |
static int |
MULTI_INT_TYPE
The string in the Value attribute consists of multiple integers separated by a delimiter. |
private java.lang.String |
name
The tag name, normally in caps. |
static int |
STRING_TYPE
The string in the Value attribute is a String |
private int |
type
The type of tag. |
private java.lang.String |
validation
A regular expression validation string used when a new tag is inserted. |
private java.lang.String |
value
The value of the tag for a customer. |
Constructor Summary | |
---|---|
AdminCustomerTag()
Constructor |
|
AdminCustomerTag(com.workingdogs.village.Record vr,
com.konakart.bl.KKCriteria c)
Instantiates the attributes of the CustomerTag 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.Date |
getDateAdded()
|
java.lang.String |
getDescription()
|
int |
getId()
|
int |
getMaxInts()
|
java.lang.String |
getName()
|
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. |
int[] |
kkGetValueAsIntArray()
Utility method to return an array of integers. |
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 |
kkSetValueAsIntArray(int[] val)
Utility method to set the tag value as an array of ints. |
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 |
setCustomerId(int customerId)
|
void |
setDateAdded(java.util.Date dateAdded)
|
void |
setDescription(java.lang.String description)
|
void |
setId(int id)
|
void |
setMaxInts(int maxInts)
|
void |
setName(java.lang.String name)
|
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 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
private int id
private int customerId
private java.lang.String name
private java.lang.String description
private java.lang.String value
private java.lang.String validation
private int type
STRING_TYPE
: The tag value is a StringINT_TYPE
: The tag value is an integerMULTI_INT_TYPE
: The tag value contains one or more integers separated by a
delimiter. The maxInts
attributes determines how many integers are allowed.DECIMAL_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
AGE_TYPE
: 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.
private int maxInts
MULTI_INT_TYPE
, this attribute specifies the
maximum number of integers allowed.
private java.util.Date dateAdded
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
Constructor Detail |
---|
public AdminCustomerTag()
public AdminCustomerTag(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 int[] kkGetValueAsIntArray()
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 val)
val
- public void kkSetValueAsIntArray(int[] val)
val
- public void kkSetValueAsDate(java.util.Date val)
val
- public void kkSetValueAsBoolean(boolean val)
val
- public void kkSetValueAsString(java.lang.String val)
val
- public void kkSetValueAsBigDecimal(java.math.BigDecimal val)
val
- 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 getDescription()
public void setDescription(java.lang.String description)
description
- the description 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 int getMaxInts()
public void setMaxInts(int maxInts)
maxInts
- the maxInts 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.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.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 int getCustomerId()
public void setCustomerId(int customerId)
customerId
- the customerId to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |