com.elasticpath.service.tax
Interface TaxCategoryService

All Superinterfaces:
EpPersistenceService, EpService
All Known Implementing Classes:
TaxCategoryServiceImpl

public interface TaxCategoryService
extends EpPersistenceService

Provide TaxCategory-related business service.


Method Summary
 TaxCategory add(TaxCategory taxCategory)
          Adds the given taxCategory.
 TaxCategory get(long taxCategoryUid)
          Get the taxCategory with the given UID.
 java.util.List getTaxCategoryInUseUidList()
          Get the list of uids of TaxCategory used to configure the existing TaxJurisdiction.
 java.util.List list()
          List all taxCategorys stored in the database.
 TaxCategory load(long taxCategoryUid)
          Load the taxCategory with the given UID.
 void remove(TaxCategory taxCategory)
          Delete the current taxCategory and all its direct/indirect children.
 void update(TaxCategory taxCategory)
          Updates the given taxCategory.
 
Methods inherited from interface com.elasticpath.service.EpPersistenceService
getObject, getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

add

TaxCategory add(TaxCategory taxCategory)
                throws EpServiceException
Adds the given taxCategory.

Parameters:
taxCategory - the taxCategory to add
Returns:
the persisted instance of taxCategory
Throws:
EpServiceException - - in case of any errors

get

TaxCategory get(long taxCategoryUid)
                throws EpServiceException
Get the taxCategory with the given UID. Return null if no matching record exists.

Parameters:
taxCategoryUid - the taxCategory UID
Returns:
the taxCategory if UID exists, otherwise null
Throws:
EpServiceException - - in case of any errors

getTaxCategoryInUseUidList

java.util.List getTaxCategoryInUseUidList()
Get the list of uids of TaxCategory used to configure the existing TaxJurisdiction.

Returns:
the list of uids of TaxCategorys in use.

list

java.util.List list()
                    throws EpServiceException
List all taxCategorys stored in the database.

Returns:
a list of taxCategorys
Throws:
EpServiceException - - in case of any errors

load

TaxCategory load(long taxCategoryUid)
                 throws EpServiceException
Load the taxCategory with the given UID. Throw an unrecoverable exception if there is no matching database row.

Parameters:
taxCategoryUid - the taxCategory UID
Returns:
the taxCategory if UID exists, otherwise null
Throws:
EpServiceException - - in case of any errors

remove

void remove(TaxCategory taxCategory)
            throws EpServiceException
Delete the current taxCategory and all its direct/indirect children.

Parameters:
taxCategory - the taxCategory to remove
Throws:
EpServiceException - - in case of any errors

update

void update(TaxCategory taxCategory)
            throws EpServiceException
Updates the given taxCategory.

Parameters:
taxCategory - the taxCategory to update
Throws:
EpServiceException - - in case of any errors