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="JournalArticlePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface JournalArticlePersistence {
030: public com.liferay.portlet.journal.model.JournalArticle create(
031: long id);
032:
033: public com.liferay.portlet.journal.model.JournalArticle remove(
034: long id) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.journal.NoSuchArticleException;
036:
037: public com.liferay.portlet.journal.model.JournalArticle remove(
038: com.liferay.portlet.journal.model.JournalArticle journalArticle)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.journal.model.JournalArticle update(
042: com.liferay.portlet.journal.model.JournalArticle journalArticle)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.journal.model.JournalArticle update(
046: com.liferay.portlet.journal.model.JournalArticle journalArticle,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.journal.model.JournalArticle updateImpl(
050: com.liferay.portlet.journal.model.JournalArticle journalArticle,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
054: long id) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.journal.NoSuchArticleException;
056:
057: public com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
058: long id) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByUuid(java.lang.String uuid)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByUuid(java.lang.String uuid, int begin,
064: int end) throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByUuid(java.lang.String uuid, int begin,
067: int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
072: java.lang.String uuid,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portlet.journal.NoSuchArticleException;
076:
077: public com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
078: java.lang.String uuid,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portlet.journal.NoSuchArticleException;
082:
083: public com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
084: long id, java.lang.String uuid,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portlet.journal.NoSuchArticleException;
088:
089: public com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
090: java.lang.String uuid, long groupId)
091: throws com.liferay.portal.SystemException,
092: com.liferay.portlet.journal.NoSuchArticleException;
093:
094: public com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
095: java.lang.String uuid, long groupId)
096: throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByGroupId(long groupId)
099: throws com.liferay.portal.SystemException;
100:
101: public java.util.List findByGroupId(long groupId, int begin, int end)
102: throws com.liferay.portal.SystemException;
103:
104: public java.util.List findByGroupId(long groupId, int begin,
105: int end,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException;
108:
109: public com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
110: long groupId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.journal.NoSuchArticleException;
114:
115: public com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
116: long groupId,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portlet.journal.NoSuchArticleException;
120:
121: public com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
122: long id, long groupId,
123: com.liferay.portal.kernel.util.OrderByComparator obc)
124: throws com.liferay.portal.SystemException,
125: com.liferay.portlet.journal.NoSuchArticleException;
126:
127: public java.util.List findByCompanyId(long companyId)
128: throws com.liferay.portal.SystemException;
129:
130: public java.util.List findByCompanyId(long companyId, int begin,
131: int end) throws com.liferay.portal.SystemException;
132:
133: public java.util.List findByCompanyId(long companyId, int begin,
134: int end,
135: com.liferay.portal.kernel.util.OrderByComparator obc)
136: throws com.liferay.portal.SystemException;
137:
138: public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
139: long companyId,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portlet.journal.NoSuchArticleException;
143:
144: public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
145: long companyId,
146: com.liferay.portal.kernel.util.OrderByComparator obc)
147: throws com.liferay.portal.SystemException,
148: com.liferay.portlet.journal.NoSuchArticleException;
149:
150: public com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
151: long id, long companyId,
152: com.liferay.portal.kernel.util.OrderByComparator obc)
153: throws com.liferay.portal.SystemException,
154: com.liferay.portlet.journal.NoSuchArticleException;
155:
156: public java.util.List findBySmallImageId(long smallImageId)
157: throws com.liferay.portal.SystemException;
158:
159: public java.util.List findBySmallImageId(long smallImageId,
160: int begin, int end)
161: throws com.liferay.portal.SystemException;
162:
163: public java.util.List findBySmallImageId(long smallImageId,
164: int begin, int end,
165: com.liferay.portal.kernel.util.OrderByComparator obc)
166: throws com.liferay.portal.SystemException;
167:
168: public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
169: long smallImageId,
170: com.liferay.portal.kernel.util.OrderByComparator obc)
171: throws com.liferay.portal.SystemException,
172: com.liferay.portlet.journal.NoSuchArticleException;
173:
174: public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
175: long smallImageId,
176: com.liferay.portal.kernel.util.OrderByComparator obc)
177: throws com.liferay.portal.SystemException,
178: com.liferay.portlet.journal.NoSuchArticleException;
179:
180: public com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
181: long id, long smallImageId,
182: com.liferay.portal.kernel.util.OrderByComparator obc)
183: throws com.liferay.portal.SystemException,
184: com.liferay.portlet.journal.NoSuchArticleException;
185:
186: public java.util.List findByG_A(long groupId,
187: java.lang.String articleId)
188: throws com.liferay.portal.SystemException;
189:
190: public java.util.List findByG_A(long groupId,
191: java.lang.String articleId, int begin, int end)
192: throws com.liferay.portal.SystemException;
193:
194: public java.util.List findByG_A(long groupId,
195: java.lang.String articleId, int begin, int end,
196: com.liferay.portal.kernel.util.OrderByComparator obc)
197: throws com.liferay.portal.SystemException;
198:
199: public com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
200: long groupId, java.lang.String articleId,
201: com.liferay.portal.kernel.util.OrderByComparator obc)
202: throws com.liferay.portal.SystemException,
203: com.liferay.portlet.journal.NoSuchArticleException;
204:
205: public com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
206: long groupId, java.lang.String articleId,
207: com.liferay.portal.kernel.util.OrderByComparator obc)
208: throws com.liferay.portal.SystemException,
209: com.liferay.portlet.journal.NoSuchArticleException;
210:
211: public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
212: long id, long groupId, java.lang.String articleId,
213: com.liferay.portal.kernel.util.OrderByComparator obc)
214: throws com.liferay.portal.SystemException,
215: com.liferay.portlet.journal.NoSuchArticleException;
216:
217: public java.util.List findByG_S(long groupId,
218: java.lang.String structureId)
219: throws com.liferay.portal.SystemException;
220:
221: public java.util.List findByG_S(long groupId,
222: java.lang.String structureId, int begin, int end)
223: throws com.liferay.portal.SystemException;
224:
225: public java.util.List findByG_S(long groupId,
226: java.lang.String structureId, int begin, int end,
227: com.liferay.portal.kernel.util.OrderByComparator obc)
228: throws com.liferay.portal.SystemException;
229:
230: public com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
231: long groupId, java.lang.String structureId,
232: com.liferay.portal.kernel.util.OrderByComparator obc)
233: throws com.liferay.portal.SystemException,
234: com.liferay.portlet.journal.NoSuchArticleException;
235:
236: public com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
237: long groupId, java.lang.String structureId,
238: com.liferay.portal.kernel.util.OrderByComparator obc)
239: throws com.liferay.portal.SystemException,
240: com.liferay.portlet.journal.NoSuchArticleException;
241:
242: public com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
243: long id, long groupId, java.lang.String structureId,
244: com.liferay.portal.kernel.util.OrderByComparator obc)
245: throws com.liferay.portal.SystemException,
246: com.liferay.portlet.journal.NoSuchArticleException;
247:
248: public java.util.List findByG_T(long groupId,
249: java.lang.String templateId)
250: throws com.liferay.portal.SystemException;
251:
252: public java.util.List findByG_T(long groupId,
253: java.lang.String templateId, int begin, int end)
254: throws com.liferay.portal.SystemException;
255:
256: public java.util.List findByG_T(long groupId,
257: java.lang.String templateId, int begin, int end,
258: com.liferay.portal.kernel.util.OrderByComparator obc)
259: throws com.liferay.portal.SystemException;
260:
261: public com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
262: long groupId, java.lang.String templateId,
263: com.liferay.portal.kernel.util.OrderByComparator obc)
264: throws com.liferay.portal.SystemException,
265: com.liferay.portlet.journal.NoSuchArticleException;
266:
267: public com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
268: long groupId, java.lang.String templateId,
269: com.liferay.portal.kernel.util.OrderByComparator obc)
270: throws com.liferay.portal.SystemException,
271: com.liferay.portlet.journal.NoSuchArticleException;
272:
273: public com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
274: long id, long groupId, java.lang.String templateId,
275: com.liferay.portal.kernel.util.OrderByComparator obc)
276: throws com.liferay.portal.SystemException,
277: com.liferay.portlet.journal.NoSuchArticleException;
278:
279: public com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
280: long groupId, java.lang.String articleId, double version)
281: throws com.liferay.portal.SystemException,
282: com.liferay.portlet.journal.NoSuchArticleException;
283:
284: public com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
285: long groupId, java.lang.String articleId, double version)
286: throws com.liferay.portal.SystemException;
287:
288: public java.util.List findByG_A_A(long groupId,
289: java.lang.String articleId, boolean approved)
290: throws com.liferay.portal.SystemException;
291:
292: public java.util.List findByG_A_A(long groupId,
293: java.lang.String articleId, boolean approved, int begin,
294: int end) throws com.liferay.portal.SystemException;
295:
296: public java.util.List findByG_A_A(long groupId,
297: java.lang.String articleId, boolean approved, int begin,
298: int end,
299: com.liferay.portal.kernel.util.OrderByComparator obc)
300: throws com.liferay.portal.SystemException;
301:
302: public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
303: long groupId, java.lang.String articleId, boolean approved,
304: com.liferay.portal.kernel.util.OrderByComparator obc)
305: throws com.liferay.portal.SystemException,
306: com.liferay.portlet.journal.NoSuchArticleException;
307:
308: public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
309: long groupId, java.lang.String articleId, boolean approved,
310: com.liferay.portal.kernel.util.OrderByComparator obc)
311: throws com.liferay.portal.SystemException,
312: com.liferay.portlet.journal.NoSuchArticleException;
313:
314: public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
315: long id, long groupId, java.lang.String articleId,
316: boolean approved,
317: com.liferay.portal.kernel.util.OrderByComparator obc)
318: throws com.liferay.portal.SystemException,
319: com.liferay.portlet.journal.NoSuchArticleException;
320:
321: public java.util.List findWithDynamicQuery(
322: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
323: throws com.liferay.portal.SystemException;
324:
325: public java.util.List findWithDynamicQuery(
326: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
327: int begin, int end)
328: throws com.liferay.portal.SystemException;
329:
330: public java.util.List findAll()
331: throws com.liferay.portal.SystemException;
332:
333: public java.util.List findAll(int begin, int end)
334: throws com.liferay.portal.SystemException;
335:
336: public java.util.List findAll(int begin, int end,
337: com.liferay.portal.kernel.util.OrderByComparator obc)
338: throws com.liferay.portal.SystemException;
339:
340: public void removeByUuid(java.lang.String uuid)
341: throws com.liferay.portal.SystemException;
342:
343: public void removeByUUID_G(java.lang.String uuid, long groupId)
344: throws com.liferay.portal.SystemException,
345: com.liferay.portlet.journal.NoSuchArticleException;
346:
347: public void removeByGroupId(long groupId)
348: throws com.liferay.portal.SystemException;
349:
350: public void removeByCompanyId(long companyId)
351: throws com.liferay.portal.SystemException;
352:
353: public void removeBySmallImageId(long smallImageId)
354: throws com.liferay.portal.SystemException;
355:
356: public void removeByG_A(long groupId, java.lang.String articleId)
357: throws com.liferay.portal.SystemException;
358:
359: public void removeByG_S(long groupId, java.lang.String structureId)
360: throws com.liferay.portal.SystemException;
361:
362: public void removeByG_T(long groupId, java.lang.String templateId)
363: throws com.liferay.portal.SystemException;
364:
365: public void removeByG_A_V(long groupId, java.lang.String articleId,
366: double version) throws com.liferay.portal.SystemException,
367: com.liferay.portlet.journal.NoSuchArticleException;
368:
369: public void removeByG_A_A(long groupId, java.lang.String articleId,
370: boolean approved) throws com.liferay.portal.SystemException;
371:
372: public void removeAll() throws com.liferay.portal.SystemException;
373:
374: public int countByUuid(java.lang.String uuid)
375: throws com.liferay.portal.SystemException;
376:
377: public int countByUUID_G(java.lang.String uuid, long groupId)
378: throws com.liferay.portal.SystemException;
379:
380: public int countByGroupId(long groupId)
381: throws com.liferay.portal.SystemException;
382:
383: public int countByCompanyId(long companyId)
384: throws com.liferay.portal.SystemException;
385:
386: public int countBySmallImageId(long smallImageId)
387: throws com.liferay.portal.SystemException;
388:
389: public int countByG_A(long groupId, java.lang.String articleId)
390: throws com.liferay.portal.SystemException;
391:
392: public int countByG_S(long groupId, java.lang.String structureId)
393: throws com.liferay.portal.SystemException;
394:
395: public int countByG_T(long groupId, java.lang.String templateId)
396: throws com.liferay.portal.SystemException;
397:
398: public int countByG_A_V(long groupId, java.lang.String articleId,
399: double version) throws com.liferay.portal.SystemException;
400:
401: public int countByG_A_A(long groupId, java.lang.String articleId,
402: boolean approved) throws com.liferay.portal.SystemException;
403:
404: public int countAll() throws com.liferay.portal.SystemException;
405: }
|