com.elasticpath.domain.catalog.impl
Class ProductLoadTunerImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractTransientImpl
          extended by com.elasticpath.domain.catalog.impl.ProductLoadTunerImpl
All Implemented Interfaces:
ProductLoadTuner, EpDomain, Transient, java.io.Serializable

public class ProductLoadTunerImpl
extends AbstractTransientImpl
implements ProductLoadTuner

Represents a tuner to control product load. A product load tuner can be used in some services to fine control what data to be loaded for a product. The main purpose is to achieve maximum performance for some specific performance-critical pages.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
ProductLoadTunerImpl()
          Default constructor.
 
Method Summary
 boolean contains(ProductLoadTuner productLoadTuner)
          Returns true if this load tuner is super set of the given load tuner, otherwise, false.
 ProductSkuLoadTuner getProductSkuLoadTuner()
          Returns the ProductSkuLoadTuner.
 ProductTypeLoadTuner getProductTypeLoadTuner()
          Returns the ProductTypeLoadTuner.
 boolean isLoadingAttributeValue()
          Return true if attribute value is requested.
 boolean isLoadingCategories()
          Return true if category is requested.
 boolean isLoadingDefaultCategory()
          Return true if default category is requested.
 boolean isLoadingDefaultSku()
          Return true if default sku is requested.
 boolean isLoadingPrice()
          Return true if price is requested.
 boolean isLoadingProductAssociations()
          Return true if product association is requested.
 boolean isLoadingProductType()
          Return true if sku product type requested.
 boolean isLoadingSkus()
          Return true if sku is requested.
 ProductLoadTuner merge(ProductLoadTuner productLoadTuner)
          Merges the given product load tuner with this one and returns the merged product load tuner.
 void setLoadingAttributeValue(boolean flag)
          Sets the flag of loading attribute values.
 void setLoadingCategories(boolean flag)
          Sets the flag of loading categories.
 void setLoadingDefaultCategory(boolean flag)
          Sets the flag of loading default category.
 void setLoadingDefaultSku(boolean flag)
          Sets the flag of loading default sku.
 void setLoadingPrice(boolean flag)
          Sets the flag of loading price.
 void setLoadingProductAssociations(boolean flag)
          Sets the flag of loading product associations.
 void setLoadingProductType(boolean flag)
          Sets the flag of loading product type.
 void setLoadingSkus(boolean flag)
          Sets the flag of loading skus.
 void setProductSkuLoadTuner(ProductSkuLoadTuner tuner)
          Sets the ProductSkuLoadTuner.
 void setProductTypeLoadTuner(ProductTypeLoadTuner tuner)
          Sets the ProductTypeLoadTuner.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

ProductLoadTunerImpl

public ProductLoadTunerImpl()
Default constructor.

Method Detail

contains

public boolean contains(ProductLoadTuner productLoadTuner)
Returns true if this load tuner is super set of the given load tuner, otherwise, false.

Specified by:
contains in interface ProductLoadTuner
Parameters:
productLoadTuner - the product load tuner
Returns:
true if this load tuner is super set of the given load tuner, otherwise, false

getProductSkuLoadTuner

public ProductSkuLoadTuner getProductSkuLoadTuner()
Returns the ProductSkuLoadTuner.

Specified by:
getProductSkuLoadTuner in interface ProductLoadTuner
Returns:
the ProductSkuLoadTuner

getProductTypeLoadTuner

public ProductTypeLoadTuner getProductTypeLoadTuner()
Returns the ProductTypeLoadTuner.

Specified by:
getProductTypeLoadTuner in interface ProductLoadTuner
Returns:
the ProductTypeLoadTuner

isLoadingAttributeValue

public boolean isLoadingAttributeValue()
Return true if attribute value is requested.

Specified by:
isLoadingAttributeValue in interface ProductLoadTuner
Returns:
true if attribute value is requested.

isLoadingCategories

public boolean isLoadingCategories()
Return true if category is requested.

Specified by:
isLoadingCategories in interface ProductLoadTuner
Returns:
true if category is requested.

