com.elasticpath.service.misc.impl
Class LazyLoadHelperImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
          extended by com.elasticpath.service.misc.impl.LazyLoadHelperImpl
All Implemented Interfaces:
EpPersistenceService, EpService, LazyLoadHelper

public class LazyLoadHelperImpl
extends AbstractEpPersistenceServiceImpl
implements LazyLoadHelper

This is a default implementation of LazyLoadHelper.


Constructor Summary
LazyLoadHelperImpl()
           
 
Method Summary
 java.lang.Object getObject(long uid)
          This method is not used and implmented in this service.
 void populateCategories(java.util.Collection categories, CategoryLoadTuner loadTuner)
          Populate the given category based on the given load tuner.
 void populateCategory(Category category, CategoryLoadTuner loadTuner)
          Populate the given category based on the given load tuner.
 void populateCategoryType(CategoryType categoryType, CategoryTypeLoadTuner loadTuner)
          Populate the given category type based on the given load tuner.
 void populateCategoryTypes(java.util.Collection categoryTypes, CategoryTypeLoadTuner loadTuner)
          Populate the given category type based on the given load tuner.
 void populateProduct(Product product, ProductLoadTuner loadTuner)
          Populate the given product based on the given load tuner.
 void populateProducts(java.util.Collection products, ProductLoadTuner loadTuner)
          Populate the given products based on the given load tuner.
 void populateProductSku(ProductSku sku, ProductSkuLoadTuner loadTuner)
          Populate the given product sku based on the given load tuner.
 void populateProductSkus(java.util.Collection skus, ProductSkuLoadTuner loadTuner)
          Populate the given product skus based on the given load tuner.
 void populateProductType(ProductType productType, ProductTypeLoadTuner loadTuner)
          Populate the given product type based on the given load tuner.
 void populateProductTypes(java.util.Collection productTypes, ProductTypeLoadTuner loadTuner)
          Populate the given product types based on the given load tuner.
 
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

LazyLoadHelperImpl

public LazyLoadHelperImpl()
Method Detail

getObject

public java.lang.Object getObject(long uid)
                           throws EpServiceException
This method is not used and implmented in this service.

Specified by:
getObject in interface EpPersistenceService
Parameters:
uid - not used
Returns:
nothing
Throws:
EpServiceException - - in case it get called

populateCategories

public void populateCategories(java.util.Collection categories,
                               CategoryLoadTuner loadTuner)
Populate the given category based on the given load tuner.

Specified by:
populateCategories in interface LazyLoadHelper
Parameters:
categories - the category to populate
loadTuner - the load tuner

populateCategory

public void populateCategory(Category category,
                             CategoryLoadTuner loadTuner)
Populate the given category based on the given load tuner.

Specified by:
populateCategory in interface LazyLoadHelper
Parameters:
category - the category to populate
loadTuner - the load tuner

populateCategoryType

public void populateCategoryType(CategoryType categoryType,
                                 CategoryTypeLoadTuner loadTuner)
Populate the given category type based on the given load tuner.

Specified by:
populateCategoryType in interface LazyLoadHelper
Parameters:
categoryType - the category type to populate
loadTuner - the load tuner

populateCategoryTypes

public void populateCategoryTypes(java.util.Collection categoryTypes,
                                  CategoryTypeLoadTuner loadTuner)
Populate the given category type based on the given load tuner.

Specified by:
populateCategoryTypes in interface LazyLoadHelper
Parameters:
categoryTypes - the category type to populate
loadTuner - the load tuner

populateProduct

public void populateProduct(Product product,
                            ProductLoadTuner loadTuner)
Populate the given product based on the given load tuner.

Specified by:
populateProduct in interface LazyLoadHelper
Parameters:
product - the product to populate
loadTuner - the load tuner

populateProducts

public void populateProducts(java.util.Collection products,
                             ProductLoadTuner loadTuner)
Populate the given products based on the given load tuner.

Specified by:
populateProducts in interface LazyLoadHelper
Parameters:
products - the products to populate
loadTuner - the load tuner

populateProductSku

public void populateProductSku(ProductSku sku,
                               ProductSkuLoadTuner loadTuner)
Populate the given product sku based on the given load tuner.

Specified by:
populateProductSku in interface LazyLoadHelper
Parameters:
sku - the product sku to populate
loadTuner - the load tuner

populateProductSkus

public void populateProductSkus(java.util.Collection skus,
                                ProductSkuLoadTuner loadTuner)
Populate the given product skus based on the given load tuner.

Specified by:
populateProductSkus in interface LazyLoadHelper
Parameters:
skus - the product skus to populate
loadTuner - the load tuner

populateProductType

public void populateProductType(ProductType productType,
                                ProductTypeLoadTuner loadTuner)
Populate the given product type based on the given load tuner.

Specified by:
populateProductType in interface LazyLoadHelper
Parameters:
productType - the product type to populate
loadTuner - the load tuner

populateProductTypes

public void populateProductTypes(java.util.Collection productTypes,
                                 ProductTypeLoadTuner loadTuner)
Populate the given product types based on the given load tuner.

Specified by:
populateProductTypes in interface LazyLoadHelper
Parameters:
productTypes - the product types to populate
loadTuner - the load tuner