com.elasticpath.domain.catalog.impl
Class CategoryLoadTunerImpl

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

public class CategoryLoadTunerImpl
extends AbstractTransientImpl
implements CategoryLoadTuner

Represents a tuner to control category load. A category load tuner can be used in some services to fine control what data to be loaded for a category. 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
CategoryLoadTunerImpl()
           
 
Method Summary
 CategoryTypeLoadTuner getCategoryTypeLoadTuner()
          Returns the CategoryTypeLoadTuner.
 boolean isLoadingAttributeValue()
          Return true if attribute value is requested.
 boolean isLoadingCategoryType()
          Return true if sku category type requested.
 boolean isLoadingChildren()
          Return true if children is requested.
 boolean isLoadingParent()
          Return true if parent is requested.
 void setCategoryTypeLoadTuner(CategoryTypeLoadTuner tuner)
          Sets the CategoryTypeLoadTuner.
 void setLoadingAttributeValue(boolean flag)
          Sets the flag of loading attribute values.
 void setLoadingCategoryType(boolean flag)
          Sets the flag of loading category type.
 void setLoadingChildren(boolean flag)
          Sets the flag of loading children.
 void setLoadingParent(boolean flag)
          Sets the flag of loading parent.
 
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

CategoryLoadTunerImpl

public CategoryLoadTunerImpl()
Method Detail

getCategoryTypeLoadTuner

public CategoryTypeLoadTuner getCategoryTypeLoadTuner()
Returns the CategoryTypeLoadTuner.

Specified by:
getCategoryTypeLoadTuner in interface CategoryLoadTuner
Returns:
the CategoryTypeLoadTuner

isLoadingAttributeValue

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

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

isLoadingCategoryType

public boolean isLoadingCategoryType()
Return true if sku category type requested.

Specified by:
isLoadingCategoryType in interface CategoryLoadTuner
Returns:
true if sku category type requested.

isLoadingChildren

public boolean isLoadingChildren()
Return true if children is requested.

Specified by:
isLoadingChildren in interface CategoryLoadTuner
Returns:
true if children is requested.

isLoadingParent

public boolean isLoadingParent()
Return true if parent is requested.

Specified by:
isLoadingParent in interface CategoryLoadTuner
Returns:
true if parent is requested.

setCategoryTypeLoadTuner

public void setCategoryTypeLoadTuner(CategoryTypeLoadTuner tuner)
Sets the CategoryTypeLoadTuner.

Specified by:
setCategoryTypeLoadTuner in interface CategoryLoadTuner
Parameters:
tuner - the CategoryTypeLoadTuner

setLoadingAttributeValue

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

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

setLoadingCategoryType

public void setLoadingCategoryType(boolean flag)
Sets the flag of loading category type.

Specified by:
setLoadingCategoryType in interface CategoryLoadTuner
Parameters:
flag - sets it to true to request loading category type.

setLoadingChildren

public void setLoadingChildren(boolean flag)
Sets the flag of loading children.

Specified by:
setLoadingChildren in interface CategoryLoadTuner
Parameters:
flag - sets it to true to request loading children.

setLoadingParent

public void setLoadingParent(boolean flag)
Sets the flag of loading parent.

Specified by:
setLoadingParent in interface CategoryLoadTuner
Parameters:
flag - sets it to true to request loading parent.