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.order.dao;
Provides support for reading OrderMultishipOptions. The default Broadleaf implementation uses Hibernate to perform the reading.

Author(s):
Andre Azzolini (apazzolini)
public interface OrderMultishipOptionDao {

    
Saves a given OrderMultishipOption. Note that the method will return the new saved instance from Hibernate

Parameters:
orderMultishipOption the OrderMultishipOption to save
Returns:
the saved instance from Hibernate
    public OrderMultishipOption save(final OrderMultishipOption orderMultishipOption);

    
Returns all associated OrderMultishipOptions to the given order

Parameters:
orderId the order's id to find OrderMultishipOptions for
Returns:
the associated OrderMultishipOptions
    public List<OrderMultishipOptionreadOrderMultishipOptions(Long orderId);
    
    
Returns all associated OrderMultishipOptions to the given OrderItem

Parameters:
orderItemId the order item's id to find OrderMultishipOptions for
Returns:
the associated OrderMultishipOptions
    public List<OrderMultishipOptionreadOrderItemOrderMultishipOptions(Long orderItemId);

    
Creates a new OrderMultishipOption instance. The default Broadleaf implemntation uses the EntityConfiguration to create the appropriate implementation class based on the current configuration

Returns:
the OrderMultishipOption that was just created
    public OrderMultishipOption create();

    
Removes all of the OrderMultishipOptions in the list permanently

Parameters:
options the options to delete
    public void deleteAll(List<OrderMultishipOptionoptions);
New to GrepCode? Check out our FAQ X