Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * #%L
   * BroadleafCommerce Framework
   * %%
   * Copyright (C) 2009 - 2013 Broadleaf Commerce
   * %%
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * 
  *       http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * #L%
  */
 package org.broadleafcommerce.core.catalog.domain;
 
 public class RelatedProductDTO {
     private Long categoryId;
     private Long productId;
     private boolean cumulativeResults=true;
     private Integer quantity = null;
    
    
Returns the categoryId for which the system should find related products.
 
     public Long getCategoryId() {
         return ;
     }

    
Sets the categoryId for which the system should find related products. May be ignored by implementations if an productId is also specified.

Parameters:
categoryId
 
     public void setCategoryId(Long categoryId) {
         this. = categoryId;
     }
    
    
Returns the productId for which the system should find related products.
 
     public Long getProductId() {
         return ;
     }
    
    
Sets the productId for which the system should find related products.

Parameters:
productId
  
     public void setProductId(Long productId) {
         this. = productId;
     }
    
    
Returns the type of relationship that is desired.

Returns:
See also:
RelatedProductTypeEnum
 
     public RelatedProductTypeEnum getType() {
         return ;
     }
    
    
Sets the type of relationship that is desired.

Parameters:
type
See also:
RelatedProductTypeEnum
 
     public void setType(RelatedProductTypeEnum type) {
         this. = type;
     }
    
    
Returns whether cumulative results are desired. Defaults to true.

Returns:
 
     public boolean isCumulativeResults() {
         return ;
     }
    
    
Sets whether cumulative results are desired.

Parameters:
cumulativeResults
 
     public void setCumulativeResults(boolean cumulativeResults) {
         this. = cumulativeResults;
     }

    
The number of results to return. The system will not look for additional results after the quantity has been met. Null indicates to return all results.

Returns:
    public Integer getQuantity() {
        return ;
    }

    
The number of results to return. Null indicates to return all results.

Parameters:
maxQuantity
    public void setQuantity(Integer quantity) {
        this. = quantity;
    }
New to GrepCode? Check out our FAQ X