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.NoSuchSubscriptionException,
40 com.liferay.portal.SystemException {
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.NoSuchSubscriptionException,
87 com.liferay.portal.SystemException {
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 start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUserId(userId, start, end);
105 }
106
107 public static java.util.List<com.liferay.portal.model.Subscription> findByUserId(
108 long userId, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUserId(userId, start, 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.NoSuchSubscriptionException,
117 com.liferay.portal.SystemException {
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.NoSuchSubscriptionException,
124 com.liferay.portal.SystemException {
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.NoSuchSubscriptionException,
132 com.liferay.portal.SystemException {
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 start, int end)
145 throws com.liferay.portal.SystemException {
146 return getPersistence()
147 .findByC_C_C(companyId, classNameId, classPK, start, 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 start, 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, start, 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.NoSuchSubscriptionException,
162 com.liferay.portal.SystemException {
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.NoSuchSubscriptionException,
171 com.liferay.portal.SystemException {
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.NoSuchSubscriptionException,
180 com.liferay.portal.SystemException {
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.NoSuchSubscriptionException,
189 com.liferay.portal.SystemException {
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<Object> findWithDynamicQuery(
202 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
203 throws com.liferay.portal.SystemException {
204 return getPersistence().findWithDynamicQuery(dynamicQuery);
205 }
206
207 public static java.util.List<Object> findWithDynamicQuery(
208 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
209 int end) throws com.liferay.portal.SystemException {
210 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
211 }
212
213 public static java.util.List<com.liferay.portal.model.Subscription> findAll()
214 throws com.liferay.portal.SystemException {
215 return getPersistence().findAll();
216 }
217
218 public static java.util.List<com.liferay.portal.model.Subscription> findAll(
219 int start, int end) throws com.liferay.portal.SystemException {
220 return getPersistence().findAll(start, end);
221 }
222
223 public static java.util.List<com.liferay.portal.model.Subscription> findAll(
224 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
225 throws com.liferay.portal.SystemException {
226 return getPersistence().findAll(start, end, obc);
227 }
228
229 public static void removeByUserId(long userId)
230 throws com.liferay.portal.SystemException {
231 getPersistence().removeByUserId(userId);
232 }
233
234 public static void removeByC_C_C(long companyId, long classNameId,
235 long classPK) throws com.liferay.portal.SystemException {
236 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
237 }
238
239 public static void removeByC_U_C_C(long companyId, long userId,
240 long classNameId, long classPK)
241 throws com.liferay.portal.NoSuchSubscriptionException,
242 com.liferay.portal.SystemException {
243 getPersistence().removeByC_U_C_C(companyId, userId, classNameId, classPK);
244 }
245
246 public static void removeAll() throws com.liferay.portal.SystemException {
247 getPersistence().removeAll();
248 }
249
250 public static int countByUserId(long userId)
251 throws com.liferay.portal.SystemException {
252 return getPersistence().countByUserId(userId);
253 }
254
255 public static int countByC_C_C(long companyId, long classNameId,
256 long classPK) throws com.liferay.portal.SystemException {
257 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
258 }
259
260 public static int countByC_U_C_C(long companyId, long userId,
261 long classNameId, long classPK)
262 throws com.liferay.portal.SystemException {
263 return getPersistence()
264 .countByC_U_C_C(companyId, userId, classNameId, classPK);
265 }
266
267 public static int countAll() throws com.liferay.portal.SystemException {
268 return getPersistence().countAll();
269 }
270
271 public static SubscriptionPersistence getPersistence() {
272 return _persistence;
273 }
274
275 public void setPersistence(SubscriptionPersistence persistence) {
276 _persistence = persistence;
277 }
278
279 private static SubscriptionPersistence _persistence;
280 }