1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.journal.model.JournalFeed;
28  
29  /**
30   * <a href="JournalFeedPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       JournalFeedPersistenceImpl
39   * @see       JournalFeedUtil
40   * @generated
41   */
42  public interface JournalFeedPersistence extends BasePersistence<JournalFeed> {
43      public void cacheResult(
44          com.liferay.portlet.journal.model.JournalFeed journalFeed);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.journal.model.JournalFeed> journalFeeds);
48  
49      public com.liferay.portlet.journal.model.JournalFeed create(long id);
50  
51      public com.liferay.portlet.journal.model.JournalFeed remove(long id)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.journal.NoSuchFeedException;
54  
55      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portlet.journal.model.JournalFeed update(
59          com.liferay.portlet.journal.model.JournalFeed journalFeed)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.journal.model.JournalFeed updateImpl(
63          com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
64          throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
67          long id)
68          throws com.liferay.portal.SystemException,
69              com.liferay.portlet.journal.NoSuchFeedException;
70  
71      public com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
72          long id) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
75          java.lang.String uuid) throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
78          java.lang.String uuid, int start, int end)
79          throws com.liferay.portal.SystemException;
80  
81      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
82          java.lang.String uuid, int start, int end,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.journal.model.JournalFeed findByUuid_First(
87          java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.journal.NoSuchFeedException;
91  
92      public com.liferay.portlet.journal.model.JournalFeed findByUuid_Last(
93          java.lang.String uuid,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.journal.NoSuchFeedException;
97  
98      public com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
99          long id, java.lang.String uuid,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portlet.journal.NoSuchFeedException;
103 
104     public com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
105         java.lang.String uuid, long groupId)
106         throws com.liferay.portal.SystemException,
107             com.liferay.portlet.journal.NoSuchFeedException;
108 
109     public com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
110         java.lang.String uuid, long groupId)
111         throws com.liferay.portal.SystemException;
112 
113     public com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
114         java.lang.String uuid, long groupId, boolean retrieveFromCache)
115         throws com.liferay.portal.SystemException;
116 
117     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
118         long groupId) throws com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
121         long groupId, int start, int end)
122         throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
125         long groupId, int start, int end,
126         com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.SystemException;
128 
129     public com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
130         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.journal.NoSuchFeedException;
133 
134     public com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
135         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.journal.NoSuchFeedException;
138 
139     public com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
140         long id, long groupId,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portlet.journal.NoSuchFeedException;
144 
145     public com.liferay.portlet.journal.model.JournalFeed findByG_F(
146         long groupId, java.lang.String feedId)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.journal.NoSuchFeedException;
149 
150     public com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
151         long groupId, java.lang.String feedId)
152         throws com.liferay.portal.SystemException;
153 
154     public com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
155         long groupId, java.lang.String feedId, boolean retrieveFromCache)
156         throws com.liferay.portal.SystemException;
157 
158     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
159         throws com.liferay.portal.SystemException;
160 
161     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
162         int start, int end) throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
165         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException;
167 
168     public void removeByUuid(java.lang.String uuid)
169         throws com.liferay.portal.SystemException;
170 
171     public void removeByUUID_G(java.lang.String uuid, long groupId)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.journal.NoSuchFeedException;
174 
175     public void removeByGroupId(long groupId)
176         throws com.liferay.portal.SystemException;
177 
178     public void removeByG_F(long groupId, java.lang.String feedId)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.journal.NoSuchFeedException;
181 
182     public void removeAll() throws com.liferay.portal.SystemException;
183 
184     public int countByUuid(java.lang.String uuid)
185         throws com.liferay.portal.SystemException;
186 
187     public int countByUUID_G(java.lang.String uuid, long groupId)
188         throws com.liferay.portal.SystemException;
189 
190     public int countByGroupId(long groupId)
191         throws com.liferay.portal.SystemException;
192 
193     public int countByG_F(long groupId, java.lang.String feedId)
194         throws com.liferay.portal.SystemException;
195 
196     public int countAll() throws com.liferay.portal.SystemException;
197 }