|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 TaxCodeService
taxCode
- the taxCode to add
TaxCodeExistException
- - if the specified tax code already exists.public TaxCode get(long taxCodeUid) throws EpServiceException
get
in interface TaxCodeService
taxCodeUid
- the taxCode UID
EpServiceException
- - in case of any errorspublic java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- - in case of any errorspublic java.util.List getTaxCodesInUse() throws EpServiceException
TaxJurisdiction
).
getTaxCodesInUse
in interface TaxCodeService
TaxCode
s in use.
EpServiceException
- - in case of any errorspublic java.util.List list() throws EpServiceException
list
in interface TaxCodeService
EpServiceException
- - in case of any errorspublic TaxCode load(long taxCodeUid) throws EpServiceException
load
in interface TaxCodeService
taxCodeUid
- the taxCode UID
EpServiceException
- - in case of any errorspublic void remove(TaxCode taxCode) throws EpServiceException
remove
in interface TaxCodeService
taxCode
- the taxCode to remove
EpServiceException
- - in case of any errorspublic boolean taxCodeExists(java.lang.String code) throws EpServiceException
taxCodeExists
in interface TaxCodeService
code
- the taxCode
EpServiceException
- - in case of any errorspublic void update(TaxCode taxCode) throws EpServiceException
update
in interface TaxCodeService
taxCode
- 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 |