Package com.cin.dto

Source Code of com.cin.dto.EmploymentStatusDTO

/**
*
*/
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;
}
}
TOP

Related Classes of com.cin.dto.EmploymentStatusDTO

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.