/**
*
*/
package com.cin.dto;
import java.io.Serializable;
import com.cin.entity.Employmentstat;
/**
* @author arunsanjay
*
*/
public class EmploymentStatusDTO implements Serializable {
private static final long serialVersionUID = 1L;
private String unemploymentReason;
private String employmentStatus;
public EmploymentStatusDTO() {
}
public EmploymentStatusDTO(Employmentstat pEntity) {
setEmploymentStatus( pEntity.getEmploymentstat() );
setUnemploymentReason( pEntity.getUnemploymentreason() );
}
/**
* @return the unemploymentReason
*/
public String getUnemploymentReason() {
return unemploymentReason;
}
/**
* @param unemploymentReason the unemploymentReason to set
*/
public void setUnemploymentReason(String unemploymentReason) {
if( unemploymentReason == null ){
this.unemploymentReason = null;
} else {
this.unemploymentReason = unemploymentReason.trim();
}
}
/**
* @return the employmentStatus
*/
public String getEmploymentStatus() {
return employmentStatus;
}
/**
* @param employmentStatus the employmentStatus to set
*/
public void setEmploymentStatus(String employmentStatus) {
if( employmentStatus == null ){
this.employmentStatus = null;
} else {
this.employmentStatus = employmentStatus.trim();
}
}
public Employmentstat toEJB(int ssn){
Employmentstat ejb = new Employmentstat();
ejb.setEmploymentstat(employmentStatus);
ejb.setSsn(ssn);
ejb.setUnemploymentreason(unemploymentReason);
return ejb;
}
}