com.elasticpath.domain.catalog
Interface ProductTypeLoadTuner

All Superinterfaces:
EpDomain, java.io.Serializable, Transient
All Known Implementing Classes:
ProductTypeLoadTunerImpl

public interface ProductTypeLoadTuner
extends Transient

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.


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 interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

contains

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

Parameters:
productTypeLoadTuner - the product type load tuner
Returns:
true if this load tuner is super set of the given load tuner, otherwise, false

isLoadingAttributes

boolean isLoadingAttributes()
Return true if attributes is requested.

Returns:
true if attributes is requested.

isLoadingSkuOptions

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

Returns:
true if sku options is requested.

merge

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

Parameters:
productTypeLoadTuner - the product type load tuner
Returns:
the merged load tuner

setLoadingAttributes

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

Parameters:
flag - sets it to true to request loading attributes.

setLoadingSkuOptions

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

Parameters:
flag - sets it to true to request loading sku options.