|
|||||||||
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.catalog.impl.BrandServiceImpl
public class BrandServiceImpl
This is the default implementation of BrandService
.
Constructor Summary | |
---|---|
BrandServiceImpl()
|
Method Summary | |
---|---|
Brand |
add(Brand brand)
Adds the given brand. |
boolean |
codeExists(Brand brand)
Check whether the given brand's code exists or not. |
boolean |
codeExists(java.lang.String code)
Checks whether the given brand code exists or not. |
Brand |
findByCode(java.lang.String code)
Find the brand with the given code. |
Brand |
get(long brandUid)
Get the brand with the given UID. |
java.util.List |
getBrandCodeNameList()
Return a list of brand code and default locale display name of all brands. |
java.util.List |
getBrandInUseList()
Return a list of all brands in use. |
java.util.List |
getBrandInUseUidList()
Return a list of uids for all brands in use. |
Brand |
getDummyBrand()
Retrieve the dummy brand. |
java.lang.Object |
getObject(long uid)
Generic get method for all persistable domain models. |
java.util.List |
list()
Lists all brand stored in the database. |
void |
remove(Brand brand)
Deletes the brand. |
void |
saveOrUpdate(Brand brand)
Save or update the given brand. |
void |
update(Brand brand)
Updates the given brand. |
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 BrandServiceImpl()
Method Detail |
---|
public Brand add(Brand brand) throws EpServiceException
add
in interface BrandService
brand
- the brand to add
EpServiceException
- - in case of any errorspublic boolean codeExists(Brand brand) throws EpServiceException
codeExists
in interface BrandService
brand
- the brand to check
EpServiceException
- - in case of any errorspublic boolean codeExists(java.lang.String code) throws EpServiceException
codeExists
in interface BrandService
code
- the brand code.
EpServiceException
- -
in case of any errorspublic Brand findByCode(java.lang.String code) throws EpServiceException
findByCode
in interface BrandService
code
- the brand code.
EpServiceException
- - in case of any errorspublic Brand get(long brandUid) throws EpServiceException
null
the given UID is bigger
than 0 and no matching record exists.
get
in interface BrandService
brandUid
- the Brand UID.
null
EpServiceException
- - in case of any errorspublic java.util.List getBrandCodeNameList()
getBrandCodeNameList
in interface BrandService
public java.util.List getBrandInUseList()
getBrandInUseList
in interface BrandService
public java.util.List getBrandInUseUidList()
getBrandInUseUidList
in interface BrandService
public Brand getDummyBrand() throws EpServiceException
EpServiceException
- in case of any errorpublic 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 list() throws EpServiceException
list
in interface BrandService
EpServiceException
- -
in case of any errorspublic void remove(Brand brand) throws EpServiceException
remove
in interface BrandService
brand
- the brand to remove
EpServiceException
- in case of any errorspublic void saveOrUpdate(Brand brand) throws EpServiceException
saveOrUpdate
in interface BrandService
brand
- the brand to save or update
EpServiceException
- - in case of any errorspublic void update(Brand brand) throws EpServiceException
update
in interface BrandService
brand
- the brand to update
EpServiceException
- - in case of any errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |