1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Layout;
18
19
32 public interface LayoutPersistence extends BasePersistence<Layout> {
33 public void cacheResult(com.liferay.portal.model.Layout layout);
34
35 public void cacheResult(
36 java.util.List<com.liferay.portal.model.Layout> layouts);
37
38 public com.liferay.portal.model.Layout create(long plid);
39
40 public com.liferay.portal.model.Layout remove(long plid)
41 throws com.liferay.portal.NoSuchLayoutException,
42 com.liferay.portal.SystemException;
43
44
47 public com.liferay.portal.model.Layout update(
48 com.liferay.portal.model.Layout layout)
49 throws com.liferay.portal.SystemException;
50
51 public com.liferay.portal.model.Layout updateImpl(
52 com.liferay.portal.model.Layout layout, boolean merge)
53 throws com.liferay.portal.SystemException;
54
55 public com.liferay.portal.model.Layout findByPrimaryKey(long plid)
56 throws com.liferay.portal.NoSuchLayoutException,
57 com.liferay.portal.SystemException;
58
59 public com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
60 throws com.liferay.portal.SystemException;
61
62 public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
63 long groupId) throws com.liferay.portal.SystemException;
64
65 public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
66 long groupId, int start, int end)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portal.model.Layout> findByGroupId(
70 long groupId, int start, int end,
71 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72 throws com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Layout findByGroupId_First(long groupId,
75 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76 throws com.liferay.portal.NoSuchLayoutException,
77 com.liferay.portal.SystemException;
78
79 public com.liferay.portal.model.Layout findByGroupId_Last(long groupId,
80 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81 throws com.liferay.portal.NoSuchLayoutException,
82 com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext(
85 long plid, long groupId,
86 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87 throws com.liferay.portal.NoSuchLayoutException,
88 com.liferay.portal.SystemException;
89
90 public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
91 long companyId) throws com.liferay.portal.SystemException;
92
93 public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
94 long companyId, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
98 long companyId, int start, int end,
99 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100 throws com.liferay.portal.SystemException;
101
102 public com.liferay.portal.model.Layout findByCompanyId_First(
103 long companyId,
104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105 throws com.liferay.portal.NoSuchLayoutException,
106 com.liferay.portal.SystemException;
107
108 public com.liferay.portal.model.Layout findByCompanyId_Last(
109 long companyId,
110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111 throws com.liferay.portal.NoSuchLayoutException,
112 com.liferay.portal.SystemException;
113
114 public com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext(
115 long plid, long companyId,
116 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117 throws com.liferay.portal.NoSuchLayoutException,
118 com.liferay.portal.SystemException;
119
120 public com.liferay.portal.model.Layout findByDLFolderId(long dlFolderId)
121 throws com.liferay.portal.NoSuchLayoutException,
122 com.liferay.portal.SystemException;
123
124 public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId)
125 throws com.liferay.portal.SystemException;
126
127 public com.liferay.portal.model.Layout fetchByDLFolderId(long dlFolderId,
128 boolean retrieveFromCache) throws com.liferay.portal.SystemException;
129
130 public com.liferay.portal.model.Layout findByIconImageId(long iconImageId)
131 throws com.liferay.portal.NoSuchLayoutException,
132 com.liferay.portal.SystemException;
133
134 public com.liferay.portal.model.Layout fetchByIconImageId(long iconImageId)
135 throws com.liferay.portal.SystemException;
136
137 public com.liferay.portal.model.Layout fetchByIconImageId(
138 long iconImageId, boolean retrieveFromCache)
139 throws com.liferay.portal.SystemException;
140
141 public java.util.List<com.liferay.portal.model.Layout> findByG_P(
142 long groupId, boolean privateLayout)
143 throws com.liferay.portal.SystemException;
144
145 public java.util.List<com.liferay.portal.model.Layout> findByG_P(
146 long groupId, boolean privateLayout, int start, int end)
147 throws com.liferay.portal.SystemException;
148
149 public java.util.List<com.liferay.portal.model.Layout> findByG_P(
150 long groupId, boolean privateLayout, int start, int end,
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152 throws com.liferay.portal.SystemException;
153
154 public com.liferay.portal.model.Layout findByG_P_First(long groupId,
155 boolean privateLayout,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.NoSuchLayoutException,
158 com.liferay.portal.SystemException;
159
160 public com.liferay.portal.model.Layout findByG_P_Last(long groupId,
161 boolean privateLayout,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.NoSuchLayoutException,
164 com.liferay.portal.SystemException;
165
166 public com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(long plid,
167 long groupId, boolean privateLayout,
168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169 throws com.liferay.portal.NoSuchLayoutException,
170 com.liferay.portal.SystemException;
171
172 public com.liferay.portal.model.Layout findByG_P_L(long groupId,
173 boolean privateLayout, long layoutId)
174 throws com.liferay.portal.NoSuchLayoutException,
175 com.liferay.portal.SystemException;
176
177 public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
178 boolean privateLayout, long layoutId)
179 throws com.liferay.portal.SystemException;
180
181 public com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
182 boolean privateLayout, long layoutId, boolean retrieveFromCache)
183 throws com.liferay.portal.SystemException;
184
185 public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
186 long groupId, boolean privateLayout, long parentLayoutId)
187 throws com.liferay.portal.SystemException;
188
189 public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
190 long groupId, boolean privateLayout, long parentLayoutId, int start,
191 int end) throws com.liferay.portal.SystemException;
192
193 public java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
194 long groupId, boolean privateLayout, long parentLayoutId, int start,
195 int end,
196 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197 throws com.liferay.portal.SystemException;
198
199 public com.liferay.portal.model.Layout findByG_P_P_First(long groupId,
200 boolean privateLayout, long parentLayoutId,
201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202 throws com.liferay.portal.NoSuchLayoutException,
203 com.liferay.portal.SystemException;
204
205 public com.liferay.portal.model.Layout findByG_P_P_Last(long groupId,
206 boolean privateLayout, long parentLayoutId,
207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208 throws com.liferay.portal.NoSuchLayoutException,
209 com.liferay.portal.SystemException;
210
211 public com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
212 long plid, long groupId, boolean privateLayout, long parentLayoutId,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.NoSuchLayoutException,
215 com.liferay.portal.SystemException;
216
217 public com.liferay.portal.model.Layout findByG_P_F(long groupId,
218 boolean privateLayout, java.lang.String friendlyURL)
219 throws com.liferay.portal.NoSuchLayoutException,
220 com.liferay.portal.SystemException;
221
222 public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
223 boolean privateLayout, java.lang.String friendlyURL)
224 throws com.liferay.portal.SystemException;
225
226 public com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
227 boolean privateLayout, java.lang.String friendlyURL,
228 boolean retrieveFromCache) throws com.liferay.portal.SystemException;
229
230 public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
231 long groupId, boolean privateLayout, java.lang.String type)
232 throws com.liferay.portal.SystemException;
233
234 public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
235 long groupId, boolean privateLayout, java.lang.String type, int start,
236 int end) throws com.liferay.portal.SystemException;
237
238 public java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
239 long groupId, boolean privateLayout, java.lang.String type, int start,
240 int end,
241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242 throws com.liferay.portal.SystemException;
243
244 public com.liferay.portal.model.Layout findByG_P_T_First(long groupId,
245 boolean privateLayout, java.lang.String type,
246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247 throws com.liferay.portal.NoSuchLayoutException,
248 com.liferay.portal.SystemException;
249
250 public com.liferay.portal.model.Layout findByG_P_T_Last(long groupId,
251 boolean privateLayout, java.lang.String type,
252 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253 throws com.liferay.portal.NoSuchLayoutException,
254 com.liferay.portal.SystemException;
255
256 public com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext(
257 long plid, long groupId, boolean privateLayout, java.lang.String type,
258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259 throws com.liferay.portal.NoSuchLayoutException,
260 com.liferay.portal.SystemException;
261
262 public java.util.List<com.liferay.portal.model.Layout> findAll()
263 throws com.liferay.portal.SystemException;
264
265 public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
266 int end) throws com.liferay.portal.SystemException;
267
268 public java.util.List<com.liferay.portal.model.Layout> findAll(int start,
269 int end,
270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271 throws com.liferay.portal.SystemException;
272
273 public void removeByGroupId(long groupId)
274 throws com.liferay.portal.SystemException;
275
276 public void removeByCompanyId(long companyId)
277 throws com.liferay.portal.SystemException;
278
279 public void removeByDLFolderId(long dlFolderId)
280 throws com.liferay.portal.NoSuchLayoutException,
281 com.liferay.portal.SystemException;
282
283 public void removeByIconImageId(long iconImageId)
284 throws com.liferay.portal.NoSuchLayoutException,
285 com.liferay.portal.SystemException;
286
287 public void removeByG_P(long groupId, boolean privateLayout)
288 throws com.liferay.portal.SystemException;
289
290 public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
291 throws com.liferay.portal.NoSuchLayoutException,
292 com.liferay.portal.SystemException;
293
294 public void removeByG_P_P(long groupId, boolean privateLayout,
295 long parentLayoutId) throws com.liferay.portal.SystemException;
296
297 public void removeByG_P_F(long groupId, boolean privateLayout,
298 java.lang.String friendlyURL)
299 throws com.liferay.portal.NoSuchLayoutException,
300 com.liferay.portal.SystemException;
301
302 public void removeByG_P_T(long groupId, boolean privateLayout,
303 java.lang.String type) throws com.liferay.portal.SystemException;
304
305 public void removeAll() throws com.liferay.portal.SystemException;
306
307 public int countByGroupId(long groupId)
308 throws com.liferay.portal.SystemException;
309
310 public int countByCompanyId(long companyId)
311 throws com.liferay.portal.SystemException;
312
313 public int countByDLFolderId(long dlFolderId)
314 throws com.liferay.portal.SystemException;
315
316 public int countByIconImageId(long iconImageId)
317 throws com.liferay.portal.SystemException;
318
319 public int countByG_P(long groupId, boolean privateLayout)
320 throws com.liferay.portal.SystemException;
321
322 public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
323 throws com.liferay.portal.SystemException;
324
325 public int countByG_P_P(long groupId, boolean privateLayout,
326 long parentLayoutId) throws com.liferay.portal.SystemException;
327
328 public int countByG_P_F(long groupId, boolean privateLayout,
329 java.lang.String friendlyURL) throws com.liferay.portal.SystemException;
330
331 public int countByG_P_T(long groupId, boolean privateLayout,
332 java.lang.String type) throws com.liferay.portal.SystemException;
333
334 public int countAll() throws com.liferay.portal.SystemException;
335 }