com.elasticpath.domain.catalog.impl
Class ProductSkuLoadTunerImpl

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

public class ProductSkuLoadTunerImpl
extends AbstractTransientImpl
implements ProductSkuLoadTuner

Represents a tuner to control productsku load. A product load tuner can be used in some services to fine control what data to be loaded for a productsku. 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
ProductSkuLoadTunerImpl()
           
 
Method Summary
 boolean contains(ProductSkuLoadTuner productSkuLoadTuner)
          Returns true if this load tuner is super set of the given load tuner, otherwise, false.
 boolean isLoadingAttributeValue()
          Return true if attribute value is requested.
 boolean isLoadingDigitalAsset()
          Return true if digital asset is requested.
 boolean isLoadingInventory()
          Return true if inventory is requested.
 boolean isLoadingOptionValue()
          Return true if option value is requested.
 boolean isLoadingPrice()
          Return true if price is requested.
 boolean isLoadingProduct()
          Return true if product is requested.
 boolean isLoadingSpec()
          Return true if spec is requested.
 ProductSkuLoadTuner merge(ProductSkuLoadTuner productSkuLoadTuner)
          Merges the given load tuner with this one and returns the merged load tuner.
 void setLoadingAttributeValue(boolean flag)
          Sets the flag of loading attribute values.
 void setLoadingDigitalAsset(boolean flag)
          Sets the flag of loading digital asset.
 void setLoadingInventory(boolean flag)
          Sets the flag of loading inventory.
 void setLoadingOptionValue(boolean flag)
          Sets the flag of loading option values.
 void setLoadingPrice(boolean flag)
          Sets the flag of loading price.
 void setLoadingProduct(boolean flag)
          Sets the flag of loading product.
 void setLoadingSpec(boolean flag)
          Sets the flag of loading productsku spec.
 
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

ProductSkuLoadTunerImpl

public ProductSkuLoadTunerImpl()
Method Detail

contains

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

Specified by:
contains in interface ProductSkuLoadTuner
Parameters:
productSkuLoadTuner - the sku load tuner
Returns:
true if this load tuner is super set of the given load tuner, otherwise, false

isLoadingAttributeValue

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

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

isLoadingDigitalAsset

public boolean isLoadingDigitalAsset()
Return true if digital asset is requested.

Specified by:
isLoadingDigitalAsset in interface ProductSkuLoadTuner
Returns:
true if digital asset is requested.

isLoadingInventory

public boolean isLoadingInventory()
Return true if inventory is requested.

Specified by:
isLoadingInventory in interface ProductSkuLoadTuner
Returns:
true if inventory is requested.

isLoadingOptionValue

public boolean isLoadingOptionValue()
Return true if option value is requested.

Specified by:
isLoadingOptionValue in interface ProductSkuLoadTuner
Returns:
true if option value is requested.

isLoadingPrice

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

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

isLoadingProduct

public boolean isLoadingProduct()
Return true if product is requested.

Specified by:
isLoadingProduct in interface ProductSkuLoadTuner
Returns:
true if product is requested.

isLoadingSpec

public boolean isLoadingSpec()
Return true if spec is requested.

Specified by:
isLoadingSpec in interface ProductSkuLoadTuner
Returns:
true if spec is requested.

merge

public ProductSkuLoadTuner merge(ProductSkuLoadTuner productSkuLoadTuner)
Merges the given load tuner with this one and returns the merged load tuner.

Specified by:
merge in interface ProductSkuLoadTuner
Parameters:
productSkuLoadTuner - the product sku load tuner
Returns:
the merged load tuner

setLoadingAttributeValue

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

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

setLoadingDigitalAsset

public void setLoadingDigitalAsset(boolean flag)
Sets the flag of loading digital asset.

Specified by:
setLoadingDigitalAsset in interface ProductSkuLoadTuner
Parameters:
flag - sets it to true to request digital asset.

setLoadingInventory

public void setLoadingInventory(boolean flag)
Sets the flag of loading inventory.

Specified by:
setLoadingInventory in interface ProductSkuLoadTuner
Parameters:
flag - sets it to true to request loading inventory.

setLoadingOptionValue

public void setLoadingOptionValue(boolean flag)
Sets the flag of loading option values.

Specified by:
setLoadingOptionValue in interface ProductSkuLoadTuner
Parameters:
flag - sets it to true to request loading option values.

setLoadingPrice

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

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

setLoadingProduct

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

Specified by:
setLoadingProduct in interface ProductSkuLoadTuner
Parameters:
flag - sets it to true to request loading product.

setLoadingSpec

public void setLoadingSpec(boolean flag)
Sets the flag of loading productsku spec.

Specified by:
setLoadingSpec in interface ProductSkuLoadTuner
Parameters:
flag - sets it to true to request loading productsku spec.