@Service @Transactional(readOnly=true) public class PenaltyRatesService extends Object
| Constructor and Description |
|---|
PenaltyRatesService(PenaltyRatesRepository penaltyRatesRepository,
LicenseAppTypeRepository licenseAppTypeRepository) |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
calculatePenalty(Date commencementDate,
Date penaltyCalculationEndDate,
BigDecimal amount,
License license) |
List<PenaltyRates> |
create(List<PenaltyRates> penaltyRates) |
void |
delete(PenaltyRates penaltyRates) |
List<LicenseAppType> |
findAllLicenseAppType() |
PenaltyRates |
findByDaysAndLicenseAppType(Long days,
LicenseAppType licenseAppType) |
LicenseAppType |
findByLicenseAppType(Long licenseAppId) |
PenaltyRates |
findOne(Long id) |
List<PenaltyRates> |
search(Long licenseAppType) |
@Autowired public PenaltyRatesService(PenaltyRatesRepository penaltyRatesRepository, LicenseAppTypeRepository licenseAppTypeRepository)
public PenaltyRates findByDaysAndLicenseAppType(Long days, LicenseAppType licenseAppType)
public List<LicenseAppType> findAllLicenseAppType()
public PenaltyRates findOne(Long id)
public LicenseAppType findByLicenseAppType(Long licenseAppId)
@Transactional public List<PenaltyRates> create(List<PenaltyRates> penaltyRates)
public List<PenaltyRates> search(Long licenseAppType)
@Transactional public void delete(PenaltyRates penaltyRates)
public BigDecimal calculatePenalty(Date commencementDate, Date penaltyCalculationEndDate, BigDecimal amount, License license)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.