org.broadleafcommerce.core.inventory.dao
Class AvailabilityDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.common.util.dao.BatchRetrieveDao
      extended by org.broadleafcommerce.core.inventory.dao.AvailabilityDaoImpl
All Implemented Interfaces:
AvailabilityDao

@Repository(value="blAvailabilityDao")
public class AvailabilityDaoImpl
extends BatchRetrieveDao
implements AvailabilityDao


Field Summary
protected  javax.persistence.EntityManager em
           
 
Constructor Summary
AvailabilityDaoImpl()
           
 
Method Summary
 List<SkuAvailability> readSKUAvailability(List<Long> skuIds, boolean realTime)
          Returns a SKU Availability record for the passed in skuId.
 List<SkuAvailability> readSKUAvailabilityForLocation(List<Long> skuIds, Long locationId, boolean realTime)
          Returns a SKU Availability record for the passed in skuId and locationId.
 void save(SkuAvailability skuAvailability)
           
 
Methods inherited from class org.broadleafcommerce.common.util.dao.BatchRetrieveDao
batchExecuteReadQuery, getInClauseBatchSize, setInClauseBatchSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em
Constructor Detail

AvailabilityDaoImpl

public AvailabilityDaoImpl()
Method Detail

readSKUAvailability

public List<SkuAvailability> readSKUAvailability(List<Long> skuIds,
                                                 boolean realTime)
Description copied from interface: AvailabilityDao
Returns a SKU Availability record for the passed in skuId. Uses a cacheable query unless the realTime flag is set to true.

Specified by:
readSKUAvailability in interface AvailabilityDao
Returns:

readSKUAvailabilityForLocation

public List<SkuAvailability> readSKUAvailabilityForLocation(List<Long> skuIds,
                                                            Long locationId,
                                                            boolean realTime)
Description copied from interface: AvailabilityDao
Returns a SKU Availability record for the passed in skuId and locationId. Uses a cacheable query unless the realTime flag is set to true.

Specified by:
readSKUAvailabilityForLocation in interface AvailabilityDao
Returns:

save

public void save(SkuAvailability skuAvailability)
Specified by:
save in interface AvailabilityDao


Copyright © 2013. All Rights Reserved.