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 obc)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
138 throws com.liferay.portal.kernel.exception.SystemException,
139 com.liferay.portlet.journal.NoSuchFeedException {
140 return getPersistence().findByUuid_First(uuid, obc);
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 obc)
146 throws com.liferay.portal.kernel.exception.SystemException,
147 com.liferay.portlet.journal.NoSuchFeedException {
148 return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
154 throws com.liferay.portal.kernel.exception.SystemException,
155 com.liferay.portlet.journal.NoSuchFeedException {
156 return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
157 }
158
159 public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
160 java.lang.String uuid, long groupId)
161 throws com.liferay.portal.kernel.exception.SystemException,
162 com.liferay.portlet.journal.NoSuchFeedException {
163 return getPersistence().findByUUID_G(uuid, groupId);
164 }
165
166 public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
167 java.lang.String uuid, long groupId)
168 throws com.liferay.portal.kernel.exception.SystemException {
169 return getPersistence().fetchByUUID_G(uuid, groupId);
170 }
171
172 public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
173 java.lang.String uuid, long groupId, boolean retrieveFromCache)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
176 }
177
178 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
179 long groupId)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence().findByGroupId(groupId);
182 }
183
184 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
185 long groupId, int start, int end)
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getPersistence().findByGroupId(groupId, start, end);
188 }
189
190 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
191 long groupId, int start, int end,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().findByGroupId(groupId, start, end, obc);
195 }
196
197 public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
198 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.kernel.exception.SystemException,
200 com.liferay.portlet.journal.NoSuchFeedException {
201 return getPersistence().findByGroupId_First(groupId, obc);
202 }
203
204 public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
205 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.kernel.exception.SystemException,
207 com.liferay.portlet.journal.NoSuchFeedException {
208 return getPersistence().findByGroupId_Last(groupId, obc);
209 }
210
211 public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
212 long id, long groupId,
213 com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.kernel.exception.SystemException,
215 com.liferay.portlet.journal.NoSuchFeedException {
216 return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
217 }
218
219 public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
220 long groupId, java.lang.String feedId)
221 throws com.liferay.portal.kernel.exception.SystemException,
222 com.liferay.portlet.journal.NoSuchFeedException {
223 return getPersistence().findByG_F(groupId, feedId);
224 }
225
226 public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
227 long groupId, java.lang.String feedId)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence().fetchByG_F(groupId, feedId);
230 }
231
232 public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
233 long groupId, java.lang.String feedId, boolean retrieveFromCache)
234 throws com.liferay.portal.kernel.exception.SystemException {
235 return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache);
236 }
237
238 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getPersistence().findAll();
241 }
242
243 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
244 int start, int end)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getPersistence().findAll(start, end);
247 }
248
249 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
250 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().findAll(start, end, obc);
253 }
254
255 public static void removeByUuid(java.lang.String uuid)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 getPersistence().removeByUuid(uuid);
258 }
259
260 public static void removeByUUID_G(java.lang.String uuid, long groupId)
261 throws com.liferay.portal.kernel.exception.SystemException,
262 com.liferay.portlet.journal.NoSuchFeedException {
263 getPersistence().removeByUUID_G(uuid, groupId);
264 }
265
266 public static void removeByGroupId(long groupId)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 getPersistence().removeByGroupId(groupId);
269 }
270
271 public static void removeByG_F(long groupId, java.lang.String feedId)
272 throws com.liferay.portal.kernel.exception.SystemException,
273 com.liferay.portlet.journal.NoSuchFeedException {
274 getPersistence().removeByG_F(groupId, feedId);
275 }
276
277 public static void removeAll()
278 throws com.liferay.portal.kernel.exception.SystemException {
279 getPersistence().removeAll();
280 }
281
282 public static int countByUuid(java.lang.String uuid)
283 throws com.liferay.portal.kernel.exception.SystemException {
284 return getPersistence().countByUuid(uuid);
285 }
286
287 public static int countByUUID_G(java.lang.String uuid, long groupId)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 return getPersistence().countByUUID_G(uuid, groupId);
290 }
291
292 public static int countByGroupId(long groupId)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 return getPersistence().countByGroupId(groupId);
295 }
296
297 public static int countByG_F(long groupId, java.lang.String feedId)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getPersistence().countByG_F(groupId, feedId);
300 }
301
302 public static int countAll()
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getPersistence().countAll();
305 }
306
307 public static JournalFeedPersistence getPersistence() {
308 if (_persistence == null) {
309 _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName());
310 }
311
312 return _persistence;
313 }
314
315 public void setPersistence(JournalFeedPersistence persistence) {
316 _persistence = persistence;
317 }
318
319 private static JournalFeedPersistence _persistence;
320 }