1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25
31 public class ShoppingCouponUtil {
32 public static com.liferay.portlet.shopping.model.ShoppingCoupon create(
33 long couponId) {
34 return getPersistence().create(couponId);
35 }
36
37 public static com.liferay.portlet.shopping.model.ShoppingCoupon remove(
38 long couponId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.shopping.NoSuchCouponException {
41 return getPersistence().remove(couponId);
42 }
43
44 public static com.liferay.portlet.shopping.model.ShoppingCoupon remove(
45 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(shoppingCoupon);
48 }
49
50
53 public static com.liferay.portlet.shopping.model.ShoppingCoupon update(
54 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(shoppingCoupon);
57 }
58
59
72 public static com.liferay.portlet.shopping.model.ShoppingCoupon update(
73 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(shoppingCoupon, merge);
76 }
77
78 public static com.liferay.portlet.shopping.model.ShoppingCoupon updateImpl(
79 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(shoppingCoupon, merge);
82 }
83
84 public static com.liferay.portlet.shopping.model.ShoppingCoupon findByPrimaryKey(
85 long couponId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.shopping.NoSuchCouponException {
88 return getPersistence().findByPrimaryKey(couponId);
89 }
90
91 public static com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(
92 long couponId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(couponId);
94 }
95
96 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
97 long groupId) throws com.liferay.portal.SystemException {
98 return getPersistence().findByGroupId(groupId);
99 }
100
101 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
102 long groupId, int begin, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByGroupId(groupId, begin, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
108 long groupId, int begin, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByGroupId(groupId, begin, end, obc);
112 }
113
114 public static com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
115 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.shopping.NoSuchCouponException {
118 return getPersistence().findByGroupId_First(groupId, obc);
119 }
120
121 public static com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
122 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.shopping.NoSuchCouponException {
125 return getPersistence().findByGroupId_Last(groupId, obc);
126 }
127
128 public static com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
129 long couponId, long groupId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.shopping.NoSuchCouponException {
133 return getPersistence().findByGroupId_PrevAndNext(couponId, groupId, obc);
134 }
135
136 public static com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(
137 java.lang.String code)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portlet.shopping.NoSuchCouponException {
140 return getPersistence().findByCode(code);
141 }
142
143 public static com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
144 java.lang.String code) throws com.liferay.portal.SystemException {
145 return getPersistence().fetchByCode(code);
146 }
147
148 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findWithDynamicQuery(
149 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findWithDynamicQuery(queryInitializer);
152 }
153
154 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findWithDynamicQuery(
155 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
156 int begin, int end) throws com.liferay.portal.SystemException {
157 return getPersistence()
158 .findWithDynamicQuery(queryInitializer, begin, end);
159 }
160
161 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
162 throws com.liferay.portal.SystemException {
163 return getPersistence().findAll();
164 }
165
166 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
167 int begin, int end) throws com.liferay.portal.SystemException {
168 return getPersistence().findAll(begin, end);
169 }
170
171 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
172 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException {
174 return getPersistence().findAll(begin, end, obc);
175 }
176
177 public static void removeByGroupId(long groupId)
178 throws com.liferay.portal.SystemException {
179 getPersistence().removeByGroupId(groupId);
180 }
181
182 public static void removeByCode(java.lang.String code)
183 throws com.liferay.portal.SystemException,
184 com.liferay.portlet.shopping.NoSuchCouponException {
185 getPersistence().removeByCode(code);
186 }
187
188 public static void removeAll() throws com.liferay.portal.SystemException {
189 getPersistence().removeAll();
190 }
191
192 public static int countByGroupId(long groupId)
193 throws com.liferay.portal.SystemException {
194 return getPersistence().countByGroupId(groupId);
195 }
196
197 public static int countByCode(java.lang.String code)
198 throws com.liferay.portal.SystemException {
199 return getPersistence().countByCode(code);
200 }
201
202 public static int countAll() throws com.liferay.portal.SystemException {
203 return getPersistence().countAll();
204 }
205
206 public static ShoppingCouponPersistence getPersistence() {
207 return _getUtil()._persistence;
208 }
209
210 public void setPersistence(ShoppingCouponPersistence persistence) {
211 _persistence = persistence;
212 }
213
214 private static ShoppingCouponUtil _getUtil() {
215 if (_util == null) {
216 _util = (ShoppingCouponUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
217 }
218
219 return _util;
220 }
221
222 private static final String _UTIL = ShoppingCouponUtil.class.getName();
223 private static ShoppingCouponUtil _util;
224 private ShoppingCouponPersistence _persistence;
225 }