1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Website;
18
19
32 public interface WebsitePersistence extends BasePersistence<Website> {
33 public void cacheResult(com.liferay.portal.model.Website website);
34
35 public void cacheResult(
36 java.util.List<com.liferay.portal.model.Website> websites);
37
38 public com.liferay.portal.model.Website create(long websiteId);
39
40 public com.liferay.portal.model.Website remove(long websiteId)
41 throws com.liferay.portal.NoSuchWebsiteException,
42 com.liferay.portal.kernel.exception.SystemException;
43
44 public com.liferay.portal.model.Website updateImpl(
45 com.liferay.portal.model.Website website, boolean merge)
46 throws com.liferay.portal.kernel.exception.SystemException;
47
48 public com.liferay.portal.model.Website findByPrimaryKey(long websiteId)
49 throws com.liferay.portal.NoSuchWebsiteException,
50 com.liferay.portal.kernel.exception.SystemException;
51
52 public com.liferay.portal.model.Website fetchByPrimaryKey(long websiteId)
53 throws com.liferay.portal.kernel.exception.SystemException;
54
55 public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
56 long companyId)
57 throws com.liferay.portal.kernel.exception.SystemException;
58
59 public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
60 long companyId, int start, int end)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
64 long companyId, int start, int end,
65 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
66 throws com.liferay.portal.kernel.exception.SystemException;
67
68 public com.liferay.portal.model.Website findByCompanyId_First(
69 long companyId,
70 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71 throws com.liferay.portal.NoSuchWebsiteException,
72 com.liferay.portal.kernel.exception.SystemException;
73
74 public com.liferay.portal.model.Website findByCompanyId_Last(
75 long companyId,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.NoSuchWebsiteException,
78 com.liferay.portal.kernel.exception.SystemException;
79
80 public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
81 long websiteId, long companyId,
82 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83 throws com.liferay.portal.NoSuchWebsiteException,
84 com.liferay.portal.kernel.exception.SystemException;
85
86 public java.util.List<com.liferay.portal.model.Website> findByUserId(
87 long userId) throws com.liferay.portal.kernel.exception.SystemException;
88
89 public java.util.List<com.liferay.portal.model.Website> findByUserId(
90 long userId, int start, int end)
91 throws com.liferay.portal.kernel.exception.SystemException;
92
93 public java.util.List<com.liferay.portal.model.Website> findByUserId(
94 long userId, int start, int end,
95 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portal.model.Website findByUserId_First(long userId,
99 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100 throws com.liferay.portal.NoSuchWebsiteException,
101 com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portal.model.Website findByUserId_Last(long userId,
104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105 throws com.liferay.portal.NoSuchWebsiteException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 public com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
109 long websiteId, long userId,
110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111 throws com.liferay.portal.NoSuchWebsiteException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public java.util.List<com.liferay.portal.model.Website> findByC_C(
115 long companyId, long classNameId)
116 throws com.liferay.portal.kernel.exception.SystemException;
117
118 public java.util.List<com.liferay.portal.model.Website> findByC_C(
119 long companyId, long classNameId, int start, int end)
120 throws com.liferay.portal.kernel.exception.SystemException;
121
122 public java.util.List<com.liferay.portal.model.Website> findByC_C(
123 long companyId, long classNameId, int start, int end,
124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 public com.liferay.portal.model.Website findByC_C_First(long companyId,
128 long classNameId,
129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130 throws com.liferay.portal.NoSuchWebsiteException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 public com.liferay.portal.model.Website findByC_C_Last(long companyId,
134 long classNameId,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.NoSuchWebsiteException,
137 com.liferay.portal.kernel.exception.SystemException;
138
139 public com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
140 long websiteId, long companyId, long classNameId,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.NoSuchWebsiteException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
146 long companyId, long classNameId, long classPK)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
150 long companyId, long classNameId, long classPK, int start, int end)
151 throws com.liferay.portal.kernel.exception.SystemException;
152
153 public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
154 long companyId, long classNameId, long classPK, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158 public com.liferay.portal.model.Website findByC_C_C_First(long companyId,
159 long classNameId, long classPK,
160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161 throws com.liferay.portal.NoSuchWebsiteException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 public com.liferay.portal.model.Website findByC_C_C_Last(long companyId,
165 long classNameId, long classPK,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.NoSuchWebsiteException,
168 com.liferay.portal.kernel.exception.SystemException;
169
170 public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
171 long websiteId, long companyId, long classNameId, long classPK,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.NoSuchWebsiteException,
174 com.liferay.portal.kernel.exception.SystemException;
175
176 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
177 long companyId, long classNameId, long classPK, boolean primary)
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
181 long companyId, long classNameId, long classPK, boolean primary,
182 int start, int end)
183 throws com.liferay.portal.kernel.exception.SystemException;
184
185 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
186 long companyId, long classNameId, long classPK, boolean primary,
187 int start, int end,
188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191 public com.liferay.portal.model.Website findByC_C_C_P_First(
192 long companyId, long classNameId, long classPK, boolean primary,
193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194 throws com.liferay.portal.NoSuchWebsiteException,
195 com.liferay.portal.kernel.exception.SystemException;
196
197 public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId,
198 long classNameId, long classPK, 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 com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
204 long websiteId, long companyId, long classNameId, long classPK,
205 boolean primary,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.NoSuchWebsiteException,
208 com.liferay.portal.kernel.exception.SystemException;
209
210 public java.util.List<com.liferay.portal.model.Website> findAll()
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213 public java.util.List<com.liferay.portal.model.Website> findAll(int start,
214 int end) throws com.liferay.portal.kernel.exception.SystemException;
215
216 public java.util.List<com.liferay.portal.model.Website> findAll(int start,
217 int end,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.kernel.exception.SystemException;
220
221 public void removeByCompanyId(long companyId)
222 throws com.liferay.portal.kernel.exception.SystemException;
223
224 public void removeByUserId(long userId)
225 throws com.liferay.portal.kernel.exception.SystemException;
226
227 public void removeByC_C(long companyId, long classNameId)
228 throws com.liferay.portal.kernel.exception.SystemException;
229
230 public void removeByC_C_C(long companyId, long classNameId, long classPK)
231 throws com.liferay.portal.kernel.exception.SystemException;
232
233 public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
234 boolean primary)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237 public void removeAll()
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240 public int countByCompanyId(long companyId)
241 throws com.liferay.portal.kernel.exception.SystemException;
242
243 public int countByUserId(long userId)
244 throws com.liferay.portal.kernel.exception.SystemException;
245
246 public int countByC_C(long companyId, long classNameId)
247 throws com.liferay.portal.kernel.exception.SystemException;
248
249 public int countByC_C_C(long companyId, long classNameId, long classPK)
250 throws com.liferay.portal.kernel.exception.SystemException;
251
252 public int countByC_C_C_P(long companyId, long classNameId, long classPK,
253 boolean primary)
254 throws com.liferay.portal.kernel.exception.SystemException;
255
256 public int countAll()
257 throws com.liferay.portal.kernel.exception.SystemException;
258 }