1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class SubscriptionUtil {
32 public static com.liferay.portal.model.Subscription create(
33 long subscriptionId) {
34 return getPersistence().create(subscriptionId);
35 }
36
37 public static com.liferay.portal.model.Subscription remove(
38 long subscriptionId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portal.NoSuchSubscriptionException {
41 return getPersistence().remove(subscriptionId);
42 }
43
44 public static com.liferay.portal.model.Subscription remove(
45 com.liferay.portal.model.Subscription subscription)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(subscription);
48 }
49
50
53 public static com.liferay.portal.model.Subscription update(
54 com.liferay.portal.model.Subscription subscription)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(subscription);
57 }
58
59
72 public static com.liferay.portal.model.Subscription update(
73 com.liferay.portal.model.Subscription subscription, boolean merge)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(subscription, merge);
76 }
77
78 public static com.liferay.portal.model.Subscription updateImpl(
79 com.liferay.portal.model.Subscription subscription, boolean merge)
80 throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(subscription, merge);
82 }
83
84 public static com.liferay.portal.model.Subscription findByPrimaryKey(
85 long subscriptionId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portal.NoSuchSubscriptionException {
88 return getPersistence().findByPrimaryKey(subscriptionId);
89 }
90
91 public static com.liferay.portal.model.Subscription fetchByPrimaryKey(
92 long subscriptionId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(subscriptionId);
94 }
95
96 public static java.util.List<com.liferay.portal.model.Subscription> findByUserId(
97 long userId) throws com.liferay.portal.SystemException {
98 return getPersistence().findByUserId(userId);
99 }
100
101 public static java.util.List<com.liferay.portal.model.Subscription> findByUserId(
102 long userId, int begin, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUserId(userId, begin, end);
105 }
106
107 public static java.util.List<com.liferay.portal.model.Subscription> findByUserId(
108 long userId, int begin, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUserId(userId, begin, end, obc);
112 }
113
114 public static com.liferay.portal.model.Subscription findByUserId_First(
115 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portal.NoSuchSubscriptionException {
118 return getPersistence().findByUserId_First(userId, obc);
119 }
120
121 public static com.liferay.portal.model.Subscription findByUserId_Last(
122 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portal.NoSuchSubscriptionException {
125 return getPersistence().findByUserId_Last(userId, obc);
126 }
127
128 public static com.liferay.portal.model.Subscription[] findByUserId_PrevAndNext(
129 long subscriptionId, long userId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portal.NoSuchSubscriptionException {
133 return getPersistence()
134 .findByUserId_PrevAndNext(subscriptionId, userId, obc);
135 }
136
137 public static java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
138 long companyId, long classNameId, long classPK)
139 throws com.liferay.portal.SystemException {
140 return getPersistence().findByC_C_C(companyId, classNameId, classPK);
141 }
142
143 public static java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
144 long companyId, long classNameId, long classPK, int begin, int end)
145 throws com.liferay.portal.SystemException {
146 return getPersistence()
147 .findByC_C_C(companyId, classNameId, classPK, begin, end);
148 }
149
150 public static java.util.List<com.liferay.portal.model.Subscription> findByC_C_C(
151 long companyId, long classNameId, long classPK, int begin, int end,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException {
154 return getPersistence()
155 .findByC_C_C(companyId, classNameId, classPK, begin, end, obc);
156 }
157
158 public static com.liferay.portal.model.Subscription findByC_C_C_First(
159 long companyId, long classNameId, long classPK,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portal.NoSuchSubscriptionException {
163 return getPersistence()
164 .findByC_C_C_First(companyId, classNameId, classPK, obc);
165 }
166
167 public static com.liferay.portal.model.Subscription findByC_C_C_Last(
168 long companyId, long classNameId, long classPK,
169 com.liferay.portal.kernel.util.OrderByComparator obc)
170 throws com.liferay.portal.SystemException,
171 com.liferay.portal.NoSuchSubscriptionException {
172 return getPersistence()
173 .findByC_C_C_Last(companyId, classNameId, classPK, obc);
174 }
175
176 public static com.liferay.portal.model.Subscription[] findByC_C_C_PrevAndNext(
177 long subscriptionId, long companyId, long classNameId, long classPK,
178 com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.SystemException,
180 com.liferay.portal.NoSuchSubscriptionException {
181 return getPersistence()
182 .findByC_C_C_PrevAndNext(subscriptionId, companyId,
183 classNameId, classPK, obc);
184 }
185
186 public static com.liferay.portal.model.Subscription findByC_U_C_C(
187 long companyId, long userId, long classNameId, long classPK)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portal.NoSuchSubscriptionException {
190 return getPersistence()
191 .findByC_U_C_C(companyId, userId, classNameId, classPK);
192 }
193
194 public static com.liferay.portal.model.Subscription fetchByC_U_C_C(
195 long companyId, long userId, long classNameId, long classPK)
196 throws com.liferay.portal.SystemException {
197 return getPersistence()
198 .fetchByC_U_C_C(companyId, userId, classNameId, classPK);
199 }
200
201 public static java.util.List<com.liferay.portal.model.Subscription> findWithDynamicQuery(
202 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
203 throws com.liferay.portal.SystemException {
204 return getPersistence().findWithDynamicQuery(queryInitializer);
205 }
206
207 public static java.util.List<com.liferay.portal.model.Subscription> findWithDynamicQuery(
208 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
209 int begin, int end) throws com.liferay.portal.SystemException {
210 return getPersistence()
211 .findWithDynamicQuery(queryInitializer, begin, end);
212 }
213
214 public static java.util.List<com.liferay.portal.model.Subscription> findAll()
215 throws com.liferay.portal.SystemException {
216 return getPersistence().findAll();
217 }
218
219 public static java.util.List<com.liferay.portal.model.Subscription> findAll(
220 int begin, int end) throws com.liferay.portal.SystemException {
221 return getPersistence().findAll(begin, end);
222 }
223
224 public static java.util.List<com.liferay.portal.model.Subscription> findAll(
225 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
226 throws com.liferay.portal.SystemException {
227 return getPersistence().findAll(begin, end, obc);
228 }
229
230 public static void removeByUserId(long userId)
231 throws com.liferay.portal.SystemException {
232 getPersistence().removeByUserId(userId);
233 }
234
235 public static void removeByC_C_C(long companyId, long classNameId,
236 long classPK) throws com.liferay.portal.SystemException {
237 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
238 }
239
240 public static void removeByC_U_C_C(long companyId, long userId,
241 long classNameId, long classPK)
242 throws com.liferay.portal.SystemException,
243 com.liferay.portal.NoSuchSubscriptionException {
244 getPersistence().removeByC_U_C_C(companyId, userId, classNameId, classPK);
245 }
246
247 public static void removeAll() throws com.liferay.portal.SystemException {
248 getPersistence().removeAll();
249 }
250
251 public static int countByUserId(long userId)
252 throws com.liferay.portal.SystemException {
253 return getPersistence().countByUserId(userId);
254 }
255
256 public static int countByC_C_C(long companyId, long classNameId,
257 long classPK) throws com.liferay.portal.SystemException {
258 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
259 }
260
261 public static int countByC_U_C_C(long companyId, long userId,
262 long classNameId, long classPK)
263 throws com.liferay.portal.SystemException {
264 return getPersistence()
265 .countByC_U_C_C(companyId, userId, classNameId, classPK);
266 }
267
268 public static int countAll() throws com.liferay.portal.SystemException {
269 return getPersistence().countAll();
270 }
271
272 public static SubscriptionPersistence getPersistence() {
273 return _getUtil()._persistence;
274 }
275
276 public void setPersistence(SubscriptionPersistence persistence) {
277 _persistence = persistence;
278 }
279
280 private static SubscriptionUtil _getUtil() {
281 if (_util == null) {
282 _util = (SubscriptionUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
283 }
284
285 return _util;
286 }
287
288 private static final String _UTIL = SubscriptionUtil.class.getName();
289 private static SubscriptionUtil _util;
290 private SubscriptionPersistence _persistence;
291 }