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.announcements.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.announcements.model.AnnouncementsEntry;
20  
21  /**
22   * <a href="AnnouncementsEntryPersistence.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       AnnouncementsEntryPersistenceImpl
31   * @see       AnnouncementsEntryUtil
32   * @generated
33   */
34  public interface AnnouncementsEntryPersistence extends BasePersistence<AnnouncementsEntry> {
35      public void cacheResult(
36          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries);
40  
41      public com.liferay.portlet.announcements.model.AnnouncementsEntry create(
42          long entryId);
43  
44      public com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
45          long entryId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.announcements.NoSuchEntryException;
48  
49      public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
50          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
55          long entryId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.announcements.NoSuchEntryException;
58  
59      public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
60          long entryId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
64          java.lang.String uuid)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
68          java.lang.String uuid, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
72          java.lang.String uuid, 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.announcements.model.AnnouncementsEntry findByUuid_First(
77          java.lang.String uuid,
78          com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.announcements.NoSuchEntryException;
81  
82      public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
83          java.lang.String uuid,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.announcements.NoSuchEntryException;
87  
88      public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
89          long entryId, java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.announcements.NoSuchEntryException;
93  
94      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
95          long userId) throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
98          long userId, int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
102         long userId, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
107         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.kernel.exception.SystemException,
109             com.liferay.portlet.announcements.NoSuchEntryException;
110 
111     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
112         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.kernel.exception.SystemException,
114             com.liferay.portlet.announcements.NoSuchEntryException;
115 
116     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
117         long entryId, long userId,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.announcements.NoSuchEntryException;
121 
122     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
123         long classNameId, long classPK)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
127         long classNameId, long classPK, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
131         long classNameId, long classPK, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
136         long classNameId, long classPK,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.kernel.exception.SystemException,
139             com.liferay.portlet.announcements.NoSuchEntryException;
140 
141     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
142         long classNameId, long classPK,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.kernel.exception.SystemException,
145             com.liferay.portlet.announcements.NoSuchEntryException;
146 
147     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
148         long entryId, long classNameId, long classPK,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.announcements.NoSuchEntryException;
152 
153     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
154         long classNameId, long classPK, boolean alert)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
158         long classNameId, long classPK, boolean alert, int start, int end)
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
162         long classNameId, long classPK, boolean alert, int start, int end,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
167         long classNameId, long classPK, boolean alert,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.kernel.exception.SystemException,
170             com.liferay.portlet.announcements.NoSuchEntryException;
171 
172     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
173         long classNameId, long classPK, boolean alert,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.kernel.exception.SystemException,
176             com.liferay.portlet.announcements.NoSuchEntryException;
177 
178     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
179         long entryId, long classNameId, long classPK, boolean alert,
180         com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.kernel.exception.SystemException,
182             com.liferay.portlet.announcements.NoSuchEntryException;
183 
184     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
188         int start, int end)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
192         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public void removeByUuid(java.lang.String uuid)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public void removeByUserId(long userId)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     public void removeByC_C(long classNameId, long classPK)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     public void removeByC_C_A(long classNameId, long classPK, boolean alert)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public void removeAll()
208         throws com.liferay.portal.kernel.exception.SystemException;
209 
210     public int countByUuid(java.lang.String uuid)
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     public int countByUserId(long userId)
214         throws com.liferay.portal.kernel.exception.SystemException;
215 
216     public int countByC_C(long classNameId, long classPK)
217         throws com.liferay.portal.kernel.exception.SystemException;
218 
219     public int countByC_C_A(long classNameId, long classPK, boolean alert)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public int countAll()
223         throws com.liferay.portal.kernel.exception.SystemException;
224 }