Java Reference
In-Depth Information
The service will contain four basic operations:
1. The getEmployee method, which returns an employee of a given employee
number. If not found, an exception is thrown;
2. The createEmployee method, which returns an employee number if created
successfully. If failed, the method returns -1;
3. The updateEmployee method, which returns a Boolean value of true if suc-
cessful, otherwise false; and
4. The deleteEmployee method, which returns a Boolean value of true if suc-
cessful, otherwise false.
5.3.4.2 EmployeeData.java
This class is a wrapper class of the EmployeeDao.java class that we have seen earlier. It
implements the WS interface EmployeeDataIf.
Search WWH ::




Custom Search