|
|||||||||
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.catalog.impl.SkuOptionServiceImpl
public class SkuOptionServiceImpl
Default implementation for SkuOptionService
.
Constructor Summary | |
---|---|
SkuOptionServiceImpl()
|
Method Summary | |
---|---|
SkuOption |
add(SkuOption skuOption)
Adds the given sku option. |
SkuOption |
addOptionValue(SkuOptionValue skuOptionValue,
SkuOption skuOption)
Add the sku option value. |
SkuOption |
findByKey(java.lang.String key)
Find the sku option with the given key. |
long |
findOptionValueUidPkByKey(java.lang.String key)
Find the sku option value with the given key. |
long |
findUidPkByKey(java.lang.String key)
Find the sku option with the given key. |
SkuOption |
get(long skuOptionUid)
Get the sku option with the given UID. |
java.lang.Object |
getObject(long uid)
Generic load method for all persistable domain models. |
java.util.List |
getSkuOptionInUseUidList()
Return a list of uids for all sku options in use. |
java.util.List |
getSkuOptionValueInUseUidList()
Return a list of uids for all sku options value in use. |
boolean |
keyExists(SkuOption skuOption)
Check whether the given sku option's key exists or not. |
boolean |
keyExists(java.lang.String key)
Checks whether the given sku option key exists or not. |
java.util.List |
list()
Lists all sku option stored in the database. |
SkuOption |
load(long skuOptionUid)
Load the sku option with the given UID. |
void |
remove(SkuOption skuOption)
Delete the sku option. |
SkuOption |
removeOptionValue(SkuOptionValue skuOptionValue,
SkuOption skuOption)
Delete the sku option value. |
void |
saveOrUpdate(SkuOption skuOption)
Save or update the given skuOption. |
SkuOption |
update(SkuOption skuOption)
Updates the given sku option. |
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 SkuOptionServiceImpl()
Method Detail |
---|
public SkuOption add(SkuOption skuOption) throws SkuOptionKeyExistException
add
in interface SkuOptionService
skuOption
- the sku option to add
SkuOptionKeyExistException
- - if the sepcified skuOptionKey is already in use.public SkuOption addOptionValue(SkuOptionValue skuOptionValue, SkuOption skuOption) throws SkuOptionKeyExistException
addOptionValue
in interface SkuOptionService
skuOptionValue
- the sku option value to addskuOption
- the sku option to update
SkuOption
SkuOptionKeyExistException
- - if the sepcified skuOptionKey is already in use.public SkuOption findByKey(java.lang.String key) throws EpServiceException
findByKey
in interface SkuOptionService
key
- the sku option key.
EpServiceException
- - in case of any errorspublic long findOptionValueUidPkByKey(java.lang.String key) throws EpServiceException
key
- the sku option value key.
EpServiceException
- - in case of any errorspublic long findUidPkByKey(java.lang.String key) throws EpServiceException
findUidPkByKey
in interface SkuOptionService
key
- the sku option key.
EpServiceException
- - in case of any errorspublic SkuOption get(long skuOptionUid) throws EpServiceException
get
in interface SkuOptionService
skuOptionUid
- the sku option 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 getSkuOptionInUseUidList()
getSkuOptionInUseUidList
in interface SkuOptionService
public java.util.List getSkuOptionValueInUseUidList()
getSkuOptionValueInUseUidList
in interface SkuOptionService
public boolean keyExists(SkuOption skuOption) throws EpServiceException
keyExists
in interface SkuOptionService
skuOption
- the sku option to check
EpServiceException
- - in case of any errorspublic boolean keyExists(java.lang.String key) throws EpServiceException
keyExists
in interface SkuOptionService
key
- the sku option key.
EpServiceException
- -
in case of any errorspublic java.util.List list() throws EpServiceException
list
in interface SkuOptionService
EpServiceException
- -
in case of any errorspublic SkuOption load(long skuOptionUid) throws EpServiceException
load
in interface SkuOptionService
skuOptionUid
- the sku option UID
EpServiceException
- - in case of any errorspublic void remove(SkuOption skuOption) throws EpServiceException
remove
in interface SkuOptionService
skuOption
- the sku option to remove
EpServiceException
- - in case of any errorspublic SkuOption removeOptionValue(SkuOptionValue skuOptionValue, SkuOption skuOption) throws EpServiceException
removeOptionValue
in interface SkuOptionService
skuOptionValue
- the sku option value to removeskuOption
- the sku option to update
SkuOption
EpServiceException
- - in case of any errorspublic void saveOrUpdate(SkuOption skuOption) throws EpServiceException
saveOrUpdate
in interface SkuOptionService
skuOption
- the brand to save or update
EpServiceException
- - in case of any errorspublic SkuOption update(SkuOption skuOption) throws SkuOptionKeyExistException
update
in interface SkuOptionService
skuOption
- the sku option to update
SkuOption
SkuOptionKeyExistException
- - if the sepcified skuOptionKey is already in use.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |