com.elasticpath.domain.catalog.impl
Class ProductTypeLoadTunerImpl

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

public class ProductTypeLoadTunerImpl
extends AbstractTransientImpl
implements ProductTypeLoadTuner

Represents a tuner to control product type load. A product type load tuner can be used in some services to fine control what data to be loaded for a product type. 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
ProductTypeLoadTunerImpl()
           
 
Method Summary
 boolean contains(ProductTypeLoadTuner productTypeLoadTuner)
          Returns true if this load tuner is super set of the given load tuner, otherwise, false.
 boolean isLoadingAttributes()
          Return true if attributes is requested.
 boolean isLoadingSkuOptions()
          Return true if sku options is requested.
 ProductTypeLoadTuner merge(ProductTypeLoadTuner productTypeLoadTuner)
          Merges the given product type load tuner with this one and returns the merged load tuner.
 void setLoadingAttributes(boolean flag)
          Sets the flag of loading attributes.
 void setLoadingSkuOptions(boolean flag)
          Sets the flag of loading sku options.
 
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

ProductTypeLoadTunerImpl

public ProductTypeLoadTunerImpl()
Method Detail

contains

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

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

isLoadingAttributes

public boolean isLoadingAttributes()
Return true if attributes is requested.

Specified by:
isLoadingAttributes in interface ProductTypeLoadTuner
Returns:
true if attributes is requested.

isLoadingSkuOptions

public boolean isLoadingSkuOptions()
Return true if sku options is requested.

Specified by:
isLoadingSkuOptions in interface ProductTypeLoadTuner
Returns:
true if sku options is requested.

merge

public ProductTypeLoadTuner merge(ProductTypeLoadTuner productTypeLoadTuner)
Merges the given product type load tuner with this one and returns the merged load tuner.

Specified by:
merge in interface ProductTypeLoadTuner
Parameters:
productTypeLoadTuner - the product type load tuner
Returns:
the merged load tuner

setLoadingAttributes

public void setLoadingAttributes(boolean flag)
Sets the flag of loading attributes.

Specified by:
setLoadingAttributes in interface ProductTypeLoadTuner
Parameters:
flag - sets it to true to request loading attributes.

setLoadingSkuOptions

public void setLoadingSkuOptions(boolean flag)
Sets the flag of loading sku options.

Specified by:
setLoadingSkuOptions in interface ProductTypeLoadTuner
Parameters:
flag - sets it to true to request loading sku options.