|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
com.elasticpath.service.tax.impl.TaxCodeServiceImpl
public class TaxCodeServiceImpl
The default implementation of the TaxCodeService.
| Constructor Summary | |
|---|---|
TaxCodeServiceImpl()
|
|
| Method Summary | |
|---|---|
TaxCode |
add(TaxCode taxCode)
Adds the given taxCode. |
TaxCode |
get(long taxCodeUid)
Get the taxCode with the given UID. |
java.lang.Object |
getObject(long uid)
Generic load method for all persistable domain models. |
java.util.List |
getTaxCodesInUse()
Get the list of tax code (String) in use (being used to define tax value associated with a TaxJurisdiction). |
java.util.List |
list()
List all taxCodes stored in the database. |
TaxCode |
load(long taxCodeUid)
Load the taxCode with the given UID. |
void |
remove(TaxCode taxCode)
Delete the taxCode. |
boolean |
taxCodeExists(java.lang.String code)
Checks the given taxCode exists or not. |
void |
update(TaxCode taxCode)
Updates the given taxCode. |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
|---|
getPersistenceEngine, setPersistenceEngine |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.service.EpPersistenceService |
|---|
getPersistenceEngine, setPersistenceEngine |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Constructor Detail |
|---|
public TaxCodeServiceImpl()
| Method Detail |
|---|
public TaxCode add(TaxCode taxCode)
throws TaxCodeExistException
add in interface TaxCodeServicetaxCode - the taxCode to add
TaxCodeExistException - - if the specified tax code already exists.
public TaxCode get(long taxCodeUid)
throws EpServiceException
get in interface TaxCodeServicetaxCodeUid - the taxCode UID
EpServiceException - - in case of any errors
public java.lang.Object getObject(long uid)
throws EpServiceException
getObject in interface EpPersistenceServiceuid - the persisted instance uid
EpServiceException - - in case of any errors
public java.util.List getTaxCodesInUse()
throws EpServiceException
TaxJurisdiction).
getTaxCodesInUse in interface TaxCodeServiceTaxCodes in use.
EpServiceException - - in case of any errors
public java.util.List list()
throws EpServiceException
list in interface TaxCodeServiceEpServiceException - - in case of any errors
public TaxCode load(long taxCodeUid)
throws EpServiceException
load in interface TaxCodeServicetaxCodeUid - the taxCode UID
EpServiceException - - in case of any errors
public void remove(TaxCode taxCode)
throws EpServiceException
remove in interface TaxCodeServicetaxCode - the taxCode to remove
EpServiceException - - in case of any errors
public boolean taxCodeExists(java.lang.String code)
throws EpServiceException
taxCodeExists in interface TaxCodeServicecode - the taxCode
EpServiceException - - in case of any errors
public void update(TaxCode taxCode)
throws EpServiceException
update in interface TaxCodeServicetaxCode - the taxCode to update
EpServiceException - - in case of any errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||