org.company.thesandbox.domain
Class CustomerImplBase

java.lang.Object
  extended by org.company.thesandbox.domain.PersonImplBase
      extended by org.company.thesandbox.domain.Person
          extended by org.company.thesandbox.domain.CustomerImplBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Customer

public abstract class CustomerImplBase
extends Person
implements java.io.Serializable

A Customer represents a Person who orders from the RecordShop.

Author:
Generated by Mod4j BusinessDomain DSL
See Also:
Serialized Form

Field Summary
static int DISCOUNTPERCENTAGE_MAXVALUE
           
static int DISCOUNTPERCENTAGE_MINVALUE
           
static java.lang.String EMAILADDRESS_REGEXP
           
static java.lang.Integer USERNAME_MAXLENGTH
           
static java.lang.Integer USERNAME_MINLENGTH
           
 
Fields inherited from class org.company.thesandbox.domain.PersonImplBase
NUMBEROFEARS_MAXVALUE, NUMBEROFEARS_MINVALUE, validation
 
Constructor Summary
protected CustomerImplBase()
          Default no-argument constructor for CustomerImplBase
  CustomerImplBase(java.lang.String firstName, java.lang.String lastName, int customerNr)
          Minimal constructor for CustomerImplBase
 
Method Summary
 void activateValidation(boolean value)
          Activate/deactivate validation for this business class.
 void addToOrders(Order element)
          Implements adding single element to a collection
 int getCustomerNr()
           
 int getDiscountPercentage()
           
 java.lang.String getEmailAddress()
           
 java.util.Set<Order> getOrders()
           
 java.lang.String getUsername()
           
 java.lang.Boolean isBlackListed()
           
 void removeFromOrders(Order element)
          Implements removal of a single element from feature
 void setBlackListed(java.lang.Boolean blackListed)
           
 void setCustomerNr(int customerNr)
           
 void setDiscountPercentage(int discountPercentage)
           
 void setEmailAddress(java.lang.String emailAddress)
           
 void setUsername(java.lang.String username)
           
 void z_internalAddToorders(Order element)
          This operation should NOT be used by clients.
 void z_internalRemoveFromorders(Order element)
          This operation should NOT be used by clients.
 
Methods inherited from class org.company.thesandbox.domain.PersonImplBase
getAge, getFirstName, getId, getLastName, getNumberOfEars, getSexe, setAge, setFirstName, setLastName, setNumberOfEars, setSexe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERNAME_MINLENGTH

public static final java.lang.Integer USERNAME_MINLENGTH

USERNAME_MAXLENGTH

public static final java.lang.Integer USERNAME_MAXLENGTH

EMAILADDRESS_REGEXP

public static final java.lang.String EMAILADDRESS_REGEXP
See Also:
Constant Field Values

DISCOUNTPERCENTAGE_MINVALUE

public static final int DISCOUNTPERCENTAGE_MINVALUE
See Also:
Constant Field Values

DISCOUNTPERCENTAGE_MAXVALUE

public static final int DISCOUNTPERCENTAGE_MAXVALUE
See Also:
Constant Field Values
Constructor Detail

CustomerImplBase

protected CustomerImplBase()
Default no-argument constructor for CustomerImplBase


CustomerImplBase

public CustomerImplBase(java.lang.String firstName,
                        java.lang.String lastName,
                        int customerNr)
Minimal constructor for CustomerImplBase

Parameters:
firstName - (string) First name of the person.
lastName - (string) Last name of the person.
customerNr - (integer)
Method Detail

getOrders

public java.util.Set<Order> getOrders()
Returns:
orders (Set)

addToOrders

public void addToOrders(Order element)
Implements adding single element to a collection


removeFromOrders

public void removeFromOrders(Order element)
Implements removal of a single element from feature

Parameters:
element -

z_internalAddToorders

public void z_internalAddToorders(Order element)
This operation should NOT be used by clients. It implements the correct addition of an element in an association.

Parameters:
element -

z_internalRemoveFromorders

public void z_internalRemoveFromorders(Order element)
This operation should NOT be used by clients. It implements the correct removal of an element in an association.

Parameters:
element -

getCustomerNr

public int getCustomerNr()
Returns:
customerNr (int)

getUsername

public java.lang.String getUsername()
Returns:
username (String)

getEmailAddress

public java.lang.String getEmailAddress()
Returns:
emailAddress (String)

isBlackListed

public java.lang.Boolean isBlackListed()
Returns:
blackListed (Boolean)

getDiscountPercentage

public int getDiscountPercentage()
Returns:
discountPercentage (int)

setCustomerNr

public void setCustomerNr(int customerNr)
Parameters:
customerNr - (int)

setUsername

public void setUsername(java.lang.String username)
Parameters:
username - (String)

setEmailAddress

public void setEmailAddress(java.lang.String emailAddress)
Parameters:
emailAddress - (String)

setBlackListed

public void setBlackListed(java.lang.Boolean blackListed)
Parameters:
blackListed - (Boolean)

setDiscountPercentage

public void setDiscountPercentage(int discountPercentage)
Parameters:
discountPercentage - (int)

activateValidation

public void activateValidation(boolean value)
Activate/deactivate validation for this business class. When set to active the validation will immediately be executed.

Overrides:
activateValidation in class PersonImplBase
Parameters:
value - (boolean)


Copyright © 2010. All Rights Reserved.