1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.ShoppingCart;
20  
21  /**
22   * <a href="ShoppingCartPersistence.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       ShoppingCartPersistenceImpl
31   * @see       ShoppingCartUtil
32   * @generated
33   */
34  public interface ShoppingCartPersistence extends BasePersistence<ShoppingCart> {
35      public void cacheResult(
36          com.liferay.portlet.shopping.model.ShoppingCart shoppingCart);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> shoppingCarts);
40  
41      public com.liferay.portlet.shopping.model.ShoppingCart create(long cartId);
42  
43      public com.liferay.portlet.shopping.model.ShoppingCart remove(long cartId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.shopping.NoSuchCartException;
46  
47      public com.liferay.portlet.shopping.model.ShoppingCart updateImpl(
48          com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.shopping.model.ShoppingCart findByPrimaryKey(
53          long cartId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.shopping.NoSuchCartException;
56  
57      public com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey(
58          long cartId) throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
61          long groupId)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
65          long groupId, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
69          long groupId, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator obc)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First(
74          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.kernel.exception.SystemException,
76              com.liferay.portlet.shopping.NoSuchCartException;
77  
78      public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(
79          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.kernel.exception.SystemException,
81              com.liferay.portlet.shopping.NoSuchCartException;
82  
83      public com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(
84          long cartId, long groupId,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.kernel.exception.SystemException,
87              com.liferay.portlet.shopping.NoSuchCartException;
88  
89      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
90          long userId) throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
93          long userId, int start, int end)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
97          long userId, int start, int end,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(
102         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.kernel.exception.SystemException,
104             com.liferay.portlet.shopping.NoSuchCartException;
105 
106     public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(
107         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.kernel.exception.SystemException,
109             com.liferay.portlet.shopping.NoSuchCartException;
110 
111     public com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext(
112         long cartId, long userId,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.kernel.exception.SystemException,
115             com.liferay.portlet.shopping.NoSuchCartException;
116 
117     public com.liferay.portlet.shopping.model.ShoppingCart findByG_U(
118         long groupId, long userId)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.shopping.NoSuchCartException;
121 
122     public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
123         long groupId, long userId)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
127         long groupId, long userId, boolean retrieveFromCache)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll()
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
134         int start, int end)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
138         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public void removeByGroupId(long groupId)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public void removeByUserId(long userId)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public void removeByG_U(long groupId, long userId)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.shopping.NoSuchCartException;
150 
151     public void removeAll()
152         throws com.liferay.portal.kernel.exception.SystemException;
153 
154     public int countByGroupId(long groupId)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public int countByUserId(long userId)
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public int countByG_U(long groupId, long userId)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public int countAll()
164         throws com.liferay.portal.kernel.exception.SystemException;
165 }