com.elasticpath.service.catalog.impl
Class ProductAssociationServiceImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
          extended by com.elasticpath.service.catalog.impl.ProductAssociationServiceImpl
All Implemented Interfaces:
ProductAssociationService, EpPersistenceService, EpService

public class ProductAssociationServiceImpl
extends AbstractEpPersistenceServiceImpl
implements ProductAssociationService

Provides services for storing and retrieving ProductAssociations.


Constructor Summary
ProductAssociationServiceImpl()
           
 
Method Summary
 ProductAssociation add(ProductAssociation productAssociation)
          Adds the given ProductAssociation.
 java.lang.Object getObject(long uid)
          Generic get method for all persistable domain models.
 ProductAssociation load(long productAssociationUid)
          Load the ProductAssociation with the given UID.
 void remove(ProductAssociation productAssociation)
          Delete the ProductAssociation.
 void update(ProductAssociation productAssociation)
          Updates the given ProductAssociation.
 
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

ProductAssociationServiceImpl

public ProductAssociationServiceImpl()
Method Detail

add

public ProductAssociation add(ProductAssociation productAssociation)
                       throws EpServiceException
Adds the given ProductAssociation.

Specified by:
add in interface ProductAssociationService
Parameters:
productAssociation - the ProductAssociation to add
Returns:
the persisted instance of ProductAssociation
Throws:
EpServiceException - - in case of any errors

getObject

public java.lang.Object getObject(long uid)
                           throws EpServiceException
Generic get method for all persistable domain models.

Specified by:
getObject in interface ProductAssociationService
Specified by:
getObject in interface EpPersistenceService
Parameters:
uid - the persisted instance uid
Returns:
the persisted instance if exists, otherwise null
Throws:
EpServiceException - - in case of any errors

load

public ProductAssociation load(long productAssociationUid)
                        throws EpServiceException
Load the ProductAssociation with the given UID. Throw an unrecoverable exception if there is no matching database row.

Specified by:
load in interface ProductAssociationService
Parameters:
productAssociationUid - the ProductAssociation UID
Returns:
the productAssociation if UID exists, otherwise null
Throws:
EpServiceException - - in case of any errors

remove

public void remove(ProductAssociation productAssociation)
            throws EpServiceException
Delete the ProductAssociation.

Specified by:
remove in interface ProductAssociationService
Parameters:
productAssociation - the ProductAssociation to remove
Throws:
EpServiceException - - in case of any errors

update

public void update(ProductAssociation productAssociation)
            throws EpServiceException
Updates the given ProductAssociation.

Specified by:
update in interface ProductAssociationService
Parameters:
productAssociation - the ProductAssociation to update
Throws:
EpServiceException - - in case of any errors