FileDocCategorySizeDatePackage
EmployeeDao.javaAPI DocApache Struts 2.0.9 Apps2129Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.dao

EmployeeDao

public class EmployeeDao extends AbstractDao
EmployeeDao.

Fields Summary
private static final long
serialVersionUID
protected SkillDao
skillDao
Constructors Summary
Methods Summary
public org.apache.struts2.showcase.model.EmployeegetEmployee(java.lang.Long id)

        return (Employee) get(id);
    
public java.lang.ClassgetFeaturedClass()

        return Employee.class;
    
public voidsetSkillDao(SkillDao skillDao)


        
        this.skillDao = skillDao;
    
public org.apache.struts2.showcase.model.EmployeesetSkills(org.apache.struts2.showcase.model.Employee employee, java.util.List skillNames)

        if (employee!= null && skillNames != null) {
            employee.setOtherSkills(new ArrayList());
            for (int i = 0, j = skillNames.size(); i < j; i++) {
                Skill skill = (Skill) skillDao.get((String) skillNames.get(i));
                employee.getOtherSkills().add(skill);
            }
        }
        return employee;
    
public org.apache.struts2.showcase.model.EmployeesetSkills(java.lang.Long empId, java.util.List skillNames)

        return setSkills((Employee) get(empId), skillNames);