2 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 2.1 of the License, or (at your option)
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15 package com.cgi.ent.portlet.webclasseur.service.persistence;
17 import com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail;
19 import com.liferay.portal.service.persistence.BasePersistence;
22 * The persistence interface for the EspaceDeTravail service.
25 * Caching information and settings can be found in <code>portal.properties</code>
28 * @author Brian Wing Shun Chan
29 * @see EspaceDeTravailPersistenceImpl
30 * @see EspaceDeTravailUtil
33 public interface EspaceDeTravailPersistence extends BasePersistence<EspaceDeTravail> {
35 * NOTE FOR DEVELOPERS:
37 * Never modify or reference this interface directly. Always use {@link EspaceDeTravailUtil} to access the EspaceDeTravail persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
41 * Caches the EspaceDeTravail in the entity cache if it is enabled.
43 * @param espaceDeTravail the EspaceDeTravail
45 public void cacheResult(
46 com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail espaceDeTravail);
49 * Caches the EspaceDeTravails in the entity cache if it is enabled.
51 * @param espaceDeTravails the EspaceDeTravails
53 public void cacheResult(
54 java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> espaceDeTravails);
57 * Creates a new EspaceDeTravail with the primary key. Does not add the EspaceDeTravail to the database.
59 * @param espaceDeTravailId the primary key for the new EspaceDeTravail
60 * @return the new EspaceDeTravail
62 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail create(
63 long espaceDeTravailId);
66 * Removes the EspaceDeTravail with the primary key from the database. Also notifies the appropriate model listeners.
68 * @param espaceDeTravailId the primary key of the EspaceDeTravail
69 * @return the EspaceDeTravail that was removed
70 * @throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException if a EspaceDeTravail with the primary key could not be found
71 * @throws SystemException if a system exception occurred
73 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail remove(
74 long espaceDeTravailId)
75 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
76 com.liferay.portal.kernel.exception.SystemException;
78 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail updateImpl(
79 com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail espaceDeTravail,
81 throws com.liferay.portal.kernel.exception.SystemException;
84 * Returns the EspaceDeTravail with the primary key or throws a {@link com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException} if it could not be found.
86 * @param espaceDeTravailId the primary key of the EspaceDeTravail
87 * @return the EspaceDeTravail
88 * @throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException if a EspaceDeTravail with the primary key could not be found
89 * @throws SystemException if a system exception occurred
91 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail findByPrimaryKey(
92 long espaceDeTravailId)
93 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
94 com.liferay.portal.kernel.exception.SystemException;
97 * Returns the EspaceDeTravail with the primary key or returns <code>null</code> if it could not be found.
99 * @param espaceDeTravailId the primary key of the EspaceDeTravail
100 * @return the EspaceDeTravail, or <code>null</code> if a EspaceDeTravail with the primary key could not be found
101 * @throws SystemException if a system exception occurred
103 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail fetchByPrimaryKey(
104 long espaceDeTravailId)
105 throws com.liferay.portal.kernel.exception.SystemException;
108 * Returns the EspaceDeTravail where codeLdap = ? or throws a {@link com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException} if it could not be found.
110 * @param codeLdap the code ldap
111 * @return the matching EspaceDeTravail
112 * @throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException if a matching EspaceDeTravail could not be found
113 * @throws SystemException if a system exception occurred
115 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail findByCodeLdap(
116 java.lang.String codeLdap)
117 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
118 com.liferay.portal.kernel.exception.SystemException;
121 * Returns the EspaceDeTravail where codeLdap = ? or returns <code>null</code> if it could not be found. Uses the finder cache.
123 * @param codeLdap the code ldap
124 * @return the matching EspaceDeTravail, or <code>null</code> if a matching EspaceDeTravail could not be found
125 * @throws SystemException if a system exception occurred
127 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail fetchByCodeLdap(
128 java.lang.String codeLdap)
129 throws com.liferay.portal.kernel.exception.SystemException;
132 * Returns the EspaceDeTravail where codeLdap = ? or returns <code>null</code> if it could not be found, optionally using the finder cache.
134 * @param codeLdap the code ldap
135 * @param retrieveFromCache whether to use the finder cache
136 * @return the matching EspaceDeTravail, or <code>null</code> if a matching EspaceDeTravail could not be found
137 * @throws SystemException if a system exception occurred
139 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail fetchByCodeLdap(
140 java.lang.String codeLdap, boolean retrieveFromCache)
141 throws com.liferay.portal.kernel.exception.SystemException;
144 * Returns all the EspaceDeTravails where auteurId = ?.
146 * @param auteurId the auteur ID
147 * @return the matching EspaceDeTravails
148 * @throws SystemException if a system exception occurred
150 public java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> findByuserId(
152 throws com.liferay.portal.kernel.exception.SystemException;
155 * Returns a range of all the EspaceDeTravails where auteurId = ?.
158 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
161 * @param auteurId the auteur ID
162 * @param start the lower bound of the range of EspaceDeTravails
163 * @param end the upper bound of the range of EspaceDeTravails (not inclusive)
164 * @return the range of matching EspaceDeTravails
165 * @throws SystemException if a system exception occurred
167 public java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> findByuserId(
168 long auteurId, int start, int end)
169 throws com.liferay.portal.kernel.exception.SystemException;
172 * Returns an ordered range of all the EspaceDeTravails where auteurId = ?.
175 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
178 * @param auteurId the auteur ID
179 * @param start the lower bound of the range of EspaceDeTravails
180 * @param end the upper bound of the range of EspaceDeTravails (not inclusive)
181 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
182 * @return the ordered range of matching EspaceDeTravails
183 * @throws SystemException if a system exception occurred
185 public java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> findByuserId(
186 long auteurId, int start, int end,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.kernel.exception.SystemException;
191 * Returns the first EspaceDeTravail in the ordered set where auteurId = ?.
194 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
197 * @param auteurId the auteur ID
198 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199 * @return the first matching EspaceDeTravail
200 * @throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException if a matching EspaceDeTravail could not be found
201 * @throws SystemException if a system exception occurred
203 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail findByuserId_First(
205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
207 com.liferay.portal.kernel.exception.SystemException;
210 * Returns the last EspaceDeTravail in the ordered set where auteurId = ?.
213 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
216 * @param auteurId the auteur ID
217 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
218 * @return the last matching EspaceDeTravail
219 * @throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException if a matching EspaceDeTravail could not be found
220 * @throws SystemException if a system exception occurred
222 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail findByuserId_Last(
224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
226 com.liferay.portal.kernel.exception.SystemException;
229 * Returns the EspaceDeTravails before and after the current EspaceDeTravail in the ordered set where auteurId = ?.
232 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
235 * @param espaceDeTravailId the primary key of the current EspaceDeTravail
236 * @param auteurId the auteur ID
237 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
238 * @return the previous, current, and next EspaceDeTravail
239 * @throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException if a EspaceDeTravail with the primary key could not be found
240 * @throws SystemException if a system exception occurred
242 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail[] findByuserId_PrevAndNext(
243 long espaceDeTravailId, long auteurId,
244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
246 com.liferay.portal.kernel.exception.SystemException;
249 * Returns all the EspaceDeTravails where auteurId = ? and type = ?.
251 * @param auteurId the auteur ID
252 * @param type the type
253 * @return the matching EspaceDeTravails
254 * @throws SystemException if a system exception occurred
256 public java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> findByuseridANDtype(
257 long auteurId, int type)
258 throws com.liferay.portal.kernel.exception.SystemException;
261 * Returns a range of all the EspaceDeTravails where auteurId = ? and type = ?.
264 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
267 * @param auteurId the auteur ID
268 * @param type the type
269 * @param start the lower bound of the range of EspaceDeTravails
270 * @param end the upper bound of the range of EspaceDeTravails (not inclusive)
271 * @return the range of matching EspaceDeTravails
272 * @throws SystemException if a system exception occurred
274 public java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> findByuseridANDtype(
275 long auteurId, int type, int start, int end)
276 throws com.liferay.portal.kernel.exception.SystemException;
279 * Returns an ordered range of all the EspaceDeTravails where auteurId = ? and type = ?.
282 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
285 * @param auteurId the auteur ID
286 * @param type the type
287 * @param start the lower bound of the range of EspaceDeTravails
288 * @param end the upper bound of the range of EspaceDeTravails (not inclusive)
289 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
290 * @return the ordered range of matching EspaceDeTravails
291 * @throws SystemException if a system exception occurred
293 public java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> findByuseridANDtype(
294 long auteurId, int type, int start, int end,
295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296 throws com.liferay.portal.kernel.exception.SystemException;
299 * Returns the first EspaceDeTravail in the ordered set where auteurId = ? and type = ?.
302 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
305 * @param auteurId the auteur ID
306 * @param type the type
307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
308 * @return the first matching EspaceDeTravail
309 * @throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException if a matching EspaceDeTravail could not be found
310 * @throws SystemException if a system exception occurred
312 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail findByuseridANDtype_First(
313 long auteurId, int type,
314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
316 com.liferay.portal.kernel.exception.SystemException;
319 * Returns the last EspaceDeTravail in the ordered set where auteurId = ? and type = ?.
322 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
325 * @param auteurId the auteur ID
326 * @param type the type
327 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
328 * @return the last matching EspaceDeTravail
329 * @throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException if a matching EspaceDeTravail could not be found
330 * @throws SystemException if a system exception occurred
332 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail findByuseridANDtype_Last(
333 long auteurId, int type,
334 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
336 com.liferay.portal.kernel.exception.SystemException;
339 * Returns the EspaceDeTravails before and after the current EspaceDeTravail in the ordered set where auteurId = ? and type = ?.
342 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
345 * @param espaceDeTravailId the primary key of the current EspaceDeTravail
346 * @param auteurId the auteur ID
347 * @param type the type
348 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
349 * @return the previous, current, and next EspaceDeTravail
350 * @throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException if a EspaceDeTravail with the primary key could not be found
351 * @throws SystemException if a system exception occurred
353 public com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail[] findByuseridANDtype_PrevAndNext(
354 long espaceDeTravailId, long auteurId, int type,
355 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
357 com.liferay.portal.kernel.exception.SystemException;
360 * Returns all the EspaceDeTravails.
362 * @return the EspaceDeTravails
363 * @throws SystemException if a system exception occurred
365 public java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> findAll()
366 throws com.liferay.portal.kernel.exception.SystemException;
369 * Returns a range of all the EspaceDeTravails.
372 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
375 * @param start the lower bound of the range of EspaceDeTravails
376 * @param end the upper bound of the range of EspaceDeTravails (not inclusive)
377 * @return the range of EspaceDeTravails
378 * @throws SystemException if a system exception occurred
380 public java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> findAll(
382 throws com.liferay.portal.kernel.exception.SystemException;
385 * Returns an ordered range of all the EspaceDeTravails.
388 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
391 * @param start the lower bound of the range of EspaceDeTravails
392 * @param end the upper bound of the range of EspaceDeTravails (not inclusive)
393 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
394 * @return the ordered range of EspaceDeTravails
395 * @throws SystemException if a system exception occurred
397 public java.util.List<com.cgi.ent.portlet.webclasseur.model.EspaceDeTravail> findAll(
399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400 throws com.liferay.portal.kernel.exception.SystemException;
403 * Removes the EspaceDeTravail where codeLdap = ? from the database.
405 * @param codeLdap the code ldap
406 * @throws SystemException if a system exception occurred
408 public void removeByCodeLdap(java.lang.String codeLdap)
409 throws com.cgi.ent.portlet.webclasseur.NoSuchEspaceDeTravailException,
410 com.liferay.portal.kernel.exception.SystemException;
413 * Removes all the EspaceDeTravails where auteurId = ? from the database.
415 * @param auteurId the auteur ID
416 * @throws SystemException if a system exception occurred
418 public void removeByuserId(long auteurId)
419 throws com.liferay.portal.kernel.exception.SystemException;
422 * Removes all the EspaceDeTravails where auteurId = ? and type = ? from the database.
424 * @param auteurId the auteur ID
425 * @param type the type
426 * @throws SystemException if a system exception occurred
428 public void removeByuseridANDtype(long auteurId, int type)
429 throws com.liferay.portal.kernel.exception.SystemException;
432 * Removes all the EspaceDeTravails from the database.
434 * @throws SystemException if a system exception occurred
436 public void removeAll()
437 throws com.liferay.portal.kernel.exception.SystemException;
440 * Returns the number of EspaceDeTravails where codeLdap = ?.
442 * @param codeLdap the code ldap
443 * @return the number of matching EspaceDeTravails
444 * @throws SystemException if a system exception occurred
446 public int countByCodeLdap(java.lang.String codeLdap)
447 throws com.liferay.portal.kernel.exception.SystemException;
450 * Returns the number of EspaceDeTravails where auteurId = ?.
452 * @param auteurId the auteur ID
453 * @return the number of matching EspaceDeTravails
454 * @throws SystemException if a system exception occurred
456 public int countByuserId(long auteurId)
457 throws com.liferay.portal.kernel.exception.SystemException;
460 * Returns the number of EspaceDeTravails where auteurId = ? and type = ?.
462 * @param auteurId the auteur ID
463 * @param type the type
464 * @return the number of matching EspaceDeTravails
465 * @throws SystemException if a system exception occurred
467 public int countByuseridANDtype(long auteurId, int type)
468 throws com.liferay.portal.kernel.exception.SystemException;
471 * Returns the number of EspaceDeTravails.
473 * @return the number of EspaceDeTravails
474 * @throws SystemException if a system exception occurred
476 public int countAll()
477 throws com.liferay.portal.kernel.exception.SystemException;