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.portal.service.persistence;
016    
017    import com.liferay.portal.model.Website;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       WebsitePersistenceImpl
022     * @see       WebsiteUtil
023     * @generated
024     */
025    public interface WebsitePersistence extends BasePersistence<Website> {
026            public void cacheResult(com.liferay.portal.model.Website website);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Website> websites);
030    
031            public com.liferay.portal.model.Website create(long websiteId);
032    
033            public com.liferay.portal.model.Website remove(long websiteId)
034                    throws com.liferay.portal.NoSuchWebsiteException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Website updateImpl(
038                    com.liferay.portal.model.Website website, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Website findByPrimaryKey(long websiteId)
042                    throws com.liferay.portal.NoSuchWebsiteException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.Website fetchByPrimaryKey(long websiteId)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
049                    long companyId)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
053                    long companyId, int start, int end)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
057                    long companyId, int start, int end,
058                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public com.liferay.portal.model.Website findByCompanyId_First(
062                    long companyId,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.NoSuchWebsiteException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.Website findByCompanyId_Last(
068                    long companyId,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.NoSuchWebsiteException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
074                    long websiteId, long companyId,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.NoSuchWebsiteException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            public java.util.List<com.liferay.portal.model.Website> findByUserId(
080                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
081    
082            public java.util.List<com.liferay.portal.model.Website> findByUserId(
083                    long userId, int start, int end)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public java.util.List<com.liferay.portal.model.Website> findByUserId(
087                    long userId, int start, int end,
088                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public com.liferay.portal.model.Website findByUserId_First(long userId,
092                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
093                    throws com.liferay.portal.NoSuchWebsiteException,
094                            com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portal.model.Website findByUserId_Last(long userId,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.NoSuchWebsiteException,
099                            com.liferay.portal.kernel.exception.SystemException;
100    
101            public com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
102                    long websiteId, long userId,
103                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104                    throws com.liferay.portal.NoSuchWebsiteException,
105                            com.liferay.portal.kernel.exception.SystemException;
106    
107            public java.util.List<com.liferay.portal.model.Website> findByC_C(
108                    long companyId, long classNameId)
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public java.util.List<com.liferay.portal.model.Website> findByC_C(
112                    long companyId, long classNameId, int start, int end)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            public java.util.List<com.liferay.portal.model.Website> findByC_C(
116                    long companyId, long classNameId, int start, int end,
117                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            public com.liferay.portal.model.Website findByC_C_First(long companyId,
121                    long classNameId,
122                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123                    throws com.liferay.portal.NoSuchWebsiteException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            public com.liferay.portal.model.Website findByC_C_Last(long companyId,
127                    long classNameId,
128                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129                    throws com.liferay.portal.NoSuchWebsiteException,
130                            com.liferay.portal.kernel.exception.SystemException;
131    
132            public com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
133                    long websiteId, long companyId, long classNameId,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.NoSuchWebsiteException,
136                            com.liferay.portal.kernel.exception.SystemException;
137    
138            public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
139                    long companyId, long classNameId, long classPK)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
143                    long companyId, long classNameId, long classPK, int start, int end)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
147                    long companyId, long classNameId, long classPK, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            public com.liferay.portal.model.Website findByC_C_C_First(long companyId,
152                    long classNameId, long classPK,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchWebsiteException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            public com.liferay.portal.model.Website findByC_C_C_Last(long companyId,
158                    long classNameId, long classPK,
159                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160                    throws com.liferay.portal.NoSuchWebsiteException,
161                            com.liferay.portal.kernel.exception.SystemException;
162    
163            public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
164                    long websiteId, long companyId, long classNameId, long classPK,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.NoSuchWebsiteException,
167                            com.liferay.portal.kernel.exception.SystemException;
168    
169            public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
170                    long companyId, long classNameId, long classPK, boolean primary)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
174                    long companyId, long classNameId, long classPK, boolean primary,
175                    int start, int end)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
179                    long companyId, long classNameId, long classPK, boolean primary,
180                    int start, int end,
181                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182                    throws com.liferay.portal.kernel.exception.SystemException;
183    
184            public com.liferay.portal.model.Website findByC_C_C_P_First(
185                    long companyId, long classNameId, long classPK, boolean primary,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.NoSuchWebsiteException,
188                            com.liferay.portal.kernel.exception.SystemException;
189    
190            public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId,
191                    long classNameId, long classPK, boolean primary,
192                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193                    throws com.liferay.portal.NoSuchWebsiteException,
194                            com.liferay.portal.kernel.exception.SystemException;
195    
196            public com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
197                    long websiteId, long companyId, long classNameId, long classPK,
198                    boolean primary,
199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200                    throws com.liferay.portal.NoSuchWebsiteException,
201                            com.liferay.portal.kernel.exception.SystemException;
202    
203            public java.util.List<com.liferay.portal.model.Website> findAll()
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            public java.util.List<com.liferay.portal.model.Website> findAll(int start,
207                    int end) throws com.liferay.portal.kernel.exception.SystemException;
208    
209            public java.util.List<com.liferay.portal.model.Website> findAll(int start,
210                    int end,
211                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            public void removeByCompanyId(long companyId)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            public void removeByUserId(long userId)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            public void removeByC_C(long companyId, long classNameId)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            public void removeByC_C_C(long companyId, long classNameId, long classPK)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
227                    boolean primary)
228                    throws com.liferay.portal.kernel.exception.SystemException;
229    
230            public void removeAll()
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            public int countByCompanyId(long companyId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            public int countByUserId(long userId)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            public int countByC_C(long companyId, long classNameId)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            public int countByC_C_C(long companyId, long classNameId, long classPK)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            public int countByC_C_C_P(long companyId, long classNameId, long classPK,
246                    boolean primary)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            public int countAll()
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    }