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 start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByGroupId(groupId, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
108 long groupId, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByGroupId(groupId, start, 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<Object> findWithDynamicQuery(
149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findWithDynamicQuery(dynamicQuery);
152 }
153
154 public static java.util.List<Object> findWithDynamicQuery(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
156 int end) throws com.liferay.portal.SystemException {
157 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
158 }
159
160 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
161 throws com.liferay.portal.SystemException {
162 return getPersistence().findAll();
163 }
164
165 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
166 int start, int end) throws com.liferay.portal.SystemException {
167 return getPersistence().findAll(start, end);
168 }
169
170 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
171 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.SystemException {
173 return getPersistence().findAll(start, end, obc);
174 }
175
176 public static void removeByGroupId(long groupId)
177 throws com.liferay.portal.SystemException {
178 getPersistence().removeByGroupId(groupId);
179 }
180
181 public static void removeByCode(java.lang.String code)
182 throws com.liferay.portal.SystemException,
183 com.liferay.portlet.shopping.NoSuchCouponException {
184 getPersistence().removeByCode(code);
185 }
186
187 public static void removeAll() throws com.liferay.portal.SystemException {
188 getPersistence().removeAll();
189 }
190
191 public static int countByGroupId(long groupId)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().countByGroupId(groupId);
194 }
195
196 public static int countByCode(java.lang.String code)
197 throws com.liferay.portal.SystemException {
198 return getPersistence().countByCode(code);
199 }
200
201 public static int countAll() throws com.liferay.portal.SystemException {
202 return getPersistence().countAll();
203 }
204
205 public static ShoppingCouponPersistence getPersistence() {
206 return _persistence;
207 }
208
209 public void setPersistence(ShoppingCouponPersistence persistence) {
210 _persistence = persistence;
211 }
212
213 private static ShoppingCouponPersistence _persistence;
214 }