com.konakartadmin.app
Class AdminCustomerSearch

java.lang.Object
  extended by com.konakartadmin.app.AdminCustomerSearch

public class AdminCustomerSearch
extends java.lang.Object

CustomerSearch object for the Admin App


Field Summary
private  java.util.Date birthDate
          birth Date
private  java.lang.String city
          city
private  int cityRule
          city Rule
private  java.lang.String custom1
          custom1
private  int custom1Rule
          custom1 Rule
private  java.lang.String custom2
          custom2
private  int custom2Rule
          custom2 Rule
private  java.lang.String custom3
          custom3
private  int custom3Rule
          custom3 Rule
private  java.lang.String custom4
          custom4
private  int custom4Rule
          custom4 Rule
private  java.lang.String custom5
          custom5
private  int custom5Rule
          custom5 Rule
private  java.lang.String emailAddr
          email Address
private  int emailAddrRule
          email Address rule
private  int enabled
          enabled.
private  int expressionId
          expressionId.
private  java.lang.String expressionName
          expressionName.
private  java.lang.String firstName
          first Name
private  int firstNameRule
          first Name Rule
private  int groupId
          groupId.
private  int id
          id - the customer Id.
private  java.lang.String lastName
          last Name
private  int lastNameRule
          last Name Rule
private  int newsletter
          newsletter.
private  int notifiedProductId
          notifiedProductId.
private  java.lang.String orderBy
          orderBy.
private  java.lang.String postcode
          postcode
private  int postcodeRule
          postcode Rule
private  int promotionId
          promotionId.
private  boolean returnNonRegisteredCustomers
          When set to true, non registered customers are returned.
private  boolean showInvisible
          Invisible customers are returned when this attribute is set.
private  java.lang.String streetAddres
          street Address
private  java.lang.String streetAddres1
          street Address1
private  int streetAddres1Rule
          street Address1 Rule
private  int streetAddresRule
          street Address Rule
private  int type
          customer type.
private  boolean useWildCardsOnEmailAddr
          useWildCardsOnEmailAddr - If set to true the defined pre and post wildcards are added and a "LIKE" search is executed for emailAddress.
 
Constructor Summary
AdminCustomerSearch()
          Instantiates an AdminCustomerSearch object - a requirement for a bean class
