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