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