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.SystemException;
43
44
47 public com.liferay.portal.model.Website update(
48 com.liferay.portal.model.Website website)
49 throws com.liferay.portal.SystemException;
50
51 public com.liferay.portal.model.Website updateImpl(
52 com.liferay.portal.model.Website website, boolean merge)
53 throws com.liferay.portal.SystemException;
54
55 public com.liferay.portal.model.Website findByPrimaryKey(long websiteId)
56 throws com.liferay.portal.NoSuchWebsiteException,
57 com.liferay.portal.SystemException;
58
59 public com.liferay.portal.model.Website fetchByPrimaryKey(long websiteId)
60 throws com.liferay.portal.SystemException;
61
62 public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
63 long companyId) throws com.liferay.portal.SystemException;
64
65 public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
66 long companyId, int start, int end)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
70 long companyId, int start, int end,
71 com.liferay.portal.kernel.util.OrderByComparator obc)
72 throws com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Website findByCompanyId_First(
75 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
76 throws com.liferay.portal.NoSuchWebsiteException,
77 com.liferay.portal.SystemException;
78
79 public com.liferay.portal.model.Website findByCompanyId_Last(
80 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.NoSuchWebsiteException,
82 com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
85 long websiteId, long companyId,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.NoSuchWebsiteException,
88 com.liferay.portal.SystemException;
89
90 public java.util.List<com.liferay.portal.model.Website> findByUserId(
91 long userId) throws com.liferay.portal.SystemException;
92
93 public java.util.List<com.liferay.portal.model.Website> findByUserId(
94 long userId, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portal.model.Website> findByUserId(
98 long userId, int start, int end,
99 com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.SystemException;
101
102 public com.liferay.portal.model.Website findByUserId_First(long userId,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.NoSuchWebsiteException,
105 com.liferay.portal.SystemException;
106
107 public com.liferay.portal.model.Website findByUserId_Last(long userId,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.NoSuchWebsiteException,
110 com.liferay.portal.SystemException;
111
112 public com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
113 long websiteId, long userId,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.NoSuchWebsiteException,
116 com.liferay.portal.SystemException;
117
118 public java.util.List<com.liferay.portal.model.Website> findByC_C(
119 long companyId, long classNameId)
120 throws com.liferay.portal.SystemException;
121
122 public java.util.List<com.liferay.portal.model.Website> findByC_C(
123 long companyId, long classNameId, int start, int end)
124 throws com.liferay.portal.SystemException;
125
126 public java.util.List<com.liferay.portal.model.Website> findByC_C(
127 long companyId, long classNameId, int start, int end,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.SystemException;
130
131 public com.liferay.portal.model.Website findByC_C_First(long companyId,
132 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.NoSuchWebsiteException,
134 com.liferay.portal.SystemException;
135
136 public com.liferay.portal.model.Website findByC_C_Last(long companyId,
137 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.NoSuchWebsiteException,
139 com.liferay.portal.SystemException;
140
141 public com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
142 long websiteId, long companyId, long classNameId,
143 com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.NoSuchWebsiteException,
145 com.liferay.portal.SystemException;
146
147 public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
148 long companyId, long classNameId, long classPK)
149 throws com.liferay.portal.SystemException;
150
151 public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
152 long companyId, long classNameId, long classPK, int start, int end)
153 throws 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, int start, int end,
157 com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException;
159
160 public com.liferay.portal.model.Website findByC_C_C_First(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.SystemException;
165
166 public com.liferay.portal.model.Website findByC_C_C_Last(long companyId,
167 long classNameId, long classPK,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.NoSuchWebsiteException,
170 com.liferay.portal.SystemException;
171
172 public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
173 long websiteId, long companyId, long classNameId, long classPK,
174 com.liferay.portal.kernel.util.OrderByComparator obc)
175 throws com.liferay.portal.NoSuchWebsiteException,
176 com.liferay.portal.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 throws com.liferay.portal.SystemException;
181
182 public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
183 long companyId, long classNameId, long classPK, boolean primary,
184 int start, int end) throws 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 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.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 obc)
194 throws com.liferay.portal.NoSuchWebsiteException,
195 com.liferay.portal.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 obc)
200 throws com.liferay.portal.NoSuchWebsiteException,
201 com.liferay.portal.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, com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.NoSuchWebsiteException,
207 com.liferay.portal.SystemException;
208
209 public java.util.List<com.liferay.portal.model.Website> findAll()
210 throws com.liferay.portal.SystemException;
211
212 public java.util.List<com.liferay.portal.model.Website> findAll(int start,
213 int end) throws com.liferay.portal.SystemException;
214
215 public java.util.List<com.liferay.portal.model.Website> findAll(int start,
216 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.SystemException;
218
219 public void removeByCompanyId(long companyId)
220 throws com.liferay.portal.SystemException;
221
222 public void removeByUserId(long userId)
223 throws com.liferay.portal.SystemException;
224
225 public void removeByC_C(long companyId, long classNameId)
226 throws com.liferay.portal.SystemException;
227
228 public void removeByC_C_C(long companyId, long classNameId, long classPK)
229 throws com.liferay.portal.SystemException;
230
231 public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
232 boolean primary) throws com.liferay.portal.SystemException;
233
234 public void removeAll() throws com.liferay.portal.SystemException;
235
236 public int countByCompanyId(long companyId)
237 throws com.liferay.portal.SystemException;
238
239 public int countByUserId(long userId)
240 throws com.liferay.portal.SystemException;
241
242 public int countByC_C(long companyId, long classNameId)
243 throws com.liferay.portal.SystemException;
244
245 public int countByC_C_C(long companyId, long classNameId, long classPK)
246 throws com.liferay.portal.SystemException;
247
248 public int countByC_C_C_P(long companyId, long classNameId, long classPK,
249 boolean primary) throws com.liferay.portal.SystemException;
250
251 public int countAll() throws com.liferay.portal.SystemException;
252 }