1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.journal.model.JournalArticleResource;
20  
21  /**
22   * <a href="JournalArticleResourcePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       JournalArticleResourcePersistenceImpl
31   * @see       JournalArticleResourceUtil
32   * @generated
33   */
34  public interface JournalArticleResourcePersistence extends BasePersistence<JournalArticleResource> {
35      public void cacheResult(
36          com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> journalArticleResources);
40  
41      public com.liferay.portlet.journal.model.JournalArticleResource create(
42          long resourcePrimKey);
43  
44      public com.liferay.portlet.journal.model.JournalArticleResource remove(
45          long resourcePrimKey)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.journal.NoSuchArticleResourceException;
48  
49      public com.liferay.portlet.journal.model.JournalArticleResource updateImpl(
50          com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.journal.model.JournalArticleResource findByPrimaryKey(
55          long resourcePrimKey)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.journal.NoSuchArticleResourceException;
58  
59      public com.liferay.portlet.journal.model.JournalArticleResource fetchByPrimaryKey(
60          long resourcePrimKey)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
64          long groupId)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
68          long groupId, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
72          long groupId, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_First(
77          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.kernel.exception.SystemException,
79              com.liferay.portlet.journal.NoSuchArticleResourceException;
80  
81      public com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_Last(
82          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.journal.NoSuchArticleResourceException;
85  
86      public com.liferay.portlet.journal.model.JournalArticleResource[] findByGroupId_PrevAndNext(
87          long resourcePrimKey, long groupId,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.kernel.exception.SystemException,
90              com.liferay.portlet.journal.NoSuchArticleResourceException;
91  
92      public com.liferay.portlet.journal.model.JournalArticleResource findByG_A(
93          long groupId, java.lang.String articleId)
94          throws com.liferay.portal.kernel.exception.SystemException,
95              com.liferay.portlet.journal.NoSuchArticleResourceException;
96  
97      public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
98          long groupId, java.lang.String articleId)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
102         long groupId, java.lang.String articleId, boolean retrieveFromCache)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll()
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
109         int start, int end)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
113         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public void removeByGroupId(long groupId)
117         throws com.liferay.portal.kernel.exception.SystemException;
118 
119     public void removeByG_A(long groupId, java.lang.String articleId)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.journal.NoSuchArticleResourceException;
122 
123     public void removeAll()
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public int countByGroupId(long groupId)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public int countByG_A(long groupId, java.lang.String articleId)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public int countAll()
133         throws com.liferay.portal.kernel.exception.SystemException;
134 }