com.elasticpath.persistence
Interface SkuConfigurationDao

All Known Implementing Classes:
SkuConfigurationDaoImpl

public interface SkuConfigurationDao

This DAO encapsulates dynamically generated HQL queries used by the SkuConfigurationService.


Method Summary
 long getSkuWithMatchingOptionValues(long productUid, java.util.List optionValueCodes)
          Finds a UID corresponding to a SKU with the given set of option value codes.
 void setPersistenceEngine(PersistenceEngine persistenceEngine)
          Sets the persistence engine.
 

Method Detail

getSkuWithMatchingOptionValues

long getSkuWithMatchingOptionValues(long productUid,
                                    java.util.List optionValueCodes)
Finds a UID corresponding to a SKU with the given set of option value codes.

Parameters:
productUid - the UID of the product to search for matching SKUs
optionValueCodes - a List of Strings corresponding to the option value codes of the desired SKU
Returns:
the UID of the SKU with all the specified optionValueCodes or 0 if no such SKU is found.

setPersistenceEngine

void setPersistenceEngine(PersistenceEngine persistenceEngine)
Sets the persistence engine.

Parameters:
persistenceEngine - the persistence engine to set.