4段階目(BaseDataを作り、EmployeeDataに継承させよう)

This commit is contained in:
s-sakiyama
2026-09-16 13:31:36 +09:00
parent e8648e7d8b
commit 9c3605cf87
3 changed files with 26 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
public class EmployeeData {
public class EmployeeData extends BaseData {
private String idEmployee;
private String nmEmployee;
private String knEmployee;
@@ -112,4 +112,15 @@ public class EmployeeData {
return true;
}
@Override
public String toCSV() {
return getIdEmployee() + "," + getNmEmployee() + "," + getKnEmployee() + ","
+ getMailAddress() + "," + getPassword() + "," + getIdDepartment();
}
@Override
public String getPrimaryKeyValue() {
return this.idEmployee;
}
}