|
|||||||||
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.ProductTypeServiceImpl
public class ProductTypeServiceImpl
Default implementation for AttributeService
.
Constructor Summary | |
---|---|
ProductTypeServiceImpl()
|
Method Summary | |
---|---|
ProductType |
add(ProductType productType)
Adds the given attribute. |
ProductType |
get(long uid)
Get the productType with the given UID. |
java.lang.Object |
getObject(long uid)
Generic load method for all persistable domain models. |
ProductType |
initialize(ProductType productType)
Initialize (fill in) category attributes for the given ProductType . |
java.util.List |
list()
Lists all ProductType stored in the database. |
java.util.List |
listUsedUids()
Lists all productType uids used by categories. |
void |
remove(ProductType productType)
Delete the ProductType. |
void |
update(ProductType productType)
Updates the given ProductType. |
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 ProductTypeServiceImpl()
Method Detail |
---|
public ProductType add(ProductType productType) throws DuplicateKeyException
add
in interface ProductTypeService
productType
- the attribute to add
DuplicateKeyException
- - if a productType with the speicifed key already exists.public ProductType get(long uid) throws EpServiceException
uid
- the ProductType 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 ProductType initialize(ProductType productType)
ProductType
. DWR outbound conversion will fail on lazy load errors if
the attributes themselves are not loaded also.
initialize
in interface ProductTypeService
productType
- productType that needs attributes filled in.
public java.util.List list() throws EpServiceException
list
in interface ProductTypeService
EpServiceException
- - in case of any errorspublic java.util.List listUsedUids()
listUsedUids
in interface ProductTypeService
public void remove(ProductType productType) throws EpServiceException
remove
in interface ProductTypeService
productType
- the ProductType to remove
EpServiceException
- - in case of any errorspublic void update(ProductType productType) throws DuplicateKeyException
update
in interface ProductTypeService
productType
- the ProductType to update
DuplicateKeyException
- - if a productType with the speicifed key already exists.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |