1
19
20 package com.liferay.portlet.journal.service.persistence;
21
22
28 public class JournalArticleImageUtil {
29 public static void cacheResult(
30 com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
31 getPersistence().cacheResult(journalArticleImage);
32 }
33
34 public static void cacheResult(
35 java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> journalArticleImages) {
36 getPersistence().cacheResult(journalArticleImages);
37 }
38
39 public static void clearCache() {
40 getPersistence().clearCache();
41 }
42
43 public static com.liferay.portlet.journal.model.JournalArticleImage create(
44 long articleImageId) {
45 return getPersistence().create(articleImageId);
46 }
47
48 public static com.liferay.portlet.journal.model.JournalArticleImage remove(
49 long articleImageId)
50 throws com.liferay.portal.SystemException,
51 com.liferay.portlet.journal.NoSuchArticleImageException {
52 return getPersistence().remove(articleImageId);
53 }
54
55 public static com.liferay.portlet.journal.model.JournalArticleImage remove(
56 com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(journalArticleImage);
59 }
60
61
64 public static com.liferay.portlet.journal.model.JournalArticleImage update(
65 com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(journalArticleImage);
68 }
69
70
83 public static com.liferay.portlet.journal.model.JournalArticleImage update(
84 com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
85 boolean merge) throws com.liferay.portal.SystemException {
86 return getPersistence().update(journalArticleImage, merge);
87 }
88
89 public static com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
90 com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
91 boolean merge) throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(journalArticleImage, merge);
93 }
94
95 public static com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
96 long articleImageId)
97 throws com.liferay.portal.SystemException,
98 com.liferay.portlet.journal.NoSuchArticleImageException {
99 return getPersistence().findByPrimaryKey(articleImageId);
100 }
101
102 public static com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
103 long articleImageId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(articleImageId);
105 }
106
107 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
108 long groupId) throws com.liferay.portal.SystemException {
109 return getPersistence().findByGroupId(groupId);
110 }
111
112 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
113 long groupId, int start, int end)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().findByGroupId(groupId, start, end);
116 }
117
118 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
119 long groupId, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByGroupId(groupId, start, end, obc);
123 }
124
125 public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First(
126 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.journal.NoSuchArticleImageException {
129 return getPersistence().findByGroupId_First(groupId, obc);
130 }
131
132 public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last(
133 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.journal.NoSuchArticleImageException {
136 return getPersistence().findByGroupId_Last(groupId, obc);
137 }
138
139 public static com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
140 long articleImageId, long groupId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.journal.NoSuchArticleImageException {
144 return getPersistence()
145 .findByGroupId_PrevAndNext(articleImageId, groupId, obc);
146 }
147
148 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
149 boolean tempImage) throws com.liferay.portal.SystemException {
150 return getPersistence().findByTempImage(tempImage);
151 }
152
153 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
154 boolean tempImage, int start, int end)
155 throws com.liferay.portal.SystemException {
156 return getPersistence().findByTempImage(tempImage, start, end);
157 }
158
159 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
160 boolean tempImage, int start, int end,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException {
163 return getPersistence().findByTempImage(tempImage, start, end, obc);
164 }
165
166 public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
167 boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.SystemException,
169 com.liferay.portlet.journal.NoSuchArticleImageException {
170 return getPersistence().findByTempImage_First(tempImage, obc);
171 }
172
173 public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last(
174 boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator obc)
175 throws com.liferay.portal.SystemException,
176 com.liferay.portlet.journal.NoSuchArticleImageException {
177 return getPersistence().findByTempImage_Last(tempImage, obc);
178 }
179
180 public static com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
181 long articleImageId, boolean tempImage,
182 com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.SystemException,
184 com.liferay.portlet.journal.NoSuchArticleImageException {
185 return getPersistence()
186 .findByTempImage_PrevAndNext(articleImageId, tempImage, obc);
187 }
188
189 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
190 long groupId, java.lang.String articleId, double version)
191 throws com.liferay.portal.SystemException {
192 return getPersistence().findByG_A_V(groupId, articleId, version);
193 }
194
195 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
196 long groupId, java.lang.String articleId, double version, int start,
197 int end) throws com.liferay.portal.SystemException {
198 return getPersistence()
199 .findByG_A_V(groupId, articleId, version, start, end);
200 }
201
202 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
203 long groupId, java.lang.String articleId, double version, int start,
204 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.SystemException {
206 return getPersistence()
207 .findByG_A_V(groupId, articleId, version, start, end, obc);
208 }
209
210 public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
211 long groupId, java.lang.String articleId, double version,
212 com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException,
214 com.liferay.portlet.journal.NoSuchArticleImageException {
215 return getPersistence()
216 .findByG_A_V_First(groupId, articleId, version, obc);
217 }
218
219 public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
220 long groupId, java.lang.String articleId, double version,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.journal.NoSuchArticleImageException {
224 return getPersistence()
225 .findByG_A_V_Last(groupId, articleId, version, obc);
226 }
227
228 public static com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
229 long articleImageId, long groupId, java.lang.String articleId,
230 double version, com.liferay.portal.kernel.util.OrderByComparator obc)
231 throws com.liferay.portal.SystemException,
232 com.liferay.portlet.journal.NoSuchArticleImageException {
233 return getPersistence()
234 .findByG_A_V_PrevAndNext(articleImageId, groupId, articleId,
235 version, obc);
236 }
237
238 public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_E_L(
239 long groupId, java.lang.String articleId, double version,
240 java.lang.String elInstanceId, java.lang.String elName,
241 java.lang.String languageId)
242 throws com.liferay.portal.SystemException,
243 com.liferay.portlet.journal.NoSuchArticleImageException {
244 return getPersistence()
245 .findByG_A_V_E_E_L(groupId, articleId, version,
246 elInstanceId, elName, languageId);
247 }
248
249 public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
250 long groupId, java.lang.String articleId, double version,
251 java.lang.String elInstanceId, java.lang.String elName,
252 java.lang.String languageId) throws com.liferay.portal.SystemException {
253 return getPersistence()
254 .fetchByG_A_V_E_E_L(groupId, articleId, version,
255 elInstanceId, elName, languageId);
256 }
257
258 public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
259 long groupId, java.lang.String articleId, double version,
260 java.lang.String elInstanceId, java.lang.String elName,
261 java.lang.String languageId, boolean retrieveFromCache)
262 throws com.liferay.portal.SystemException {
263 return getPersistence()
264 .fetchByG_A_V_E_E_L(groupId, articleId, version,
265 elInstanceId, elName, languageId, retrieveFromCache);
266 }
267
268 public static java.util.List<Object> findWithDynamicQuery(
269 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
270 throws com.liferay.portal.SystemException {
271 return getPersistence().findWithDynamicQuery(dynamicQuery);
272 }
273
274 public static java.util.List<Object> findWithDynamicQuery(
275 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
276 int end) throws com.liferay.portal.SystemException {
277 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
278 }
279
280 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll()
281 throws com.liferay.portal.SystemException {
282 return getPersistence().findAll();
283 }
284
285 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
286 int start, int end) throws com.liferay.portal.SystemException {
287 return getPersistence().findAll(start, end);
288 }
289
290 public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
291 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
292 throws com.liferay.portal.SystemException {
293 return getPersistence().findAll(start, end, obc);
294 }
295
296 public static void removeByGroupId(long groupId)
297 throws com.liferay.portal.SystemException {
298 getPersistence().removeByGroupId(groupId);
299 }
300
301 public static void removeByTempImage(boolean tempImage)
302 throws com.liferay.portal.SystemException {
303 getPersistence().removeByTempImage(tempImage);
304 }
305
306 public static void removeByG_A_V(long groupId, java.lang.String articleId,
307 double version) throws com.liferay.portal.SystemException {
308 getPersistence().removeByG_A_V(groupId, articleId, version);
309 }
310
311 public static void removeByG_A_V_E_E_L(long groupId,
312 java.lang.String articleId, double version,
313 java.lang.String elInstanceId, java.lang.String elName,
314 java.lang.String languageId)
315 throws com.liferay.portal.SystemException,
316 com.liferay.portlet.journal.NoSuchArticleImageException {
317 getPersistence()
318 .removeByG_A_V_E_E_L(groupId, articleId, version, elInstanceId,
319 elName, languageId);
320 }
321
322 public static void removeAll() throws com.liferay.portal.SystemException {
323 getPersistence().removeAll();
324 }
325
326 public static int countByGroupId(long groupId)
327 throws com.liferay.portal.SystemException {
328 return getPersistence().countByGroupId(groupId);
329 }
330
331 public static int countByTempImage(boolean tempImage)
332 throws com.liferay.portal.SystemException {
333 return getPersistence().countByTempImage(tempImage);
334 }
335
336 public static int countByG_A_V(long groupId, java.lang.String articleId,
337 double version) throws com.liferay.portal.SystemException {
338 return getPersistence().countByG_A_V(groupId, articleId, version);
339 }
340
341 public static int countByG_A_V_E_E_L(long groupId,
342 java.lang.String articleId, double version,
343 java.lang.String elInstanceId, java.lang.String elName,
344 java.lang.String languageId) throws com.liferay.portal.SystemException {
345 return getPersistence()
346 .countByG_A_V_E_E_L(groupId, articleId, version,
347 elInstanceId, elName, languageId);
348 }
349
350 public static int countAll() throws com.liferay.portal.SystemException {
351 return getPersistence().countAll();
352 }
353
354 public static JournalArticleImagePersistence getPersistence() {
355 return _persistence;
356 }
357
358 public void setPersistence(JournalArticleImagePersistence persistence) {
359 _persistence = persistence;
360 }
361
362 private static JournalArticleImagePersistence _persistence;
363 }