1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25
31 public class ShoppingCartUtil {
32 public static com.liferay.portlet.shopping.model.ShoppingCart create(
33 long cartId) {
34 return getPersistence().create(cartId);
35 }
36
37 public static com.liferay.portlet.shopping.model.ShoppingCart remove(
38 long cartId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.shopping.NoSuchCartException {
41 return getPersistence().remove(cartId);
42 }
43
44 public static com.liferay.portlet.shopping.model.ShoppingCart remove(
45 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(shoppingCart);
48 }
49
50 public static com.liferay.portlet.shopping.model.ShoppingCart update(
51 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(shoppingCart);
54 }
55
56 public static com.liferay.portlet.shopping.model.ShoppingCart update(
57 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
58 boolean merge) throws com.liferay.portal.SystemException {
59 return getPersistence().update(shoppingCart, merge);
60 }
61
62 public static com.liferay.portlet.shopping.model.ShoppingCart updateImpl(
63 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
64 boolean merge) throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(shoppingCart, merge);
66 }
67
68 public static com.liferay.portlet.shopping.model.ShoppingCart findByPrimaryKey(
69 long cartId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.shopping.NoSuchCartException {
72 return getPersistence().findByPrimaryKey(cartId);
73 }
74
75 public static com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey(
76 long cartId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(cartId);
78 }
79
80 public static java.util.List findByGroupId(long groupId)
81 throws com.liferay.portal.SystemException {
82 return getPersistence().findByGroupId(groupId);
83 }
84
85 public static java.util.List findByGroupId(long groupId, int begin, int end)
86 throws com.liferay.portal.SystemException {
87 return getPersistence().findByGroupId(groupId, begin, end);
88 }
89
90 public static java.util.List findByGroupId(long groupId, int begin,
91 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().findByGroupId(groupId, begin, end, obc);
94 }
95
96 public static com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First(
97 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.shopping.NoSuchCartException {
100 return getPersistence().findByGroupId_First(groupId, obc);
101 }
102
103 public static com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(
104 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portlet.shopping.NoSuchCartException {
107 return getPersistence().findByGroupId_Last(groupId, obc);
108 }
109
110 public static com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(
111 long cartId, long groupId,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.shopping.NoSuchCartException {
115 return getPersistence().findByGroupId_PrevAndNext(cartId, groupId, obc);
116 }
117
118 public static java.util.List findByUserId(long userId)
119 throws com.liferay.portal.SystemException {
120 return getPersistence().findByUserId(userId);
121 }
122
123 public static java.util.List findByUserId(long userId, int begin, int end)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByUserId(userId, begin, end);
126 }
127
128 public static java.util.List findByUserId(long userId, int begin, int end,
129 com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.SystemException {
131 return getPersistence().findByUserId(userId, begin, end, obc);
132 }
133
134 public static com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(
135 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException,
137 com.liferay.portlet.shopping.NoSuchCartException {
138 return getPersistence().findByUserId_First(userId, obc);
139 }
140
141 public static com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(
142 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portlet.shopping.NoSuchCartException {
145 return getPersistence().findByUserId_Last(userId, obc);
146 }
147
148 public static com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext(
149 long cartId, long userId,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.shopping.NoSuchCartException {
153 return getPersistence().findByUserId_PrevAndNext(cartId, userId, obc);
154 }
155
156 public static com.liferay.portlet.shopping.model.ShoppingCart findByG_U(
157 long groupId, long userId)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.shopping.NoSuchCartException {
160 return getPersistence().findByG_U(groupId, userId);
161 }
162
163 public static com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
164 long groupId, long userId) throws com.liferay.portal.SystemException {
165 return getPersistence().fetchByG_U(groupId, userId);
166 }
167
168 public static java.util.List findWithDynamicQuery(
169 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
170 throws com.liferay.portal.SystemException {
171 return getPersistence().findWithDynamicQuery(queryInitializer);
172 }
173
174 public static java.util.List findWithDynamicQuery(
175 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
176 int begin, int end) throws com.liferay.portal.SystemException {
177 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
178 end);
179 }
180
181 public static java.util.List findAll()
182 throws com.liferay.portal.SystemException {
183 return getPersistence().findAll();
184 }
185
186 public static java.util.List findAll(int begin, int end)
187 throws com.liferay.portal.SystemException {
188 return getPersistence().findAll(begin, end);
189 }
190
191 public static java.util.List findAll(int begin, int end,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.SystemException {
194 return getPersistence().findAll(begin, end, obc);
195 }
196
197 public static void removeByGroupId(long groupId)
198 throws com.liferay.portal.SystemException {
199 getPersistence().removeByGroupId(groupId);
200 }
201
202 public static void removeByUserId(long userId)
203 throws com.liferay.portal.SystemException {
204 getPersistence().removeByUserId(userId);
205 }
206
207 public static void removeByG_U(long groupId, long userId)
208 throws com.liferay.portal.SystemException,
209 com.liferay.portlet.shopping.NoSuchCartException {
210 getPersistence().removeByG_U(groupId, userId);
211 }
212
213 public static void removeAll() throws com.liferay.portal.SystemException {
214 getPersistence().removeAll();
215 }
216
217 public static int countByGroupId(long groupId)
218 throws com.liferay.portal.SystemException {
219 return getPersistence().countByGroupId(groupId);
220 }
221
222 public static int countByUserId(long userId)
223 throws com.liferay.portal.SystemException {
224 return getPersistence().countByUserId(userId);
225 }
226
227 public static int countByG_U(long groupId, long userId)
228 throws com.liferay.portal.SystemException {
229 return getPersistence().countByG_U(groupId, userId);
230 }
231
232 public static int countAll() throws com.liferay.portal.SystemException {
233 return getPersistence().countAll();
234 }
235
236 public static ShoppingCartPersistence getPersistence() {
237 return _getUtil()._persistence;
238 }
239
240 public void setPersistence(ShoppingCartPersistence persistence) {
241 _persistence = persistence;
242 }
243
244 private static ShoppingCartUtil _getUtil() {
245 if (_util == null) {
246 _util = (ShoppingCartUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
247 }
248
249 return _util;
250 }
251
252 private static final String _UTIL = ShoppingCartUtil.class.getName();
253 private static ShoppingCartUtil _util;
254 private ShoppingCartPersistence _persistence;
255 }