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 obc)
66 throws com.liferay.portal.kernel.exception.SystemException;
67
68 public com.liferay.portal.model.Website findByCompanyId_First(
69 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.NoSuchWebsiteException,
71 com.liferay.portal.kernel.exception.SystemException;
72
73 public com.liferay.portal.model.Website findByCompanyId_Last(
74 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
75 throws com.liferay.portal.NoSuchWebsiteException,
76 com.liferay.portal.kernel.exception.SystemException;
77
78 public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
79 long websiteId, long companyId,
80 com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.NoSuchWebsiteException,
82 com.liferay.portal.kernel.exception.SystemException;
83
84 public java.util.List<com.liferay.portal.model.Website> findByUserId(
85 long userId) throws com.liferay.portal.kernel.exception.SystemException;
86
87 public java.util.List<com.liferay.portal.model.Website> findByUserId(
88 long userId, int start, int end)
89 throws com.liferay.portal.kernel.exception.SystemException;
90
91 public java.util.List<com.liferay.portal.model.Website> findByUserId(
92 long userId, int start, int end,
93 com.liferay.portal.kernel.util.OrderByComparator obc)
94 throws com.liferay.portal.kernel.exception.SystemException;
95
96 public com.liferay.portal.model.Website findByUserId_First(long userId,
97 com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.NoSuchWebsiteException,
99 com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portal.model.Website findByUserId_Last(long userId,
102 com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.NoSuchWebsiteException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
107 long websiteId, long userId,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.NoSuchWebsiteException,
110 com.liferay.portal.kernel.exception.SystemException;
111
112 public java.util.List<com.liferay.portal.model.Website> findByC_C(
113 long companyId, long classNameId)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public java.util.List<com.liferay.portal.model.Website> findByC_C(
117 long companyId, long classNameId, int start, int end)
118 throws com.liferay.portal.kernel.exception.SystemException;
119
120 public java.util.List<com.liferay.portal.model.Website> findByC_C(
121 long companyId, long classNameId, int start, int end,
122 com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.kernel.exception.SystemException;
124
125 public com.liferay.portal.model.Website findByC_C_First(long companyId,
126 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.NoSuchWebsiteException,
128 com.liferay.portal.kernel.exception.SystemException;
129
130 public com.liferay.portal.model.Website findByC_C_Last(long companyId,
131 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.NoSuchWebsiteException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 public com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
136 long websiteId, long companyId, long classNameId,
137 com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.NoSuchWebsiteException,
139 com.liferay.portal.kernel.exception.SystemException;
140
141 public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
142 long companyId, long classNameId, long classPK)
143 throws 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, int start, int end)
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 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 public com.liferay.portal.model.Website findByC_C_C_First(long companyId,
155 long classNameId, long classPK,
156 com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.NoSuchWebsiteException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160 public com.liferay.portal.model.Website findByC_C_C_Last(long companyId,
161 long classNameId, long classPK,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.NoSuchWebsiteException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166 public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
167 long websiteId, long companyId, long classNameId, long classPK,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.NoSuchWebsiteException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
173 long companyId, long classNameId, long classPK, boolean primary)
174 throws 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 int start, int end)
179 throws com.liferay.portal.kernel.exception.SystemException;
180
181 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
182 long companyId, long classNameId, long classPK, boolean primary,
183 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186 public com.liferay.portal.model.Website findByC_C_C_P_First(
187 long companyId, long classNameId, long classPK, boolean primary,
188 com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.NoSuchWebsiteException,
190 com.liferay.portal.kernel.exception.SystemException;
191
192 public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId,
193 long classNameId, long classPK, boolean primary,
194 com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.NoSuchWebsiteException,
196 com.liferay.portal.kernel.exception.SystemException;
197
198 public com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
199 long websiteId, long companyId, long classNameId, long classPK,
200 boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.NoSuchWebsiteException,
202 com.liferay.portal.kernel.exception.SystemException;
203
204 public java.util.List<com.liferay.portal.model.Website> findAll()
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207 public java.util.List<com.liferay.portal.model.Website> findAll(int start,
208 int end) throws com.liferay.portal.kernel.exception.SystemException;
209
210 public java.util.List<com.liferay.portal.model.Website> findAll(int start,
211 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
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 }