Class DefaultTaxService

  • All Implemented Interfaces:
    TaxService, java.io.Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class DefaultTaxService
    extends AbstractBusinessService
    implements TaxService, org.springframework.context.ApplicationContextAware
    Default implementation of the TaxService.
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultTaxService

        public DefaultTaxService()
    • Method Detail

      • getTaxesForCode

        public java.util.Collection<TaxModel> getTaxesForCode​(java.lang.String matchedCode)
        Description copied from interface: TaxService
        Gets all TaxModels which match the specified code.
        Specified by:
        getTaxesForCode in interface TaxService
        Parameters:
        matchedCode - an SQL-Like statement as String, such as %taxCode%
        Returns:
        the Collection of all TaxModels which match the specified code
      • setTaxDao

        public void setTaxDao​(TaxDao taxDao)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext ctx)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • setFindTaxValuesStrategy

        public void setFindTaxValuesStrategy​(FindTaxValuesStrategy findTaxValuesStrategy)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Description copied from class: AbstractService
        Invoked by a BeanFactory after it has set all bean properties supplied. Overwrite this method for adding/implementing additional code into the service. Important note: Please call always super.afterPropertiesSet() before or the java serialization won't work.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class AbstractService
        Throws:
        java.lang.Exception
        See Also:
        InitializingBean.afterPropertiesSet()