isLoadingDefaultCategory

public boolean isLoadingDefaultCategory()
Return true if default category is requested.

Specified by:
isLoadingDefaultCategory in interface ProductLoadTuner
Returns:
true if default category is requested.

isLoadingDefaultSku

public boolean isLoadingDefaultSku()
Return true if default sku is requested.

Specified by:
isLoadingDefaultSku in interface ProductLoadTuner
Returns:
true if default sku is requested.

isLoadingPrice

public boolean isLoadingPrice()
Return true if price is requested.

Specified by:
isLoadingPrice in interface ProductLoadTuner
Returns:
true if price is requested.

isLoadingProductAssociations

public boolean isLoadingProductAssociations()
Return true if product association is requested.

Specified by:
isLoadingProductAssociations in interface ProductLoadTuner
Returns:
true if product association is requested.

isLoadingProductType

public boolean isLoadingProductType()
Return true if sku product type requested.

Specified by:
isLoadingProductType in interface ProductLoadTuner
Returns:
true if sku product type requested.

isLoadingSkus

public boolean isLoadingSkus()
Return true if sku is requested.

Specified by:
isLoadingSkus in interface ProductLoadTuner
Returns:
true if sku is requested.

merge

public ProductLoadTuner merge(ProductLoadTuner productLoadTuner)
Merges the given product load tuner with this one and returns the merged product load tuner.

Specified by:
merge in interface ProductLoadTuner
Parameters:
productLoadTuner - the product load tuner
Returns:
the merged product load tuner

setLoadingAttributeValue

public void setLoadingAttributeValue(boolean flag)
Sets the flag of loading attribute values.

Specified by:
setLoadingAttributeValue in interface ProductLoadTuner
Parameters:
flag - sets it to true to request loading attribute values.

setLoadingCategories

public void setLoadingCategories(boolean flag)
Sets the flag of loading categories.

Specified by:
setLoadingCategories in interface ProductLoadTuner
Parameters:
flag - sets it to true to request loading categories.

setLoadingDefaultCategory

public void setLoadingDefaultCategory(boolean flag)
Sets the flag of loading default category.

Specified by:
setLoadingDefaultCategory in interface ProductLoadTuner
Parameters:
flag - sets it to true to request loading default category.

setLoadingDefaultSku

public void setLoadingDefaultSku(boolean flag)
Sets the flag of loading default sku.

Specified by:
setLoadingDefaultSku in interface ProductLoadTuner
Parameters:
flag - sets it to true to request loading default sku.

setLoadingPrice

public void setLoadingPrice(boolean flag)
Sets the flag of loading price.

Specified by:
setLoadingPrice in interface ProductLoadTuner
Parameters:
flag - sets it to true to request loading price.

setLoadingProductAssociations

public void setLoadingProductAssociations(boolean flag)
Sets the flag of loading product associations.

Specified by:
setLoadingProductAssociations in interface ProductLoadTuner
Parameters:
flag - sets it to true to request loading product associations.

setLoadingProductType

public void setLoadingProductType(boolean flag)
Sets the flag of loading product type.

Specified by:
setLoadingProductType in interface ProductLoadTuner
Parameters:
flag - sets it to true to request loading product type.

setLoadingSkus

public void setLoadingSkus(boolean flag)
Sets the flag of loading skus.

Specified by:
setLoadingSkus in interface ProductLoadTuner
Parameters:
flag - sets it to true to request loading skus.

setProductSkuLoadTuner

public void setProductSkuLoadTuner(ProductSkuLoadTuner tuner)
Sets the ProductSkuLoadTuner.

Specified by:
setProductSkuLoadTuner in interface ProductLoadTuner
Parameters:
tuner - the ProductSkuLoadTuner

setProductTypeLoadTuner

public void setProductTypeLoadTuner(ProductTypeLoadTuner tuner)
Sets the ProductTypeLoadTuner.

Specified by:
setProductTypeLoadTuner in interface ProductLoadTuner
Parameters:
tuner - the ProductTypeLoadTuner