FileDocCategorySizeDatePackage
EmployeeBean.javaAPI DocExample3220Tue Feb 28 11:34:06 GMT 2006com.ora.jsp.beans.emp

EmployeeBean

public class EmployeeBean extends Object implements Serializable
This class contains information about an employee.
author
Hans Bergsten, Gefion software
version
2.0

Fields Summary
private String
dept
private Date
empDate
private String
emailAddr
private String
firstName
private String
lastName
private List
projects
private String
password
private String
userName
Constructors Summary
Methods Summary
public java.lang.StringgetDept()
Returns the dept property value.

        return dept;
    
public java.lang.StringgetEmailAddr()
Returns the emailAddr property value.

        return emailAddr;
    
public java.util.DategetEmpDate()
Returns the empDate property value.

        return empDate;
    
public java.lang.StringgetFirstName()
Returns the firstName property value.

        return firstName;
    
public java.lang.StringgetLastName()
Returns the lastName property value.

        return lastName;
    
public java.lang.StringgetPassword()
Returns the password property value.

        return password;
    
public java.lang.String[]getProjects()
Returns the projects property value.

        if (projects == null) {
            return new String[0];
        }
        return (String[]) projects.toArray(new String[projects.size()]);
    
public java.lang.StringgetUserName()
Returns the userName property value.

        return userName;
    
public voidsetDept(java.lang.String dept)
Sets the dept property value.

        this.dept = dept;
    
public voidsetEmailAddr(java.lang.String emailAddr)
Sets the emailAddr property value.

        this.emailAddr = emailAddr;
    
public voidsetEmpDate(java.util.Date empDate)
Sets the empDate property value.

        this.empDate = empDate;
    
public voidsetFirstName(java.lang.String firstName)
Sets the firstName property value.

        this.firstName = firstName;
    
public voidsetLastName(java.lang.String lastName)
Sets the lastName property value.

        this.lastName = lastName;
    
public voidsetPassword(java.lang.String password)
Sets the password property value.

        this.password = password;
    
public voidsetProject(java.lang.String project)

	if (projects == null) {
	    projects = new ArrayList();
	}
	projects.add(project);
    
public voidsetProjects(java.lang.String[] projects)
Sets the projects property value.

	if (projects == null) {
	    this.projects = null;
	}
	else {
	    this.projects = Arrays.asList(projects);
	}
    
public voidsetUserName(java.lang.String userName)
Sets the userName property value.

        this.userName = userName;