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