package ch.sahits;
import java.sql.Date;
/**
* This class represents the database table
* USER.
*/
public class Foo {
/** <code>name</code> holds the value of the field NAME */
private String name;
/** <code>surname</code> holds the value of the field SURNAME */
private String surname;
/** <code>email</code> holds the value of the field EMAIL */
private String email;
/** <code>birthDate</code> holds the value of the field BIRTH_DATE */
private Date birthDate;
/**
* Retrieve the value of the field NAME.
* @return the value of the field
*/
public String getName(){
return name;
}
/**
* Set the value of the field NAME.
* @param name value to be set for NAME
*/
public void setName(String name){
this.name = name;
}
/**
* Retrieve the value of the field SURNAME.
* @return the value of the field
*/
public String getSurname(){
return surname;
}
/**
* Set the value of the field SURNAME.
* @param surname value to be set for SURNAME
*/
public void setSurname(String surname){
this.surname = surname;
}
/**
* Retrieve the value of the field EMAIL.
* @return the value of the field
*/
public String getEmail(){
return email;
}
/**
* Set the value of the field EMAIL.
* @param email value to be set for EMAIL
*/
public void setEmail(String email){
this.email = email;
}
/**
* Retrieve the value of the field BIRTH_DATE.
* @return the value of the field
*/
public Date getBirthDate(){
return birthDate;
}
/**
* Set the value of the field BIRTH_DATE.
* @param birthDate value to be set for BIRTH_DATE
*/
public void setBirthDate(Date birthDate){
this.birthDate = birthDate;
}
public Foo(String email) {
init(email);
}
private void init(String email) {
setEmail(email);
}
}