|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SkuOptionService
Provide sku option related business service.
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 |
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.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 interface com.elasticpath.service.EpPersistenceService |
---|
getObject, getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
SkuOption add(SkuOption skuOption) throws SkuOptionKeyExistException
skuOption
- the sku option to add
SkuOptionKeyExistException
- - if the sepcified skuOptionKey is already in use.SkuOption addOptionValue(SkuOptionValue skuOptionValue, SkuOption skuOption) throws SkuOptionKeyExistException
skuOptionValue
- the sku option value to addskuOption
- the sku option to update
SkuOption
SkuOptionKeyExistException
- - if the sepcified skuOptionKey is already in use.SkuOption findByKey(java.lang.String key) throws EpServiceException
key
- the sku option key.
EpServiceException
- - in case of any errorslong findUidPkByKey(java.lang.String key) throws EpServiceException
key
- the sku option key.
EpServiceException
- - in case of any errorsSkuOption get(long skuOptionUid) throws EpServiceException
skuOptionUid
- the sku option UID
EpServiceException
- - in case of any errorsjava.util.List getSkuOptionInUseUidList()
java.util.List getSkuOptionValueInUseUidList()
boolean keyExists(SkuOption skuOption) throws EpServiceException
skuOption
- the sku option to check
EpServiceException
- - in case of any errorsboolean keyExists(java.lang.String key) throws EpServiceException
key
- the sku option key.
EpServiceException
- -
in case of any errorsjava.util.List list() throws EpServiceException
EpServiceException
- -
in case of any errorsSkuOption load(long skuOptionUid) throws EpServiceException
skuOptionUid
- the sku option UID
EpServiceException
- - in case of any errorsvoid remove(SkuOption skuOption) throws EpServiceException
skuOption
- the sku option to remove
EpServiceException
- - in case of any errorsSkuOption removeOptionValue(SkuOptionValue skuOptionValue, SkuOption skuOption) throws EpServiceException
skuOptionValue
- the sku option value to removeskuOption
- the sku option to update
SkuOption
EpServiceException
- - in case of any errorsvoid saveOrUpdate(SkuOption skuOption) throws EpServiceException
skuOption
- the brand to save or update
EpServiceException
- - in case of any errorsSkuOption update(SkuOption skuOption) throws SkuOptionKeyExistException
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 |