AdminCustomerSearch(com.workingdogs.village.Record r, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the AdminCustomerSearch object from a Record object
 
Method Summary
 java.util.Date getBirthDate()
           
 java.lang.String getCity()
           
 int getCityRule()
          The rule for the search.
 java.lang.String getCustom1()
           
 int getCustom1Rule()
          The rule for the search.
 java.lang.String getCustom2()
           
 int getCustom2Rule()
          The rule for the search.
 java.lang.String getCustom3()
           
 int getCustom3Rule()
          The rule for the search.
 java.lang.String getCustom4()
           
 int getCustom4Rule()
          The rule for the search.
 java.lang.String getCustom5()
           
 int getCustom5Rule()
          The rule for the search.
 java.lang.String getEmailAddr()
           
 int getEmailAddrRule()
          The rule for the search.
 int getEnabled()
           
 int getExpressionId()
           
 java.lang.String getExpressionName()
           
 java.lang.String getFirstName()
           
 int getFirstNameRule()
          The rule for the search.
 int getGroupId()
           
 int getId()
           
 java.lang.String getLastName()
           
 int getLastNameRule()
          The rule for the search.
 int getNewsletter()
           
 int getNotifiedProductId()
           
 java.lang.String getOrderBy()
           
 java.lang.String getPostcode()
           
 int getPostcodeRule()
          The rule for the search.
 int getPromotionId()
           
 java.lang.String getStreetAddres()
           
 java.lang.String getStreetAddres1()
           
 int getStreetAddres1Rule()
          The rule for the search.
 int getStreetAddresRule()
          The rule for the search.
 int getType()
           
 boolean isReturnNonRegisteredCustomers()
          When set to true, non registered customers are returned.
 boolean isShowInvisible()
           
 boolean isUseWildCardsOnEmailAddr()
           
 void setBirthDate(java.util.Date birthDate)
           
 void setCity(java.lang.String city)
           
 void setCityRule(int cityRule)
          The rule for the search.
 void setCustom1(java.lang.String custom1)
           
 void setCustom1Rule(int custom1Rule)
          The rule for the search.
 void setCustom2(java.lang.String custom2)
           
 void setCustom2Rule(int custom2Rule)
          The rule for the search.
 void setCustom3(java.lang.String custom3)
           
 void setCustom3Rule(int custom3Rule)
          The rule for the search.
 void setCustom4(java.lang.String custom4)
           
 void setCustom4Rule(int custom4Rule)
          The rule for the search.
 void setCustom5(java.lang.String custom5)
           
 void setCustom5Rule(int custom5Rule)
          The rule for the search.
 void setEmailAddr(java.lang.String emailAddr)
           
 void setEmailAddrRule(int emailAddrRule)
          The rule for the search.
 void setEnabled(int enabled)
           
 void setExpressionId(int expressionId)
           
 void setExpressionName(java.lang.String expressionName)
           
 void setFirstName(java.lang.String firstName)
           
 void setFirstNameRule(int firstNameRule)
          The rule for the search.
 void setGroupId(int groupId)
           
 void setId(int id)
           
 void setLastName(java.lang.String lastName)
           
 void setLastNameRule(int lastNameRule)
          The rule for the search.
 void setNewsletter(int newsletter)
           
 void setNotifiedProductId(int notifiedProductId)
           
 void setOrderBy(java.lang.String orderBy)
           
 void setPostcode(java.lang.String postcode)
           
 void setPostcodeRule(int postcodeRule)
          The rule for the search.
 void setPromotionId(int promotionId)
           
 void setReturnNonRegisteredCustomers(boolean returnNonRegisteredCustomers)
          When set to true, non registered customers are returned.
 void setShowInvisible(boolean showInvisible)
           
 void setStreetAddres(java.lang.String streetAddres)
           
 void setStreetAddres1(java.lang.String streetAddres1)
           
 void setStreetAddres1Rule(int streetAddres1Rule)
          The rule for the search.
 void setStreetAddresRule(int streetAddresRule)
          The rule for the search.
 void setType(int type)
           
 void setUseWildCardsOnEmailAddr(boolean useWildCardsOnEmailAddr)
           
 java.lang.String toString()
           
 java.lang.String toStringBrief()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private int id
id - the customer Id. Set this to KonakartAdminConstants.NOT_SET if you do not want to search by customer Id.


firstName

private java.lang.String firstName
first Name


firstNameRule

private int firstNameRule
first Name Rule


lastName

private java.lang.String lastName
last Name


lastNameRule

private int lastNameRule
last Name Rule


birthDate

private java.util.Date birthDate
birth Date


emailAddr

private java.lang.String emailAddr
email Address


emailAddrRule

private int emailAddrRule
email Address rule


useWildCardsOnEmailAddr

private boolean useWildCardsOnEmailAddr
useWildCardsOnEmailAddr - If set to true the defined pre and post wildcards are added and a "LIKE" search is executed for emailAddress. If set to false no wildcards are added before or after the emailAddress and an "EQUALS" search is executed - which requires an eaxct match on emailAddress.


promotionId

private int promotionId
promotionId. Set this to KonakartAdminConstants.NOT_SET if you do not want to search by promotionId


enabled

private int enabled
enabled. 0 = not enabled, 1 = enabled. Set this to KonakartAdminConstants.NOT_SET if you do not want to search by whether or not the customer is enabled


type

private int type
customer type. 0 = customer, 1 = Admin App user, 2 = non registered customer. Set this to KonakartAdminConstants.NOT_SET if you do not want to search by customer type.


newsletter

private int newsletter
newsletter. 0 = don't receive, 1 = receive the newsletter. Set this to KonakartAdminConstants.NOT_SET if you do not want to search by the newsletter flag


notifiedProductId

private int notifiedProductId
notifiedProductId. If set to a positive number, all customers that need to receive notifications for this product will be returned. Set this to KonakartAdminConstants.NOT_SET if you do not want to search by notifiedProductsId


groupId

private int groupId
groupId. Set this to KonakartAdminConstants.NOT_SET if you do not want to search by groupId.


expressionId

private int expressionId
expressionId. Set this to KonakartAdminConstants.NOT_SET if you do not want to filter customers by those that return true for this expression. If expressionName is not set to null, then this id is ignored and the expression is searched for by name. Otherwise if expressionName is set to null and expressionId is a positive number, then the expressionId is used to retrieve the expression.
Only used when sending template eMails to customers.


expressionName

private java.lang.String expressionName
expressionName. Set this to null if you do not want to filter customers by those that return true for this expression. If not set to null, then expressionId is ignored and the expression is searched for by name. Otherwise if null and expressionId is a positive number, then expressionId is used to retrieve the expression.
Only used when sending template eMails to customers.


streetAddres

private java.lang.String streetAddres
street Address


streetAddres1

private java.lang.String streetAddres1
street Address1


postcode

private java.lang.String postcode
postcode


city

private java.lang.String city
city


streetAddresRule

private int streetAddresRule
street Address Rule


streetAddres1Rule

private int streetAddres1Rule
street Address1 Rule


postcodeRule

private int postcodeRule
postcode Rule


cityRule

private int cityRule
city Rule


showInvisible

private boolean showInvisible
Invisible customers are returned when this attribute is set.


custom1

private java.lang.String custom1
custom1


custom2

private java.lang.String custom2
custom2


custom3

private java.lang.String custom3
custom3


custom4

private java.lang.String custom4
custom4


custom5

private java.lang.String custom5
custom5


custom1Rule

private int custom1Rule
custom1 Rule


custom2Rule

private int custom2Rule
custom2 Rule


custom3Rule

private int custom3Rule
custom3 Rule


custom4Rule

private int custom4Rule
custom4 Rule


custom5Rule

private int custom5Rule
custom5 Rule


orderBy

private java.lang.String orderBy
orderBy. Refer to AdminDataDescriptor for the ORDER_BY options.


returnNonRegisteredCustomers

private boolean returnNonRegisteredCustomers
When set to true, non registered customers are returned. By default it is set to false.

Constructor Detail

AdminCustomerSearch

public AdminCustomerSearch()
Instantiates an AdminCustomerSearch object - a requirement for a bean class


AdminCustomerSearch

public AdminCustomerSearch(com.workingdogs.village.Record r,
                           org.apache.torque.util.Criteria c)
                    throws com.workingdogs.village.DataSetException
Instantiates the attributes of the AdminCustomerSearch object from a Record object

Parameters:
r - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the CustomerSearch object.

toStringBrief

public java.lang.String toStringBrief()
Returns:
Returns a string containing the attributes of the Customer object.

getEmailAddr

public java.lang.String getEmailAddr()
Returns:
Returns the emailAddr.

setEmailAddr

public void setEmailAddr(java.lang.String emailAddr)
Parameters:
emailAddr - The emailAddr to set.

getFirstName

public java.lang.String getFirstName()
Returns:
Returns the firstName.

setFirstName

public void setFirstName(java.lang.String firstName)
Parameters:
firstName - The firstName to set.

getId

public int getId()
Returns:
Returns the id.

setId

public void setId(int id)
Parameters:
id - The id to set.

getLastName

public java.lang.String getLastName()
Returns:
Returns the lastName.

setLastName

public void setLastName(java.lang.String lastName)
Parameters:
lastName - The lastName to set.

getBirthDate

public java.util.Date getBirthDate()
Returns:
Returns the birthDate.

setBirthDate

public void setBirthDate(java.util.Date birthDate)
Parameters:
birthDate - The birthDate to set.

getOrderBy

public java.lang.String getOrderBy()
Returns:
Returns the orderBy.

setOrderBy

public void setOrderBy(java.lang.String orderBy)
Parameters:
orderBy - The orderBy to set.

getPromotionId

public int getPromotionId()
Returns:
Returns the promotionId.

setPromotionId

public void setPromotionId(int promotionId)
Parameters:
promotionId - The promotionId to set.

getEnabled

public int getEnabled()
Returns:
Returns the enabled.

setEnabled

public void setEnabled(int enabled)
Parameters:
enabled - The enabled to set.

getType

public int getType()
Returns:
Returns the type.

setType

public void setType(int type)
Parameters:
type - The type to set.

getNewsletter

public int getNewsletter()
Returns:
Returns the newsletter.

setNewsletter

public void setNewsletter(int newsletter)
Parameters:
newsletter - The newsletter to set.

getNotifiedProductId

public int getNotifiedProductId()
Returns:
Returns the notifiedProductId.

setNotifiedProductId

public void setNotifiedProductId(int notifiedProductId)
Parameters:
notifiedProductId - The notifiedProductId to set.

getGroupId

public int getGroupId()
Returns:
Returns the groupId.

setGroupId

public void setGroupId(int groupId)
Parameters:
groupId - The groupId to set.

getStreetAddres

public java.lang.String getStreetAddres()
Returns:
Returns the streetAddres.

setStreetAddres

public void setStreetAddres(java.lang.String streetAddres)
Parameters:
streetAddres - The streetAddres to set.

getPostcode

public java.lang.String getPostcode()
Returns:
Returns the postcode.

setPostcode

public void setPostcode(java.lang.String postcode)
Parameters:
postcode - The postcode to set.

getCity

public java.lang.String getCity()
Returns:
Returns the city.

setCity

public void setCity(java.lang.String city)
Parameters:
city - The city to set.

getCustom1

public java.lang.String getCustom1()
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Parameters:
custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String custom2)
Parameters:
custom2 - the custom2 to set

getCustom3

public java.lang.String getCustom3()
Returns:
the custom3

setCustom3

public void setCustom3(java.lang.String custom3)
Parameters:
custom3 - the custom3 to set

getCustom4

public java.lang.String getCustom4()
Returns:
the custom4

setCustom4

public void setCustom4(java.lang.String custom4)
Parameters:
custom4 - the custom4 to set

getCustom5

public java.lang.String getCustom5()
Returns:
the custom5

setCustom5

public void setCustom5(java.lang.String custom5)
Parameters:
custom5 - the custom5 to set

isReturnNonRegisteredCustomers

public boolean isReturnNonRegisteredCustomers()
When set to true, non registered customers are returned. By default it is set to false.

Returns:
the returnNonRegisteredCustomers

setReturnNonRegisteredCustomers

public void setReturnNonRegisteredCustomers(boolean returnNonRegisteredCustomers)
When set to true, non registered customers are returned. By default it is set to false.

Parameters:
returnNonRegisteredCustomers - the returnNonRegisteredCustomers to set

getExpressionId

public int getExpressionId()
Returns:
the expressionId

setExpressionId

public void setExpressionId(int expressionId)
Parameters:
expressionId - the expressionId to set

getExpressionName

public java.lang.String getExpressionName()
Returns:
the expressionName

