com.elasticpath.persistence.impl
Class SkuConfigurationDaoImpl

java.lang.Object
  extended by com.elasticpath.persistence.impl.SkuConfigurationDaoImpl
All Implemented Interfaces:
SkuConfigurationDao

public class SkuConfigurationDaoImpl
extends java.lang.Object
implements SkuConfigurationDao

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


Constructor Summary
SkuConfigurationDaoImpl()
           
 
Method Summary
 PersistenceEngine getPersistenceEngine()
          Returns the persistence engine.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkuConfigurationDaoImpl

public SkuConfigurationDaoImpl()
Method Detail

getPersistenceEngine

public PersistenceEngine getPersistenceEngine()
Returns the persistence engine.

Returns:
the persistence engine.

getSkuWithMatchingOptionValues

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

Specified by:
getSkuWithMatchingOptionValues in interface SkuConfigurationDao
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

public void setPersistenceEngine(PersistenceEngine persistenceEngine)
Sets the persistence engine.

Specified by:
setPersistenceEngine in interface SkuConfigurationDao
Parameters:
persistenceEngine - the persistence engine to set.