1
22
23 package com.liferay.portlet.journal.service.persistence;
24
25 import com.liferay.portal.SystemException;
26 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28
29 import com.liferay.portlet.journal.model.JournalFeed;
30
31 import java.util.List;
32
33
46 public class JournalFeedUtil {
47
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66 int start, int end) throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68 }
69
70
73 public static JournalFeed remove(JournalFeed journalFeed)
74 throws SystemException {
75 return getPersistence().remove(journalFeed);
76 }
77
78
81 public static JournalFeed update(JournalFeed journalFeed, boolean merge)
82 throws SystemException {
83 return getPersistence().update(journalFeed, merge);
84 }
85
86 public static void cacheResult(
87 com.liferay.portlet.journal.model.JournalFeed journalFeed) {
88 getPersistence().cacheResult(journalFeed);
89 }
90
91 public static void cacheResult(
92 java.util.List<com.liferay.portlet.journal.model.JournalFeed> journalFeeds) {
93 getPersistence().cacheResult(journalFeeds);
94 }
95
96 public static com.liferay.portlet.journal.model.JournalFeed create(long id) {
97 return getPersistence().create(id);
98 }
99
100 public static com.liferay.portlet.journal.model.JournalFeed remove(long id)
101 throws com.liferay.portal.SystemException,
102 com.liferay.portlet.journal.NoSuchFeedException {
103 return getPersistence().remove(id);
104 }
105
106
109 public static com.liferay.portlet.journal.model.JournalFeed update(
110 com.liferay.portlet.journal.model.JournalFeed journalFeed)
111 throws com.liferay.portal.SystemException {
112 return getPersistence().update(journalFeed);
113 }
114
115 public static com.liferay.portlet.journal.model.JournalFeed updateImpl(
116 com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
117 throws com.liferay.portal.SystemException {
118 return getPersistence().updateImpl(journalFeed, merge);
119 }
120
121 public static com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
122 long id)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.journal.NoSuchFeedException {
125 return getPersistence().findByPrimaryKey(id);
126 }
127
128 public static com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
129 long id) throws com.liferay.portal.SystemException {
130 return getPersistence().fetchByPrimaryKey(id);
131 }
132
133 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
134 java.lang.String uuid) throws com.liferay.portal.SystemException {
135 return getPersistence().findByUuid(uuid);
136 }
137
138 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
139 java.lang.String uuid, int start, int end)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().findByUuid(uuid, start, end);
142 }
143
144 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
145 java.lang.String uuid, int start, int end,
146 com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.SystemException {
148 return getPersistence().findByUuid(uuid, start, end, obc);
149 }
150
151 public static com.liferay.portlet.journal.model.JournalFeed findByUuid_First(
152 java.lang.String uuid,
153 com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.journal.NoSuchFeedException {
156 return getPersistence().findByUuid_First(uuid, obc);
157 }
158
159 public static com.liferay.portlet.journal.model.JournalFeed findByUuid_Last(
160 java.lang.String uuid,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portlet.journal.NoSuchFeedException {
164 return getPersistence().findByUuid_Last(uuid, obc);
165 }
166
167 public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
168 long id, java.lang.String uuid,
169 com.liferay.portal.kernel.util.OrderByComparator obc)
170 throws com.liferay.portal.SystemException,
171 com.liferay.portlet.journal.NoSuchFeedException {
172 return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
173 }
174
175 public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
176 java.lang.String uuid, long groupId)
177 throws com.liferay.portal.SystemException,
178 com.liferay.portlet.journal.NoSuchFeedException {
179 return getPersistence().findByUUID_G(uuid, groupId);
180 }
181
182 public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
183 java.lang.String uuid, long groupId)
184 throws com.liferay.portal.SystemException {
185 return getPersistence().fetchByUUID_G(uuid, groupId);
186 }
187
188 public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
189 java.lang.String uuid, long groupId, boolean retrieveFromCache)
190 throws com.liferay.portal.SystemException {
191 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
192 }
193
194 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
195 long groupId) throws com.liferay.portal.SystemException {
196 return getPersistence().findByGroupId(groupId);
197 }
198
199 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
200 long groupId, int start, int end)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().findByGroupId(groupId, start, end);
203 }
204
205 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
206 long groupId, int start, int end,
207 com.liferay.portal.kernel.util.OrderByComparator obc)
208 throws com.liferay.portal.SystemException {
209 return getPersistence().findByGroupId(groupId, start, end, obc);
210 }
211
212 public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
213 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.journal.NoSuchFeedException {
216 return getPersistence().findByGroupId_First(groupId, obc);
217 }
218
219 public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
220 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.SystemException,
222 com.liferay.portlet.journal.NoSuchFeedException {
223 return getPersistence().findByGroupId_Last(groupId, obc);
224 }
225
226 public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
227 long id, long groupId,
228 com.liferay.portal.kernel.util.OrderByComparator obc)
229 throws com.liferay.portal.SystemException,
230 com.liferay.portlet.journal.NoSuchFeedException {
231 return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
232 }
233
234 public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
235 long groupId, java.lang.String feedId)
236 throws com.liferay.portal.SystemException,
237 com.liferay.portlet.journal.NoSuchFeedException {
238 return getPersistence().findByG_F(groupId, feedId);
239 }
240
241 public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
242 long groupId, java.lang.String feedId)
243 throws com.liferay.portal.SystemException {
244 return getPersistence().fetchByG_F(groupId, feedId);
245 }
246
247 public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
248 long groupId, java.lang.String feedId, boolean retrieveFromCache)
249 throws com.liferay.portal.SystemException {
250 return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache);
251 }
252
253 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
254 throws com.liferay.portal.SystemException {
255 return getPersistence().findAll();
256 }
257
258 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
259 int start, int end) throws com.liferay.portal.SystemException {
260 return getPersistence().findAll(start, end);
261 }
262
263 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
264 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
265 throws com.liferay.portal.SystemException {
266 return getPersistence().findAll(start, end, obc);
267 }
268
269 public static void removeByUuid(java.lang.String uuid)
270 throws com.liferay.portal.SystemException {
271 getPersistence().removeByUuid(uuid);
272 }
273
274 public static void removeByUUID_G(java.lang.String uuid, long groupId)
275 throws com.liferay.portal.SystemException,
276 com.liferay.portlet.journal.NoSuchFeedException {
277 getPersistence().removeByUUID_G(uuid, groupId);
278 }
279
280 public static void removeByGroupId(long groupId)
281 throws com.liferay.portal.SystemException {
282 getPersistence().removeByGroupId(groupId);
283 }
284
285 public static void removeByG_F(long groupId, java.lang.String feedId)
286 throws com.liferay.portal.SystemException,
287 com.liferay.portlet.journal.NoSuchFeedException {
288 getPersistence().removeByG_F(groupId, feedId);
289 }
290
291 public static void removeAll() throws com.liferay.portal.SystemException {
292 getPersistence().removeAll();
293 }
294
295 public static int countByUuid(java.lang.String uuid)
296 throws com.liferay.portal.SystemException {
297 return getPersistence().countByUuid(uuid);
298 }
299
300 public static int countByUUID_G(java.lang.String uuid, long groupId)
301 throws com.liferay.portal.SystemException {
302 return getPersistence().countByUUID_G(uuid, groupId);
303 }
304
305 public static int countByGroupId(long groupId)
306 throws com.liferay.portal.SystemException {
307 return getPersistence().countByGroupId(groupId);
308 }
309
310 public static int countByG_F(long groupId, java.lang.String feedId)
311 throws com.liferay.portal.SystemException {
312 return getPersistence().countByG_F(groupId, feedId);
313 }
314
315 public static int countAll() throws com.liferay.portal.SystemException {
316 return getPersistence().countAll();
317 }
318
319 public static JournalFeedPersistence getPersistence() {
320 if (_persistence == null) {
321 _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName());
322 }
323
324 return _persistence;
325 }
326
327 public void setPersistence(JournalFeedPersistence persistence) {
328 _persistence = persistence;
329 }
330
331 private static JournalFeedPersistence _persistence;
332 }