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
          birthDate
private  java.lang.String city
          city
private  java.lang.String emailAddr
          emailAddr
private  int enabled
          enabled.
private  java.lang.String firstName
          firstName
private  int groupId
          groupId.
private  int id
          id - the customer Id.
private  java.lang.String lastName
          lastName
private  int newsletter
          newsletter.
private  int notifiedProductId
          notifiedProductId.
private  java.lang.String orderBy
          orderBy.
private  java.lang.String postcode
          postcode
private  int promotionId
          promotionId.
private  java.lang.String streetAddres
          streetAddress
private  int type
          customer type.
 
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()
           
 java.lang.String getEmailAddr()
           
 int getEnabled()
           
 java.lang.String getFirstName()
           
 int getGroupId()
           
 int getId()
           
 java.lang.String getLastName()
           
 int getNewsletter()
           
 int getNotifiedProductId()
           
 java.lang.String getOrderBy()
           
 java.lang.String getPostcode()
           
 int getPromotionId()
           
 java.lang.String getStreetAddres()
           
 int getType()
           
 void setBirthDate(java.util.Date birthDate)
           
 void setCity(java.lang.String city)
           
 void setEmailAddr(java.lang.String emailAddr)
           
 void setEnabled(int enabled)
           
 void setFirstName(java.lang.String firstName)
           
 void setGroupId(int groupId)
           
 void setId(int id)
           
 void setLastName(java.lang.String lastName)
           
 void setNewsletter(int newsletter)
           
 void setNotifiedProductId(int notifiedProductId)
           
 void setOrderBy(java.lang.String orderBy)
           
 void setPostcode(java.lang.String postcode)
           
 void setPromotionId(int promotionId)
           
 void setStreetAddres(java.lang.String streetAddres)
           
 void setType(int type)
           
 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
firstName


lastName

private java.lang.String lastName
lastName


birthDate

private java.util.Date birthDate
birthDate


emailAddr

private java.lang.String emailAddr
emailAddr


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.


streetAddres

private java.lang.String streetAddres
streetAddress


postcode

private java.lang.String postcode
postcode


city

private java.lang.String city
city


orderBy

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

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.


Copyright © 2006 DS Data Systems UK Ltd.