setExpressionName

public void setExpressionName(java.lang.String expressionName)
Parameters:
expressionName - the expressionName to set

isUseWildCardsOnEmailAddr

public boolean isUseWildCardsOnEmailAddr()
Returns:
the useWildCardsOnEmailAddr

setUseWildCardsOnEmailAddr

public void setUseWildCardsOnEmailAddr(boolean useWildCardsOnEmailAddr)
Parameters:
useWildCardsOnEmailAddr - the useWildCardsOnEmailAddr to set

getFirstNameRule

public int getFirstNameRule()
The rule for the search. Valid values are:

Returns:
the firstNameRule

setFirstNameRule

public void setFirstNameRule(int firstNameRule)
The rule for the search. Valid values are:

Parameters:
firstNameRule - the firstNameRule to set

getLastNameRule

public int getLastNameRule()
The rule for the search. Valid values are:

Returns:
the lastNameRule

setLastNameRule

public void setLastNameRule(int lastNameRule)
The rule for the search. Valid values are:

Parameters:
lastNameRule - the lastNameRule to set

getEmailAddrRule

public int getEmailAddrRule()
The rule for the search. Valid values are:

Returns:
the emailAddrRule

setEmailAddrRule

public void setEmailAddrRule(int emailAddrRule)
The rule for the search. Valid values are:

