001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.service.persistence;
022:
023: /**
024: * <a href="JournalArticleImageUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class JournalArticleImageUtil {
030: public static com.liferay.portlet.journal.model.JournalArticleImage create(
031: long articleImageId) {
032: return getPersistence().create(articleImageId);
033: }
034:
035: public static com.liferay.portlet.journal.model.JournalArticleImage remove(
036: long articleImageId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portlet.journal.NoSuchArticleImageException {
039: return getPersistence().remove(articleImageId);
040: }
041:
042: public static com.liferay.portlet.journal.model.JournalArticleImage remove(
043: com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(journalArticleImage);
046: }
047:
048: public static com.liferay.portlet.journal.model.JournalArticleImage update(
049: com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(journalArticleImage);
052: }
053:
054: public static com.liferay.portlet.journal.model.JournalArticleImage update(
055: com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(journalArticleImage, merge);
058: }
059:
060: public static com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
061: com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(journalArticleImage, merge);
064: }
065:
066: public static com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
067: long articleImageId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portlet.journal.NoSuchArticleImageException {
070: return getPersistence().findByPrimaryKey(articleImageId);
071: }
072:
073: public static com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
074: long articleImageId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(articleImageId);
077: }
078:
079: public static java.util.List findByGroupId(long groupId)
080: throws com.liferay.portal.SystemException {
081: return getPersistence().findByGroupId(groupId);
082: }
083:
084: public static java.util.List findByGroupId(long groupId, int begin,
085: int end) throws com.liferay.portal.SystemException {
086: return getPersistence().findByGroupId(groupId, begin, end);
087: }
088:
089: public static java.util.List findByGroupId(long groupId, int begin,
090: int end,
091: com.liferay.portal.kernel.util.OrderByComparator obc)
092: throws com.liferay.portal.SystemException {
093: return getPersistence().findByGroupId(groupId, begin, end, obc);
094: }
095:
096: public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First(
097: long groupId,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portlet.journal.NoSuchArticleImageException {
101: return getPersistence().findByGroupId_First(groupId, obc);
102: }
103:
104: public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last(
105: long groupId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portlet.journal.NoSuchArticleImageException {
109: return getPersistence().findByGroupId_Last(groupId, obc);
110: }
111:
112: public static com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
113: long articleImageId, long groupId,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portlet.journal.NoSuchArticleImageException {
117: return getPersistence().findByGroupId_PrevAndNext(
118: articleImageId, groupId, obc);
119: }
120:
121: public static java.util.List findByTempImage(boolean tempImage)
122: throws com.liferay.portal.SystemException {
123: return getPersistence().findByTempImage(tempImage);
124: }
125:
126: public static java.util.List findByTempImage(boolean tempImage,
127: int begin, int end)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().findByTempImage(tempImage, begin, end);
130: }
131:
132: public static java.util.List findByTempImage(boolean tempImage,
133: int begin, int end,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException {
136: return getPersistence().findByTempImage(tempImage, begin, end,
137: obc);
138: }
139:
140: public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
141: boolean tempImage,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.journal.NoSuchArticleImageException {
145: return getPersistence().findByTempImage_First(tempImage, obc);
146: }
147:
148: public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last(
149: boolean tempImage,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.journal.NoSuchArticleImageException {
153: return getPersistence().findByTempImage_Last(tempImage, obc);
154: }
155:
156: public static com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
157: long articleImageId, boolean tempImage,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portlet.journal.NoSuchArticleImageException {
161: return getPersistence().findByTempImage_PrevAndNext(
162: articleImageId, tempImage, obc);
163: }
164:
165: public static java.util.List findByG_A_V(long groupId,
166: java.lang.String articleId, double version)
167: throws com.liferay.portal.SystemException {
168: return getPersistence()
169: .findByG_A_V(groupId, articleId, version);
170: }
171:
172: public static java.util.List findByG_A_V(long groupId,
173: java.lang.String articleId, double version, int begin,
174: int end) throws com.liferay.portal.SystemException {
175: return getPersistence().findByG_A_V(groupId, articleId,
176: version, begin, end);
177: }
178:
179: public static java.util.List findByG_A_V(long groupId,
180: java.lang.String articleId, double version, int begin,
181: int end,
182: com.liferay.portal.kernel.util.OrderByComparator obc)
183: throws com.liferay.portal.SystemException {
184: return getPersistence().findByG_A_V(groupId, articleId,
185: version, begin, end, obc);
186: }
187:
188: public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
189: long groupId, java.lang.String articleId, double version,
190: com.liferay.portal.kernel.util.OrderByComparator obc)
191: throws com.liferay.portal.SystemException,
192: com.liferay.portlet.journal.NoSuchArticleImageException {
193: return getPersistence().findByG_A_V_First(groupId, articleId,
194: version, obc);
195: }
196:
197: public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
198: long groupId, java.lang.String articleId, double version,
199: com.liferay.portal.kernel.util.OrderByComparator obc)
200: throws com.liferay.portal.SystemException,
201: com.liferay.portlet.journal.NoSuchArticleImageException {
202: return getPersistence().findByG_A_V_Last(groupId, articleId,
203: version, obc);
204: }
205:
206: public static com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
207: long articleImageId, long groupId,
208: java.lang.String articleId, double version,
209: com.liferay.portal.kernel.util.OrderByComparator obc)
210: throws com.liferay.portal.SystemException,
211: com.liferay.portlet.journal.NoSuchArticleImageException {
212: return getPersistence().findByG_A_V_PrevAndNext(articleImageId,
213: groupId, articleId, version, obc);
214: }
215:
216: public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_L(
217: long groupId, java.lang.String articleId, double version,
218: java.lang.String elName, java.lang.String languageId)
219: throws com.liferay.portal.SystemException,
220: com.liferay.portlet.journal.NoSuchArticleImageException {
221: return getPersistence().findByG_A_V_E_L(groupId, articleId,
222: version, elName, languageId);
223: }
224:
225: public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_L(
226: long groupId, java.lang.String articleId, double version,
227: java.lang.String elName, java.lang.String languageId)
228: throws com.liferay.portal.SystemException {
229: return getPersistence().fetchByG_A_V_E_L(groupId, articleId,
230: version, elName, languageId);
231: }
232:
233: public static java.util.List findWithDynamicQuery(
234: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
235: throws com.liferay.portal.SystemException {
236: return getPersistence().findWithDynamicQuery(queryInitializer);
237: }
238:
239: public static java.util.List findWithDynamicQuery(
240: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
241: int begin, int end)
242: throws com.liferay.portal.SystemException {
243: return getPersistence().findWithDynamicQuery(queryInitializer,
244: begin, end);
245: }
246:
247: public static java.util.List findAll()
248: throws com.liferay.portal.SystemException {
249: return getPersistence().findAll();
250: }
251:
252: public static java.util.List findAll(int begin, int end)
253: throws com.liferay.portal.SystemException {
254: return getPersistence().findAll(begin, end);
255: }
256:
257: public static java.util.List findAll(int begin, int end,
258: com.liferay.portal.kernel.util.OrderByComparator obc)
259: throws com.liferay.portal.SystemException {
260: return getPersistence().findAll(begin, end, obc);
261: }
262:
263: public static void removeByGroupId(long groupId)
264: throws com.liferay.portal.SystemException {
265: getPersistence().removeByGroupId(groupId);
266: }
267:
268: public static void removeByTempImage(boolean tempImage)
269: throws com.liferay.portal.SystemException {
270: getPersistence().removeByTempImage(tempImage);
271: }
272:
273: public static void removeByG_A_V(long groupId,
274: java.lang.String articleId, double version)
275: throws com.liferay.portal.SystemException {
276: getPersistence().removeByG_A_V(groupId, articleId, version);
277: }
278:
279: public static void removeByG_A_V_E_L(long groupId,
280: java.lang.String articleId, double version,
281: java.lang.String elName, java.lang.String languageId)
282: throws com.liferay.portal.SystemException,
283: com.liferay.portlet.journal.NoSuchArticleImageException {
284: getPersistence().removeByG_A_V_E_L(groupId, articleId, version,
285: elName, languageId);
286: }
287:
288: public static void removeAll()
289: throws com.liferay.portal.SystemException {
290: getPersistence().removeAll();
291: }
292:
293: public static int countByGroupId(long groupId)
294: throws com.liferay.portal.SystemException {
295: return getPersistence().countByGroupId(groupId);
296: }
297:
298: public static int countByTempImage(boolean tempImage)
299: throws com.liferay.portal.SystemException {
300: return getPersistence().countByTempImage(tempImage);
301: }
302:
303: public static int countByG_A_V(long groupId,
304: java.lang.String articleId, double version)
305: throws com.liferay.portal.SystemException {
306: return getPersistence().countByG_A_V(groupId, articleId,
307: version);
308: }
309:
310: public static int countByG_A_V_E_L(long groupId,
311: java.lang.String articleId, double version,
312: java.lang.String elName, java.lang.String languageId)
313: throws com.liferay.portal.SystemException {
314: return getPersistence().countByG_A_V_E_L(groupId, articleId,
315: version, elName, languageId);
316: }
317:
318: public static int countAll()
319: throws com.liferay.portal.SystemException {
320: return getPersistence().countAll();
321: }
322:
323: public static JournalArticleImagePersistence getPersistence() {
324: return _getUtil()._persistence;
325: }
326:
327: public void setPersistence(
328: JournalArticleImagePersistence persistence) {
329: _persistence = persistence;
330: }
331:
332: private static JournalArticleImageUtil _getUtil() {
333: if (_util == null) {
334: _util = (JournalArticleImageUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
335: .locate(_UTIL);
336: }
337:
338: return _util;
339: }
340:
341: private static final String _UTIL = JournalArticleImageUtil.class
342: .getName();
343: private static JournalArticleImageUtil _util;
344: private JournalArticleImagePersistence _persistence;
345: }
|