com.elasticpath.service.catalog
Interface ProductAssociationService

All Superinterfaces:
EpPersistenceService, EpService
All Known Implementing Classes:
ProductAssociationServiceImpl

public interface ProductAssociationService
extends EpPersistenceService

Provides services for storing and retrieving ProductAssociations.


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 interface com.elasticpath.service.EpPersistenceService
getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

add

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

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

getObject

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

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

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

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

remove

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

Parameters:
productAssociation - the ProductAssociation to remove
Throws:
EpServiceException - - in case of any errors

update

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

Parameters:
productAssociation - the ProductAssociation to update
Throws:
EpServiceException - - in case of any errors