4段階目(BaseDataを作り、EmployeeDataに継承させよう)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user