1
19
20 package com.liferay.portlet.shopping.service.persistence;
21
22 import com.liferay.portal.service.persistence.BasePersistence;
23
24
30 public interface ShoppingCartPersistence extends BasePersistence {
31 public void cacheResult(
32 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart);
33
34 public void cacheResult(
35 java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> shoppingCarts);
36
37 public void clearCache();
38
39 public com.liferay.portlet.shopping.model.ShoppingCart create(long cartId);
40
41 public com.liferay.portlet.shopping.model.ShoppingCart remove(long cartId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.shopping.NoSuchCartException;
44
45 public com.liferay.portlet.shopping.model.ShoppingCart remove(
46 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.shopping.model.ShoppingCart update(
53 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.shopping.model.ShoppingCart update(
70 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
71 boolean merge) throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.shopping.model.ShoppingCart updateImpl(
74 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
75 boolean merge) throws com.liferay.portal.SystemException;
76
77 public com.liferay.portlet.shopping.model.ShoppingCart findByPrimaryKey(
78 long cartId)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portlet.shopping.NoSuchCartException;
81
82 public com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey(
83 long cartId) throws com.liferay.portal.SystemException;
84
85 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
86 long groupId) throws com.liferay.portal.SystemException;
87
88 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
89 long groupId, int start, int end)
90 throws com.liferay.portal.SystemException;
91
92 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
93 long groupId, int start, int end,
94 com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First(
98 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.shopping.NoSuchCartException;
101
102 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(
103 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.shopping.NoSuchCartException;
106
107 public com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(
108 long cartId, long groupId,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.shopping.NoSuchCartException;
112
113 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
114 long userId) throws com.liferay.portal.SystemException;
115
116 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
117 long userId, int start, int end)
118 throws com.liferay.portal.SystemException;
119
120 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
121 long userId, int start, int end,
122 com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException;
124
125 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(
126 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.shopping.NoSuchCartException;
129
130 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(
131 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.SystemException,
133 com.liferay.portlet.shopping.NoSuchCartException;
134
135 public com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext(
136 long cartId, long userId,
137 com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portlet.shopping.NoSuchCartException;
140
141 public com.liferay.portlet.shopping.model.ShoppingCart findByG_U(
142 long groupId, long userId)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portlet.shopping.NoSuchCartException;
145
146 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
147 long groupId, long userId) throws com.liferay.portal.SystemException;
148
149 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
150 long groupId, long userId, boolean retrieveFromCache)
151 throws com.liferay.portal.SystemException;
152
153 public java.util.List<Object> findWithDynamicQuery(
154 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
155 throws com.liferay.portal.SystemException;
156
157 public java.util.List<Object> findWithDynamicQuery(
158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
159 int end) throws com.liferay.portal.SystemException;
160
161 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll()
162 throws com.liferay.portal.SystemException;
163
164 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
165 int start, int end) throws com.liferay.portal.SystemException;
166
167 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
168 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.SystemException;
170
171 public void removeByGroupId(long groupId)
172 throws com.liferay.portal.SystemException;
173
174 public void removeByUserId(long userId)
175 throws com.liferay.portal.SystemException;
176
177 public void removeByG_U(long groupId, long userId)
178 throws com.liferay.portal.SystemException,
179 com.liferay.portlet.shopping.NoSuchCartException;
180
181 public void removeAll() throws com.liferay.portal.SystemException;
182
183 public int countByGroupId(long groupId)
184 throws com.liferay.portal.SystemException;
185
186 public int countByUserId(long userId)
187 throws com.liferay.portal.SystemException;
188
189 public int countByG_U(long groupId, long userId)
190 throws com.liferay.portal.SystemException;
191
192 public int countAll() throws com.liferay.portal.SystemException;
193 }