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