public class DefaultTaxService extends AbstractBusinessService implements TaxService
TaxService.AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultTaxService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied.
|
java.util.Collection<TaxModel> |
getTaxesForCode(java.lang.String matchedCode)
Gets all
TaxModels which match the specified code. |
TaxModel |
getTaxForCode(java.lang.String code)
Gets the
TaxModel with the specified unique TaxModel.CODE. |
java.util.List<TaxInformation> |
getTaxInformation(BaseCriteria baseCriteria)
Get taxes information
TaxInformation for given criteria. |
void |
setApplicationContext(ApplicationContext ctx) |
void |
setFindTaxValuesStrategy(FindTaxValuesStrategy findTaxValuesStrategy) |
void |
setTaxDao(TaxDao taxDao) |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagergetCurrentTenant, setBeanName, setCurrentTenant, writeReplacepublic TaxModel getTaxForCode(java.lang.String code)
TaxServiceTaxModel with the specified unique TaxModel.CODE.getTaxForCode in interface TaxServicecode - the tax codeTaxModel with the specified codepublic java.util.Collection<TaxModel> getTaxesForCode(java.lang.String matchedCode)
TaxServiceTaxModels which match the specified code.getTaxesForCode in interface TaxServicematchedCode - an SQL-Like statement as String, such as %taxCode%Collection of all TaxModels which match the specified codepublic java.util.List<TaxInformation> getTaxInformation(BaseCriteria baseCriteria) throws CalculationException
TaxServiceTaxInformation for given criteria.getTaxInformation in interface TaxServicebaseCriteria - BaseCriteriaList of all TaxInformations which matching baseCriteria. If no matching discounts
were found, an empty collection is returned.CalculationException - if error occurredpublic void setTaxDao(TaxDao taxDao)
public void setApplicationContext(ApplicationContext ctx)
public void setFindTaxValuesStrategy(FindTaxValuesStrategy findTaxValuesStrategy)
public void afterPropertiesSet()
throws java.lang.Exception
AbstractServicesuper.afterPropertiesSet() before or the java serialization won't work.afterPropertiesSet in class AbstractServicejava.lang.ExceptionInitializingBean#afterPropertiesSet()Copyright © 2018 SAP SE. All Rights Reserved.