Parameters:
emailAddrRule - the emailAddrRule to set

getStreetAddresRule

public int getStreetAddresRule()
The rule for the search. Valid values are:

Returns:
the streetAddresRule

setStreetAddresRule

public void setStreetAddresRule(int streetAddresRule)
The rule for the search. Valid values are:

Parameters:
streetAddresRule - the streetAddresRule to set

getPostcodeRule

public int getPostcodeRule()
The rule for the search. Valid values are:

Returns:
the postcodeRule

setPostcodeRule

public void setPostcodeRule(int postcodeRule)
The rule for the search. Valid values are:

Parameters:
postcodeRule - the postcodeRule to set

getCityRule

public int getCityRule()
The rule for the search. Valid values are:

Returns:
the cityRule

setCityRule

public void setCityRule(int cityRule)
The rule for the search. Valid values are:

Parameters:
cityRule - the cityRule to set

getCustom1Rule

public int getCustom1Rule()
The rule for the search. Valid values are:

Returns:
the custom1Rule

setCustom1Rule

public void setCustom1Rule(int custom1Rule)
The rule for the search. Valid values are:

Parameters:
custom1Rule - the custom1Rule to set

getCustom2Rule

public int getCustom2Rule()
The rule for the search. Valid values are:

Returns:
the custom2Rule

setCustom2Rule

public void setCustom2Rule(int custom2Rule)
The rule for the search. Valid values are:

Parameters:
custom2Rule - the custom2Rule to set

getCustom3Rule

public int getCustom3Rule()
The rule for the search. Valid values are:

Returns:
the custom3Rule

setCustom3Rule

public void setCustom3Rule(int custom3Rule)
The rule for the search. Valid values are:

Parameters:
custom3Rule - the custom3Rule to set

getCustom4Rule

public int getCustom4Rule()
The rule for the search. Valid values are:

Returns:
the custom4Rule

setCustom4Rule

public void setCustom4Rule(int custom4Rule)
The rule for the search. Valid values are:

Parameters:
custom4Rule - the custom4Rule to set

getCustom5Rule

public int getCustom5Rule()
The rule for the search. Valid values are:

Returns:
the custom5Rule

setCustom5Rule

public void setCustom5Rule(int custom5Rule)
The rule for the search. Valid values are:

Parameters:
custom5Rule - the custom5Rule to set

getStreetAddres1

public java.lang.String getStreetAddres1()
Returns:
the streetAddres1

setStreetAddres1

public void setStreetAddres1(java.lang.String streetAddres1)
Parameters:
streetAddres1 - the streetAddres1 to set

getStreetAddres1Rule

public int getStreetAddres1Rule()
The rule for the search. Valid values are:

Returns:
the streetAddres1Rule

setStreetAddres1Rule

public void setStreetAddres1Rule(int streetAddres1Rule)
The rule for the search. Valid values are:

Parameters:
streetAddres1Rule - the streetAddres1Rule to set

isShowInvisible

public boolean isShowInvisible()
Returns:
the showInvisible

setShowInvisible

public void setShowInvisible(boolean showInvisible)
Parameters:
showInvisible - the showInvisible to set


Copyright © 2011 DS Data Systems UK Ltd.