public class DefaultDiscountService extends AbstractBusinessService implements DiscountService
DiscountService.AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultDiscountService() |
| Modifier and Type | Method and Description |
|---|---|
DiscountModel |
getDiscountForCode(java.lang.String code)
Gets the
DiscountModel with the specified code. |
java.util.Collection<DiscountModel> |
getDiscountsForCode(java.lang.String matchedCode)
Gets all
DiscountModels which match the specified code. |
java.util.Collection<DiscountModel> |
getDiscountsForCurrency(CurrencyModel currency)
Gets all
DiscountModels which match the specified currency. |
void |
setDiscountDao(DiscountDao discountDao) |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic DiscountModel getDiscountForCode(java.lang.String code)
DiscountServiceDiscountModel with the specified code.getDiscountForCode in interface DiscountServicecode - the discount codeDiscountModel with the specified codepublic java.util.Collection<DiscountModel> getDiscountsForCode(java.lang.String matchedCode)
DiscountServiceDiscountModels which match the specified code.getDiscountsForCode in interface DiscountServicematchedCode - an SQL-Like statement as String, such as %discountCode%Collection of all DiscountModels which match the specified codepublic java.util.Collection<DiscountModel> getDiscountsForCurrency(CurrencyModel currency)
DiscountServiceDiscountModels which match the specified currency.getDiscountsForCurrency in interface DiscountServicecurrency - target CurrencyModelCollection of all DiscountModels which matching currency. If no matching
discounts were found, an empty collection is returned.public void setDiscountDao(DiscountDao discountDao)
Copyright © 2018 SAP SE. All Rights Reserved.