| java.lang.Object projectmanagement.business.timewage.PayRateManagerImpl
PayRateManagerImpl | public class PayRateManagerImpl implements PayRateManager(Code) | | Used to find the instance of PayRate.
author: Sasa Bojanic version: 1.0 |
Method Summary | |
public PayRate | findPayRateByEmployeeProjectAndDate(String employeeID, String projectID, Date workingDate) The findPayRateByEmployeeProjectAndDate method performs a database query to
return a PayRate object
representing the row in the pay rate table
that matches the employee id, project id and has the closest lower or equal
date to the given one.
Parameters: employeeID - the employee id Parameters: projectID - the project id Parameters: workingDate - the date that [employee,project] pair record has tobe closest to (lower or equal)the pay rate. | public PayRate | findPayRateByID(String id) The findPayRateByID method performs a database query to
return a PayRate object
representing the row in the pay rate table
that matches the object id.
id, the object id of the pay rate table.the pay rate. | public PayRate[] | getAllPayRates() The getAllPayRates method performs a database query to
return all PayRate objects representing the
row in the PayRates table. | public PayRate[] | getAllPayRatesForEmployee(String employeeID, boolean distinctOnEmployProjectPair) The getAllPayRatesForEmployee method performs a database query to
return all PayRate objects representing the
row in the PayRates table that belongs to the
employee with given ID. | public PayRate[] | getAllPayRatesForEmployeeProjectPair(String employeeID, String projectID) The getAllPayRatesForEmployeeProjectPair method performs a database
query to return all PayRate objects representing the
row in the PayRates table that belongs to the
employee with given ID, and project with a given ID. | public PayRate | getPayRate() |
findPayRateByEmployeeProjectAndDate | public PayRate findPayRateByEmployeeProjectAndDate(String employeeID, String projectID, Date workingDate) throws ProjectManagementBusinessException(Code) | | The findPayRateByEmployeeProjectAndDate method performs a database query to
return a PayRate object
representing the row in the pay rate table
that matches the employee id, project id and has the closest lower or equal
date to the given one.
Parameters: employeeID - the employee id Parameters: projectID - the project id Parameters: workingDate - the date that [employee,project] pair record has tobe closest to (lower or equal)the pay rate. null if there isn't a pay rate associatedthe id exception: ProjectManagementBusinessException - if there is a problem retrieving pay rate information. |
findPayRateByID | public PayRate findPayRateByID(String id) throws ProjectManagementBusinessException(Code) | | The findPayRateByID method performs a database query to
return a PayRate object
representing the row in the pay rate table
that matches the object id.
id, the object id of the pay rate table.the pay rate. null if there isn't a pay rate associatedthe id exception: ProjectManagementBusinessException - if there is a problem retrieving pay rate information. |
getAllPayRatesForEmployee | public PayRate[] getAllPayRatesForEmployee(String employeeID, boolean distinctOnEmployProjectPair) throws ProjectManagementBusinessException(Code) | | The getAllPayRatesForEmployee method performs a database query to
return all PayRate objects representing the
row in the PayRates table that belongs to the
employee with given ID.
Parameters: employeeID - the employee id Parameters: distinctOnEmployProjectPair - if true returns only one payratefor [employee,project] pair all the pay rates for given employee (it could be distinct onpoject parameter, or not) exception: ProjectManagementBusinessException - if there is a problem retrieving pay rate information. |
getAllPayRatesForEmployeeProjectPair | public PayRate[] getAllPayRatesForEmployeeProjectPair(String employeeID, String projectID) throws ProjectManagementBusinessException(Code) | | The getAllPayRatesForEmployeeProjectPair method performs a database
query to return all PayRate objects representing the
row in the PayRates table that belongs to the
employee with given ID, and project with a given ID.
Parameters: employeeID - the employee id Parameters: projectID - the project id all the pay rates for given employee-project pair exception: ProjectManagementBusinessException - if there is a problem retrieving pay rate information. |
|
|