--- /dev/null
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+
+package com.pentila.entSavoie.agenda.service.persistence;
+
+import com.liferay.portal.service.persistence.BasePersistence;
+
+import com.pentila.entSavoie.agenda.model.RessourceUser;
+
+/**
+ * The persistence interface for the ressource user service.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Igor Barma
+ * @see RessourceUserPersistenceImpl
+ * @see RessourceUserUtil
+ * @generated
+ */
+public interface RessourceUserPersistence extends BasePersistence<RessourceUser> {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this interface directly. Always use {@link RessourceUserUtil} to access the ressource user persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
+ */
+
+ /**
+ * Caches the ressource user in the entity cache if it is enabled.
+ *
+ * @param ressourceUser the ressource user
+ */
+ public void cacheResult(
+ com.pentila.entSavoie.agenda.model.RessourceUser ressourceUser);
+
+ /**
+ * Caches the ressource users in the entity cache if it is enabled.
+ *
+ * @param ressourceUsers the ressource users
+ */
+ public void cacheResult(
+ java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> ressourceUsers);
+
+ /**
+ * Creates a new ressource user with the primary key. Does not add the ressource user to the database.
+ *
+ * @param idRessourceUser the primary key for the new ressource user
+ * @return the new ressource user
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser create(
+ long idRessourceUser);
+
+ /**
+ * Removes the ressource user with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param idRessourceUser the primary key of the ressource user
+ * @return the ressource user that was removed
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a ressource user with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser remove(
+ long idRessourceUser)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ public com.pentila.entSavoie.agenda.model.RessourceUser updateImpl(
+ com.pentila.entSavoie.agenda.model.RessourceUser ressourceUser,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the ressource user with the primary key or throws a {@link com.pentila.entSavoie.agenda.NoSuchRessourceUserException} if it could not be found.
+ *
+ * @param idRessourceUser the primary key of the ressource user
+ * @return the ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a ressource user with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser findByPrimaryKey(
+ long idRessourceUser)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns the ressource user with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param idRessourceUser the primary key of the ressource user
+ * @return the ressource user, or <code>null</code> if a ressource user with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser fetchByPrimaryKey(
+ long idRessourceUser)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns all the ressource users where idRessource = ?.
+ *
+ * @param idRessource the id ressource
+ * @return the matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the ressource users where idRessource = ?.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param idRessource the id ressource
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @return the range of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource(
+ long idRessource, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the ressource users where idRessource = ?.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param idRessource the id ressource
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource(
+ long idRessource, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first ressource user in the ordered set where idRessource = ?.
+ *
+ * @param idRessource the id ressource
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser findByidRessource_First(
+ long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns the first ressource user in the ordered set where idRessource = ?.
+ *
+ * @param idRessource the id ressource
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource user, or <code>null</code> if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser fetchByidRessource_First(
+ long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last ressource user in the ordered set where idRessource = ?.
+ *
+ * @param idRessource the id ressource
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser findByidRessource_Last(
+ long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns the last ressource user in the ordered set where idRessource = ?.
+ *
+ * @param idRessource the id ressource
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource user, or <code>null</code> if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser fetchByidRessource_Last(
+ long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the ressource users before and after the current ressource user in the ordered set where idRessource = ?.
+ *
+ * @param idRessourceUser the primary key of the current ressource user
+ * @param idRessource the id ressource
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a ressource user with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser[] findByidRessource_PrevAndNext(
+ long idRessourceUser, long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns all the ressource users where idUser = ?.
+ *
+ * @param idUser the id user
+ * @return the matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidUser(
+ long idUser) throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the ressource users where idUser = ?.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param idUser the id user
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @return the range of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidUser(
+ long idUser, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the ressource users where idUser = ?.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param idUser the id user
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidUser(
+ long idUser, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first ressource user in the ordered set where idUser = ?.
+ *
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser findByidUser_First(
+ long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns the first ressource user in the ordered set where idUser = ?.
+ *
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource user, or <code>null</code> if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser fetchByidUser_First(
+ long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last ressource user in the ordered set where idUser = ?.
+ *
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser findByidUser_Last(
+ long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns the last ressource user in the ordered set where idUser = ?.
+ *
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource user, or <code>null</code> if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser fetchByidUser_Last(
+ long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the ressource users before and after the current ressource user in the ordered set where idUser = ?.
+ *
+ * @param idRessourceUser the primary key of the current ressource user
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a ressource user with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser[] findByidUser_PrevAndNext(
+ long idRessourceUser, long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns all the ressource users where idRessource = ? and idUser = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @return the matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource_idUser(
+ long idRessource, long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the ressource users where idRessource = ? and idUser = ?.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @return the range of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource_idUser(
+ long idRessource, long idUser, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the ressource users where idRessource = ? and idUser = ?.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource_idUser(
+ long idRessource, long idUser, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first ressource user in the ordered set where idRessource = ? and idUser = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser findByidRessource_idUser_First(
+ long idRessource, long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns the first ressource user in the ordered set where idRessource = ? and idUser = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource user, or <code>null</code> if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser fetchByidRessource_idUser_First(
+ long idRessource, long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last ressource user in the ordered set where idRessource = ? and idUser = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser findByidRessource_idUser_Last(
+ long idRessource, long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns the last ressource user in the ordered set where idRessource = ? and idUser = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource user, or <code>null</code> if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser fetchByidRessource_idUser_Last(
+ long idRessource, long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the ressource users before and after the current ressource user in the ordered set where idRessource = ? and idUser = ?.
+ *
+ * @param idRessourceUser the primary key of the current ressource user
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a ressource user with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser[] findByidRessource_idUser_PrevAndNext(
+ long idRessourceUser, long idRessource, long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns all the ressource users where idRessource = ? and shared = ?.
+ *
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @return the matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource_shared(
+ long idRessource, boolean shared)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the ressource users where idRessource = ? and shared = ?.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @return the range of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource_shared(
+ long idRessource, boolean shared, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the ressource users where idRessource = ? and shared = ?.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource_shared(
+ long idRessource, boolean shared, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first ressource user in the ordered set where idRessource = ? and shared = ?.
+ *
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser findByidRessource_shared_First(
+ long idRessource, boolean shared,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns the first ressource user in the ordered set where idRessource = ? and shared = ?.
+ *
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource user, or <code>null</code> if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser fetchByidRessource_shared_First(
+ long idRessource, boolean shared,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last ressource user in the ordered set where idRessource = ? and shared = ?.
+ *
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser findByidRessource_shared_Last(
+ long idRessource, boolean shared,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns the last ressource user in the ordered set where idRessource = ? and shared = ?.
+ *
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource user, or <code>null</code> if a matching ressource user could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser fetchByidRessource_shared_Last(
+ long idRessource, boolean shared,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the ressource users before and after the current ressource user in the ordered set where idRessource = ? and shared = ?.
+ *
+ * @param idRessourceUser the primary key of the current ressource user
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource user
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceUserException if a ressource user with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.RessourceUser[] findByidRessource_shared_PrevAndNext(
+ long idRessourceUser, long idRessource, boolean shared,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException;
+
+ /**
+ * Returns all the ressource users.
+ *
+ * @return the ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the ressource users.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @return the range of ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the ressource users.
+ *
+ * <p>
+ * 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.
+ * </p>
+ *
+ * @param start the lower bound of the range of ressource users
+ * @param end the upper bound of the range of ressource users (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findAll(
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the ressource users where idRessource = ? from the database.
+ *
+ * @param idRessource the id ressource
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByidRessource(long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the ressource users where idUser = ? from the database.
+ *
+ * @param idUser the id user
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByidUser(long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the ressource users where idRessource = ? and idUser = ? from the database.
+ *
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByidRessource_idUser(long idRessource, long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the ressource users where idRessource = ? and shared = ? from the database.
+ *
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByidRessource_shared(long idRessource, boolean shared)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the ressource users from the database.
+ *
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of ressource users where idRessource = ?.
+ *
+ * @param idRessource the id ressource
+ * @return the number of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByidRessource(long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of ressource users where idUser = ?.
+ *
+ * @param idUser the id user
+ * @return the number of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByidUser(long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of ressource users where idRessource = ? and idUser = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idUser the id user
+ * @return the number of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByidRessource_idUser(long idRessource, long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of ressource users where idRessource = ? and shared = ?.
+ *
+ * @param idRessource the id ressource
+ * @param shared the shared
+ * @return the number of matching ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByidRessource_shared(long idRessource, boolean shared)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of ressource users.
+ *
+ * @return the number of ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+}
\ No newline at end of file