Interface TrainingStipendRateService
-
public interface TrainingStipendRateService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TrainingStipendRateContractfindClosestMatchTrainingStipendRate(Date effectiveDate, String careerLevel, int experienceLevel)This method finds the closest matchingTrainingStipendRateContractbased on the following rules.
-
-
-
Method Detail
-
findClosestMatchTrainingStipendRate
TrainingStipendRateContract findClosestMatchTrainingStipendRate(Date effectiveDate, String careerLevel, int experienceLevel)
This method finds the closest matchingTrainingStipendRateContractbased on the following rules. The Training Stipend Rate's effective date must be less than or equal to the passed in effective date. The Training Stipend Rate's career level must be equal to the passed in career level. The Training Stipend Rate's experience level must be equal to the passed in experience level. If at the end of this match, multiple Training Stipend Rates match then the one with the latest effective date is returned. This is considered the "closest match". Note: that this method only considers the date portion of aDatefor effective date comparisons. Also note that a TrainingStipendRate without an effective date will never be considered a match.- Parameters:
effectiveDate- the effective date of the training stipend rate must be less than or equal to. Cannot be null.careerLevel- the career level of the training stipend rate. Cannot be blank.experienceLevel- the experience level of the training stipend rate- Returns:
- the closest matching
TrainingStipendRateContractor null if there is no match - Throws:
IllegalArgumentException- if the effectiveDate is null, if the careerLevel is blank
-
-