1   /**
2    * Copyright (c) 2000-2010 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   *
12   * 
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.SystemException,
47              com.liferay.portlet.announcements.NoSuchEntryException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.announcements.model.AnnouncementsEntry update(
53          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
57          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
61          long entryId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.announcements.NoSuchEntryException;
64  
65      public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
66          long entryId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
69          java.lang.String uuid) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
72          java.lang.String uuid, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
76          java.lang.String uuid, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
81          java.lang.String uuid,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.announcements.NoSuchEntryException;
85  
86      public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
87          java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.announcements.NoSuchEntryException;
91  
92      public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
93          long entryId, java.lang.String uuid,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.announcements.NoSuchEntryException;
97  
98      public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
99          long userId) throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
102         long userId, int start, int end)
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
106         long userId, int start, int end,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
111         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.announcements.NoSuchEntryException;
114 
115     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
116         long userId, 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[] findByUserId_PrevAndNext(
121         long entryId, long userId,
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> findByC_C(
127         long classNameId, long classPK)
128         throws com.liferay.portal.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         throws com.liferay.portal.SystemException;
133 
134     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
135         long classNameId, long classPK, int start, int end,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException;
138 
139     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
140         long classNameId, long classPK,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portlet.announcements.NoSuchEntryException;
144 
145     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
146         long classNameId, long classPK,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.announcements.NoSuchEntryException;
150 
151     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
152         long entryId, long classNameId, long classPK,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.announcements.NoSuchEntryException;
156 
157     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
158         long classNameId, long classPK, boolean alert)
159         throws com.liferay.portal.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         throws com.liferay.portal.SystemException;
164 
165     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
166         long classNameId, long classPK, boolean alert, int start, int end,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException;
169 
170     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
171         long classNameId, long classPK, boolean alert,
172         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.announcements.NoSuchEntryException;
175 
176     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
177         long classNameId, long classPK, boolean alert,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.announcements.NoSuchEntryException;
181 
182     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
183         long entryId, long classNameId, long classPK, boolean alert,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException,
186             com.liferay.portlet.announcements.NoSuchEntryException;
187 
188     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
189         throws com.liferay.portal.SystemException;
190 
191     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
192         int start, int end) throws com.liferay.portal.SystemException;
193 
194     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
195         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException;
197 
198     public void removeByUuid(java.lang.String uuid)
199         throws com.liferay.portal.SystemException;
200 
201     public void removeByUserId(long userId)
202         throws com.liferay.portal.SystemException;
203 
204     public void removeByC_C(long classNameId, long classPK)
205         throws com.liferay.portal.SystemException;
206 
207     public void removeByC_C_A(long classNameId, long classPK, boolean alert)
208         throws com.liferay.portal.SystemException;
209 
210     public void removeAll() throws com.liferay.portal.SystemException;
211 
212     public int countByUuid(java.lang.String uuid)
213         throws com.liferay.portal.SystemException;
214 
215     public int countByUserId(long userId)
216         throws com.liferay.portal.SystemException;
217 
218     public int countByC_C(long classNameId, long classPK)
219         throws com.liferay.portal.SystemException;
220 
221     public int countByC_C_A(long classNameId, long classPK, boolean alert)
222         throws com.liferay.portal.SystemException;
223 
224     public int countAll() throws com.liferay.portal.SystemException;
225 }