blob: e9bbdfb6621c7a6effa3fcb6209047f7ffe4a7fd [file] [log] [blame]
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jdo.pc.xempdept;
import java.util.HashSet;
import java.util.Date;
public class PartTimeEmployee
extends Employee
{
private double wage;
public String toString()
{
StringBuffer repr = new StringBuffer();
addFieldRepr(repr);
return "PartTimeEmployee(" + repr.toString() + ")";
}
public PartTimeEmployee() {}
public PartTimeEmployee(long empid,
String lastname,
String firstname,
Date hiredate,
Date birthdate,
double weeklyhours,
char discriminator,
HashSet reviewedProjects,
HashSet projects,
Insurance insurance,
Department department,
Employee manager,
HashSet team,
Employee mentor,
Employee protege,
Employee hradvisor,
HashSet hradvisees,
double wage)
{
super(empid, lastname, firstname, hiredate, birthdate, weeklyhours,
discriminator, reviewedProjects, projects, insurance, department,
manager, team, mentor, protege, hradvisor, hradvisees);
this.wage = wage;
}
public double getWage()
{
return wage;
}
public void setWage(double wage)
{
this.wage = wage;
}
protected void addFieldRepr(StringBuffer repr)
{
super.addFieldRepr(repr);
repr.append(", wage="); repr.append(wage);
}
}