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.announcements.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="AnnouncementsEntryPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       AnnouncementsEntryPersistenceImpl
37   * @see       AnnouncementsEntryUtil
38   * @generated
39   */
40  public interface AnnouncementsEntryPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.announcements.model.AnnouncementsEntry create(
50          long entryId);
51  
52      public com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
53          long entryId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.announcements.NoSuchEntryException;
56  
57      public com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
58          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(AnnouncementsEntry, boolean merge)}.
63       */
64      public com.liferay.portlet.announcements.model.AnnouncementsEntry update(
65          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  announcementsEntry the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when announcementsEntry is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.announcements.model.AnnouncementsEntry update(
81          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
85          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
89          long entryId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.announcements.NoSuchEntryException;
92  
93      public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
94          long entryId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
97          java.lang.String uuid) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
100         java.lang.String uuid, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
104         java.lang.String uuid, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
109         java.lang.String uuid,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.announcements.NoSuchEntryException;
113 
114     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
115         java.lang.String uuid,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.announcements.NoSuchEntryException;
119 
120     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
121         long entryId, java.lang.String uuid,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.announcements.NoSuchEntryException;
125 
126     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
127         long userId) throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
130         long userId, int start, int end)
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
134         long userId, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException;
137 
138     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
139         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.announcements.NoSuchEntryException;
142 
143     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
144         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException,
146             com.liferay.portlet.announcements.NoSuchEntryException;
147 
148     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
149         long entryId, long userId,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.announcements.NoSuchEntryException;
153 
154     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
155         long classNameId, long classPK)
156         throws com.liferay.portal.SystemException;
157 
158     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
159         long classNameId, long classPK, int start, int end)
160         throws com.liferay.portal.SystemException;
161 
162     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
163         long classNameId, long classPK, int start, int end,
164         com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.SystemException;
166 
167     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
168         long classNameId, long classPK,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.announcements.NoSuchEntryException;
172 
173     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
174         long classNameId, long classPK,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException,
177             com.liferay.portlet.announcements.NoSuchEntryException;
178 
179     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
180         long entryId, long classNameId, long classPK,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException,
183             com.liferay.portlet.announcements.NoSuchEntryException;
184 
185     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
186         long classNameId, long classPK, boolean alert)
187         throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
190         long classNameId, long classPK, boolean alert, int start, int end)
191         throws com.liferay.portal.SystemException;
192 
193     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
194         long classNameId, long classPK, boolean alert, int start, int end,
195         com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException;
197 
198     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
199         long classNameId, long classPK, boolean alert,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.SystemException,
202             com.liferay.portlet.announcements.NoSuchEntryException;
203 
204     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
205         long classNameId, long classPK, boolean alert,
206         com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.SystemException,
208             com.liferay.portlet.announcements.NoSuchEntryException;
209 
210     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
211         long entryId, long classNameId, long classPK, boolean alert,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.announcements.NoSuchEntryException;
215 
216     public java.util.List<Object> findWithDynamicQuery(
217         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
218         throws com.liferay.portal.SystemException;
219 
220     public java.util.List<Object> findWithDynamicQuery(
221         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
222         int end) throws com.liferay.portal.SystemException;
223 
224     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
225         throws com.liferay.portal.SystemException;
226 
227     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
228         int start, int end) throws com.liferay.portal.SystemException;
229 
230     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
231         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException;
233 
234     public void removeByUuid(java.lang.String uuid)
235         throws com.liferay.portal.SystemException;
236 
237     public void removeByUserId(long userId)
238         throws com.liferay.portal.SystemException;
239 
240     public void removeByC_C(long classNameId, long classPK)
241         throws com.liferay.portal.SystemException;
242 
243     public void removeByC_C_A(long classNameId, long classPK, boolean alert)
244         throws com.liferay.portal.SystemException;
245 
246     public void removeAll() throws com.liferay.portal.SystemException;
247 
248     public int countByUuid(java.lang.String uuid)
249         throws com.liferay.portal.SystemException;
250 
251     public int countByUserId(long userId)
252         throws com.liferay.portal.SystemException;
253 
254     public int countByC_C(long classNameId, long classPK)
255         throws com.liferay.portal.SystemException;
256 
257     public int countByC_C_A(long classNameId, long classPK, boolean alert)
258         throws com.liferay.portal.SystemException;
259 
260     public int countAll() throws com.liferay.portal.SystemException;
261 }