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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
107         long userId,
108         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.announcements.NoSuchEntryException;
111 
112     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
113         long userId,
114         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115         throws com.liferay.portal.kernel.exception.SystemException,
116             com.liferay.portlet.announcements.NoSuchEntryException;
117 
118     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
119         long entryId, long userId,
120         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121         throws com.liferay.portal.kernel.exception.SystemException,
122             com.liferay.portlet.announcements.NoSuchEntryException;
123 
124     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
125         long classNameId, long classPK)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
129         long classNameId, long classPK, int start, int end)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
133         long classNameId, long classPK, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
138         long classNameId, long classPK,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.kernel.exception.SystemException,
141             com.liferay.portlet.announcements.NoSuchEntryException;
142 
143     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
144         long classNameId, long classPK,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException,
147             com.liferay.portlet.announcements.NoSuchEntryException;
148 
149     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
150         long entryId, long classNameId, long classPK,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.kernel.exception.SystemException,
153             com.liferay.portlet.announcements.NoSuchEntryException;
154 
155     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
156         long classNameId, long classPK, boolean alert)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
160         long classNameId, long classPK, boolean alert, int start, int end)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
164         long classNameId, long classPK, boolean alert, int start, int end,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
169         long classNameId, long classPK, boolean alert,
170         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.announcements.NoSuchEntryException;
173 
174     public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
175         long classNameId, long classPK, boolean alert,
176         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177         throws com.liferay.portal.kernel.exception.SystemException,
178             com.liferay.portlet.announcements.NoSuchEntryException;
179 
180     public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
181         long entryId, long classNameId, long classPK, boolean alert,
182         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183         throws com.liferay.portal.kernel.exception.SystemException,
184             com.liferay.portlet.announcements.NoSuchEntryException;
185 
186     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
190         int start, int end)
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
194         int start, int end,
195         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public void removeByUuid(java.lang.String uuid)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     public void removeByUserId(long userId)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     public void removeByC_C(long classNameId, long classPK)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public void removeByC_C_A(long classNameId, long classPK, boolean alert)
208         throws com.liferay.portal.kernel.exception.SystemException;
209 
210     public void removeAll()
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     public int countByUuid(java.lang.String uuid)
214         throws com.liferay.portal.kernel.exception.SystemException;
215 
216     public int countByUserId(long userId)
217         throws com.liferay.portal.kernel.exception.SystemException;
218 
219     public int countByC_C(long classNameId, long classPK)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public int countByC_C_A(long classNameId, long classPK, boolean alert)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     public int countAll()
226         throws com.liferay.portal.kernel.exception.SystemException;
227 }