1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface WebsitePersistence {
32 public com.liferay.portal.model.Website create(long websiteId);
33
34 public com.liferay.portal.model.Website remove(long websiteId)
35 throws com.liferay.portal.NoSuchWebsiteException,
36 com.liferay.portal.SystemException;
37
38 public com.liferay.portal.model.Website remove(
39 com.liferay.portal.model.Website website)
40 throws com.liferay.portal.SystemException;
41
42
45 public com.liferay.portal.model.Website update(
46 com.liferay.portal.model.Website website)
47 throws com.liferay.portal.SystemException;
48
49
62 public com.liferay.portal.model.Website update(
63 com.liferay.portal.model.Website website, boolean merge)
64 throws com.liferay.portal.SystemException;
65
66 public com.liferay.portal.model.Website updateImpl(
67 com.liferay.portal.model.Website website, boolean merge)
68 throws com.liferay.portal.SystemException;
69
70 public com.liferay.portal.model.Website findByPrimaryKey(long websiteId)
71 throws com.liferay.portal.NoSuchWebsiteException,
72 com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Website fetchByPrimaryKey(long websiteId)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
78 long companyId) throws com.liferay.portal.SystemException;
79
80 public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
81 long companyId, int start, int end)
82 throws com.liferay.portal.SystemException;
83
84 public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
85 long companyId, int start, int end,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException;
88
89 public com.liferay.portal.model.Website findByCompanyId_First(
90 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
91 throws com.liferay.portal.NoSuchWebsiteException,
92 com.liferay.portal.SystemException;
93
94 public com.liferay.portal.model.Website findByCompanyId_Last(
95 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.NoSuchWebsiteException,
97 com.liferay.portal.SystemException;
98
99 public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
100 long websiteId, long companyId,
101 com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.NoSuchWebsiteException,
103 com.liferay.portal.SystemException;
104
105 public java.util.List<com.liferay.portal.model.Website> findByUserId(
106 long userId) throws com.liferay.portal.SystemException;
107
108 public java.util.List<com.liferay.portal.model.Website> findByUserId(
109 long userId, int start, int end)
110 throws com.liferay.portal.SystemException;
111
112 public java.util.List<com.liferay.portal.model.Website> findByUserId(
113 long userId, int start, int end,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException;
116
117 public com.liferay.portal.model.Website findByUserId_First(long userId,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.NoSuchWebsiteException,
120 com.liferay.portal.SystemException;
121
122 public com.liferay.portal.model.Website findByUserId_Last(long userId,
123 com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.NoSuchWebsiteException,
125 com.liferay.portal.SystemException;
126
127 public com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
128 long websiteId, long userId,
129 com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.NoSuchWebsiteException,
131 com.liferay.portal.SystemException;
132
133 public java.util.List<com.liferay.portal.model.Website> findByC_C(
134 long companyId, long classNameId)
135 throws com.liferay.portal.SystemException;
136
137 public java.util.List<com.liferay.portal.model.Website> findByC_C(
138 long companyId, long classNameId, int start, int end)
139 throws com.liferay.portal.SystemException;
140
141 public java.util.List<com.liferay.portal.model.Website> findByC_C(
142 long companyId, long classNameId, int start, int end,
143 com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException;
145
146 public com.liferay.portal.model.Website findByC_C_First(long companyId,
147 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.NoSuchWebsiteException,
149 com.liferay.portal.SystemException;
150
151 public com.liferay.portal.model.Website findByC_C_Last(long companyId,
152 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.NoSuchWebsiteException,
154 com.liferay.portal.SystemException;
155
156 public com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
157 long websiteId, long companyId, long classNameId,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.NoSuchWebsiteException,
160 com.liferay.portal.SystemException;
161
162 public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
163 long companyId, long classNameId, long classPK)
164 throws com.liferay.portal.SystemException;
165
166 public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
167 long companyId, long classNameId, long classPK, int start, int end)
168 throws com.liferay.portal.SystemException;
169
170 public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
171 long companyId, long classNameId, long classPK, int start, int end,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException;
174
175 public com.liferay.portal.model.Website findByC_C_C_First(long companyId,
176 long classNameId, long classPK,
177 com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.NoSuchWebsiteException,
179 com.liferay.portal.SystemException;
180
181 public com.liferay.portal.model.Website findByC_C_C_Last(long companyId,
182 long classNameId, long classPK,
183 com.liferay.portal.kernel.util.OrderByComparator obc)
184 throws com.liferay.portal.NoSuchWebsiteException,
185 com.liferay.portal.SystemException;
186
187 public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
188 long websiteId, long companyId, long classNameId, long classPK,
189 com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.NoSuchWebsiteException,
191 com.liferay.portal.SystemException;
192
193 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
194 long companyId, long classNameId, long classPK, boolean primary)
195 throws com.liferay.portal.SystemException;
196
197 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
198 long companyId, long classNameId, long classPK, boolean primary,
199 int start, int end) throws com.liferay.portal.SystemException;
200
201 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
202 long companyId, long classNameId, long classPK, boolean primary,
203 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
204 throws com.liferay.portal.SystemException;
205
206 public com.liferay.portal.model.Website findByC_C_C_P_First(
207 long companyId, long classNameId, long classPK, boolean primary,
208 com.liferay.portal.kernel.util.OrderByComparator obc)
209 throws com.liferay.portal.NoSuchWebsiteException,
210 com.liferay.portal.SystemException;
211
212 public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId,
213 long classNameId, long classPK, boolean primary,
214 com.liferay.portal.kernel.util.OrderByComparator obc)
215 throws com.liferay.portal.NoSuchWebsiteException,
216 com.liferay.portal.SystemException;
217
218 public com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
219 long websiteId, long companyId, long classNameId, long classPK,
220 boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.NoSuchWebsiteException,
222 com.liferay.portal.SystemException;
223
224 public java.util.List<Object> findWithDynamicQuery(
225 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
226 throws com.liferay.portal.SystemException;
227
228 public java.util.List<Object> findWithDynamicQuery(
229 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
230 int end) throws com.liferay.portal.SystemException;
231
232 public java.util.List<com.liferay.portal.model.Website> findAll()
233 throws com.liferay.portal.SystemException;
234
235 public java.util.List<com.liferay.portal.model.Website> findAll(int start,
236 int end) throws com.liferay.portal.SystemException;
237
238 public java.util.List<com.liferay.portal.model.Website> findAll(int start,
239 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
240 throws com.liferay.portal.SystemException;
241
242 public void removeByCompanyId(long companyId)
243 throws com.liferay.portal.SystemException;
244
245 public void removeByUserId(long userId)
246 throws com.liferay.portal.SystemException;
247
248 public void removeByC_C(long companyId, long classNameId)
249 throws com.liferay.portal.SystemException;
250
251 public void removeByC_C_C(long companyId, long classNameId, long classPK)
252 throws com.liferay.portal.SystemException;
253
254 public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
255 boolean primary) throws com.liferay.portal.SystemException;
256
257 public void removeAll() throws com.liferay.portal.SystemException;
258
259 public int countByCompanyId(long companyId)
260 throws com.liferay.portal.SystemException;
261
262 public int countByUserId(long userId)
263 throws com.liferay.portal.SystemException;
264
265 public int countByC_C(long companyId, long classNameId)
266 throws com.liferay.portal.SystemException;
267
268 public int countByC_C_C(long companyId, long classNameId, long classPK)
269 throws com.liferay.portal.SystemException;
270
271 public int countByC_C_C_P(long companyId, long classNameId, long classPK,
272 boolean primary) throws com.liferay.portal.SystemException;
273
274 public int countAll() throws com.liferay.portal.SystemException;
275
276 public void registerListener(
277 com.liferay.portal.model.ModelListener listener);
278
279 public void unregisterListener(
280 com.liferay.portal.model.ModelListener listener);
281 }