org.company.thesandbox.domain
Class PersonImplBase

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

public abstract class PersonImplBase
extends java.lang.Object
implements java.io.Serializable

A Person represents a legal person.

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

Field Summary
static int NUMBEROFEARS_MAXVALUE
           
static int NUMBEROFEARS_MINVALUE
           
protected  org.mod4j.runtime.validation.BusinessRuleValidationSupport validation
          validation : Responsible for validating attribute constraints and businessrules for this business class.
 
Constructor Summary
protected PersonImplBase()
          Default no-argument constructor for PersonImplBase
  PersonImplBase(java.lang.String firstName, java.lang.String lastName)
          Minimal constructor for PersonImplBase
 
Method Summary
 void activateValidation(boolean value)
          Activate/deactivate validation for this business class.
 java.lang.Integer getAge()
           
 java.lang.String getFirstName()
           
 java.lang.Long getId()
           
 java.lang.String getLastName()
           
 int getNumberOfEars()
           
 Sexe getSexe()
           
 void setAge(java.lang.Integer age)
           
 void setFirstName(java.lang.String firstName)
           
 void setLastName(java.lang.String lastName)
           
 void setNumberOfEars(int numberOfEars)
           
 void setSexe(Sexe sexe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validation

protected org.mod4j.runtime.validation.BusinessRuleValidationSupport validation
validation : Responsible for validating attribute constraints and businessrules for this business class.


NUMBEROFEARS_MINVALUE

public static final int NUMBEROFEARS_MINVALUE
See Also:
Constant Field Values

NUMBEROFEARS_MAXVALUE

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

PersonImplBase

protected PersonImplBase()
Default no-argument constructor for PersonImplBase


PersonImplBase

public PersonImplBase(java.lang.String firstName,
                      java.lang.String lastName)
Minimal constructor for PersonImplBase

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

getId

public java.lang.Long getId()
Returns:
id (Long) The identifier of this object.

getFirstName

public java.lang.String getFirstName()
Returns:
firstName (String) First name of the person.

getLastName

public java.lang.String getLastName()
Returns:
lastName (String) Last name of the person.

getAge

public java.lang.Integer getAge()
Returns:
age (Integer) The age of this person in years

getNumberOfEars

public int getNumberOfEars()
Returns:
numberOfEars (int) Number of ears (we allow Vulcans in this system).

getSexe

public Sexe getSexe()
Returns:
sexe (Sexe) Gender

setFirstName

public void setFirstName(java.lang.String firstName)
Parameters:
firstName - (String) First name of the person.

setLastName

public void setLastName(java.lang.String lastName)
Parameters:
lastName - (String) Last name of the person.

setAge

public void setAge(java.lang.Integer age)
Parameters:
age - (Integer) The age of this person in years

setNumberOfEars

public void setNumberOfEars(int numberOfEars)
Parameters:
numberOfEars - (int) Number of ears (we allow Vulcans in this system).

setSexe

public void setSexe(Sexe sexe)
Parameters:
sexe - (Sexe) Gender

activateValidation

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

Parameters:
value - (boolean)


Copyright © 2010. All Rights Reserved.