1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.shopping.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.shopping.model.ShoppingOrderItem;
20  
21  /**
22   * <a href="ShoppingOrderItemPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       ShoppingOrderItemPersistenceImpl
31   * @see       ShoppingOrderItemUtil
32   * @generated
33   */
34  public interface ShoppingOrderItemPersistence extends BasePersistence<ShoppingOrderItem> {
35      public void cacheResult(
36          com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> shoppingOrderItems);
40  
41      public com.liferay.portlet.shopping.model.ShoppingOrderItem create(
42          long orderItemId);
43  
44      public com.liferay.portlet.shopping.model.ShoppingOrderItem remove(
45          long orderItemId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.shopping.NoSuchOrderItemException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.shopping.model.ShoppingOrderItem update(
53          com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.shopping.model.ShoppingOrderItem updateImpl(
57          com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.shopping.model.ShoppingOrderItem findByPrimaryKey(
61          long orderItemId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.shopping.NoSuchOrderItemException;
64  
65      public com.liferay.portlet.shopping.model.ShoppingOrderItem fetchByPrimaryKey(
66          long orderItemId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findByOrderId(
69          long orderId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findByOrderId(
72          long orderId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findByOrderId(
76          long orderId, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.shopping.model.ShoppingOrderItem findByOrderId_First(
81          long orderId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.shopping.NoSuchOrderItemException;
85  
86      public com.liferay.portlet.shopping.model.ShoppingOrderItem findByOrderId_Last(
87          long orderId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.shopping.NoSuchOrderItemException;
91  
92      public com.liferay.portlet.shopping.model.ShoppingOrderItem[] findByOrderId_PrevAndNext(
93          long orderItemId, long orderId,
94          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.shopping.NoSuchOrderItemException;
97  
98      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findAll()
99          throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findAll(
102         int start, int end) throws com.liferay.portal.SystemException;
103 
104     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findAll(
105         int start, int end,
106         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107         throws com.liferay.portal.SystemException;
108 
109     public void removeByOrderId(long orderId)
110         throws com.liferay.portal.SystemException;
111 
112     public void removeAll() throws com.liferay.portal.SystemException;
113 
114     public int countByOrderId(long orderId)
115         throws com.liferay.portal.SystemException;
116 
117     public int countAll() throws com.liferay.portal.SystemException;
118 }