001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.announcements.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.announcements.model.AnnouncementsEntry;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       AnnouncementsEntryPersistenceImpl
024     * @see       AnnouncementsEntryUtil
025     * @generated
026     */
027    public interface AnnouncementsEntryPersistence extends BasePersistence<AnnouncementsEntry> {
028            public void cacheResult(
029                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries);
033    
034            public com.liferay.portlet.announcements.model.AnnouncementsEntry create(
035                    long entryId);
036    
037            public com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
038                    long entryId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.announcements.NoSuchEntryException;
041    
042            public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
043                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
048                    long entryId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.announcements.NoSuchEntryException;
051    
052            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
053                    long entryId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
057                    java.lang.String uuid)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
061                    java.lang.String uuid, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
065                    java.lang.String uuid, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
070                    java.lang.String uuid,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.announcements.NoSuchEntryException;
074    
075            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
076                    java.lang.String uuid,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.announcements.NoSuchEntryException;
080    
081            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
082                    long entryId, java.lang.String uuid,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.announcements.NoSuchEntryException;
086    
087            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
088                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
091                    long userId, int start, int end)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
095                    long userId, int start, int end,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
100                    long userId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.announcements.NoSuchEntryException;
104    
105            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
106                    long userId,
107                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108                    throws com.liferay.portal.kernel.exception.SystemException,
109                            com.liferay.portlet.announcements.NoSuchEntryException;
110    
111            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
112                    long entryId, long userId,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException,
115                            com.liferay.portlet.announcements.NoSuchEntryException;
116    
117            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
118                    long classNameId, long classPK)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
122                    long classNameId, long classPK, int start, int end)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
126                    long classNameId, long classPK, int start, int end,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
131                    long classNameId, long classPK,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException,
134                            com.liferay.portlet.announcements.NoSuchEntryException;
135    
136            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
137                    long classNameId, long classPK,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.announcements.NoSuchEntryException;
141    
142            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
143                    long entryId, long classNameId, long classPK,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException,
146                            com.liferay.portlet.announcements.NoSuchEntryException;
147    
148            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
149                    long classNameId, long classPK, boolean alert)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
153                    long classNameId, long classPK, boolean alert, int start, int end)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
157                    long classNameId, long classPK, boolean alert, int start, int end,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
162                    long classNameId, long classPK, boolean alert,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.announcements.NoSuchEntryException;
166    
167            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
168                    long classNameId, long classPK, boolean alert,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.announcements.NoSuchEntryException;
172    
173            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
174                    long entryId, long classNameId, long classPK, boolean alert,
175                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.announcements.NoSuchEntryException;
178    
179            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
183                    int start, int end)
184                    throws com.liferay.portal.kernel.exception.SystemException;
185    
186            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
187                    int start, int end,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            public void removeByUuid(java.lang.String uuid)
192                    throws com.liferay.portal.kernel.exception.SystemException;
193    
194            public void removeByUserId(long userId)
195                    throws com.liferay.portal.kernel.exception.SystemException;
196    
197            public void removeByC_C(long classNameId, long classPK)
198                    throws com.liferay.portal.kernel.exception.SystemException;
199    
200            public void removeByC_C_A(long classNameId, long classPK, boolean alert)
201                    throws com.liferay.portal.kernel.exception.SystemException;
202    
203            public void removeAll()
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            public int countByUuid(java.lang.String uuid)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            public int countByUserId(long userId)
210                    throws com.liferay.portal.kernel.exception.SystemException;
211    
212            public int countByC_C(long classNameId, long classPK)
213                    throws com.liferay.portal.kernel.exception.SystemException;
214    
215            public int countByC_C_A(long classNameId, long classPK, boolean alert)
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            public int countAll()
219                    throws com.liferay.portal.kernel.exception.SystemException;
220    }