MarketingResponseDTO.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package durbodax.dtos;
import durbodax.customers.Enums.*;
/**
*
* @author Gary Data Transfer Object for Marketing
*/
public class MarketingResponseDTO {
private int id;
private int count;
private int income;
private String incomeDesc;
private int age;
private String ageDesc;
private int maritalStatus;
private String birthPlace;
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(int id) {
this.id = id;
}
/**
* @return the count
*/
public int getCount() {
return count;
}
/**
* @param count the count to set
*/
public void setCount(int count) {
this.count = count;
}
/**
* @return the income
*/
public int getIncome() {
return income;
}
/**
* @param income the income to set
*/
public void setIncome(int income) {
this.income = income;
}
/**
* @return the incomeDesc
*/
public String getIncomeDesc() {
return incomeDesc;
}
/**
* @param incomeDesc the incomeDesc to set
*/
public void setIncomeDesc(String incomeDesc) {
this.incomeDesc = incomeDesc;
}
/**
* @return the age
*/
public int getAge() {
return age;
}
/**
* @param age the age to set
*/
public void setAge(int age) {
this.age = age;
}
/**
* @return the ageDesc
*/
public String getAgeDesc() {
return ageDesc;
}
/**
* @param ageDesc the ageDesc to set
*/
public void setAgeDesc(String ageDesc) {
this.ageDesc = ageDesc;
}
/**
* @return the meritalStatus
*/
public int getMaritalStatus() {
return maritalStatus;
}
public MaritalStatus getMaritalStatusEnum() {
return MaritalStatus.getStatus(maritalStatus);
}
/**
* @param m the meritalStatus to set
*/
public void setMaritalStatus(int maritalStatus) {
this.maritalStatus = maritalStatus;
}
public void setMaritalStatus(MaritalStatus maritalStatus) {
this.maritalStatus = maritalStatus.getCode();
}
/**
* @return the birthPlace
*/
public String getBirthPlace() {
return birthPlace;
}
/**
* @param birthPlace the birthPlace to set
*/
public void setBirthPlace(String birthPlace) {
this.birthPlace = birthPlace;
}
}