FileDocCategorySizeDatePackage
Employee.javaAPI DocExample1673Sat Aug 07 13:58:32 BST 2004com.oreilly.strutsckbk.ch05

Employee

public class Employee extends Object

Fields Summary
private String
employeeId
private String
firstName
private String
lastName
private Date
hireDate
private boolean
married
private BigDecimal
salary
private DateFormat
dateFormatter
Constructors Summary
Methods Summary
public java.lang.StringgetEmployeeId()

		return employeeId;
	
public java.lang.StringgetFirstName()

		return firstName;
	
public java.util.DategetHireDate()

		return hireDate;
	
public java.lang.StringgetHireDateDisplay()

		if (hireDate == null)
			return "";
		else 
			return dateFormatter.format(hireDate);
	
public java.lang.StringgetLastName()

		return lastName;
	
public java.math.BigDecimalgetSalary()

		return salary;
	
public booleanisMarried()

		return married;
	
public voidsetEmployeeId(java.lang.String employeeId)

		this.employeeId = employeeId;
	
public voidsetFirstName(java.lang.String firstName)

		this.firstName = firstName;
	
public voidsetHireDate(java.util.Date HireDate)

		this.hireDate = HireDate;
	
public voidsetHireDateDisplay(java.lang.String hireDateDisplay)

		if (hireDateDisplay == null) 
			hireDate = null;
		else {
			try {
				hireDate = dateFormatter.parse(hireDateDisplay);
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
	
public voidsetLastName(java.lang.String lastName)

		this.lastName = lastName;
	
public voidsetMarried(boolean married)

		this.married = married;
	
public voidsetSalary(java.math.BigDecimal salary)

		this.salary = salary;