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