--- /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.kernel.bean.PortletBeanLocatorUtil;
+import com.liferay.portal.kernel.dao.orm.DynamicQuery;
+import com.liferay.portal.kernel.exception.SystemException;
+import com.liferay.portal.kernel.util.OrderByComparator;
+import com.liferay.portal.kernel.util.ReferenceRegistry;
+import com.liferay.portal.service.ServiceContext;
+
+import com.pentila.entSavoie.agenda.model.RessourceUser;
+
+import java.util.List;
+
+/**
+ * The persistence utility for the ressource user service. This utility wraps {@link RessourceUserPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Igor Barma
+ * @see RessourceUserPersistence
+ * @see RessourceUserPersistenceImpl
+ * @generated
+ */
+public class RessourceUserUtil {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
+ */
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
+ */
+ public static void clearCache() {
+ getPersistence().clearCache();
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
+ */
+ public static void clearCache(RessourceUser ressourceUser) {
+ getPersistence().clearCache(ressourceUser);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
+ */
+ public long countWithDynamicQuery(DynamicQuery dynamicQuery)
+ throws SystemException {
+ return getPersistence().countWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
+ */
+ public static List<RessourceUser> findWithDynamicQuery(
+ DynamicQuery dynamicQuery) throws SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
+ */
+ public static List<RessourceUser> findWithDynamicQuery(
+ DynamicQuery dynamicQuery, int start, int end)
+ throws SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
+ */
+ public static List<RessourceUser> findWithDynamicQuery(
+ DynamicQuery dynamicQuery, int start, int end,
+ OrderByComparator orderByComparator) throws SystemException {
+ return getPersistence()
+ .findWithDynamicQuery(dynamicQuery, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
+ */
+ public static RessourceUser update(RessourceUser ressourceUser,
+ boolean merge) throws SystemException {
+ return getPersistence().update(ressourceUser, merge);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
+ */
+ public static RessourceUser update(RessourceUser ressourceUser,
+ boolean merge, ServiceContext serviceContext) throws SystemException {
+ return getPersistence().update(ressourceUser, merge, serviceContext);
+ }
+
+ /**
+ * Caches the ressource user in the entity cache if it is enabled.
+ *
+ * @param ressourceUser the ressource user
+ */
+ public static void cacheResult(
+ com.pentila.entSavoie.agenda.model.RessourceUser ressourceUser) {
+ getPersistence().cacheResult(ressourceUser);
+ }
+
+ /**
+ * Caches the ressource users in the entity cache if it is enabled.
+ *
+ * @param ressourceUsers the ressource users
+ */
+ public static void cacheResult(
+ java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> ressourceUsers) {
+ getPersistence().cacheResult(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 static com.pentila.entSavoie.agenda.model.RessourceUser create(
+ long idRessourceUser) {
+ return getPersistence().create(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 static com.pentila.entSavoie.agenda.model.RessourceUser remove(
+ long idRessourceUser)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException {
+ return getPersistence().remove(idRessourceUser);
+ }
+
+ public static com.pentila.entSavoie.agenda.model.RessourceUser updateImpl(
+ com.pentila.entSavoie.agenda.model.RessourceUser ressourceUser,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().updateImpl(ressourceUser, merge);
+ }
+
+ /**
+ * 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 static com.pentila.entSavoie.agenda.model.RessourceUser findByPrimaryKey(
+ long idRessourceUser)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceUserException {
+ return getPersistence().findByPrimaryKey(idRessourceUser);
+ }
+
+ /**
+ * 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 static com.pentila.entSavoie.agenda.model.RessourceUser fetchByPrimaryKey(
+ long idRessourceUser)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByPrimaryKey(idRessourceUser);
+ }
+
+ /**
+ * 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 static java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidRessource(idRessource);
+ }
+
+ /**
+ * 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 static java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource(
+ long idRessource, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidRessource(idRessource, start, end);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource(idRessource, start, end, orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_First(idRessource, orderByComparator);
+ }
+
+ /**
+ * 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 static com.pentila.entSavoie.agenda.model.RessourceUser fetchByidRessource_First(
+ long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByidRessource_First(idRessource, orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_Last(idRessource, orderByComparator);
+ }
+
+ /**
+ * 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 static com.pentila.entSavoie.agenda.model.RessourceUser fetchByidRessource_Last(
+ long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByidRessource_Last(idRessource, orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_PrevAndNext(idRessourceUser, idRessource,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidUser(
+ long idUser) throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidUser(idUser);
+ }
+
+ /**
+ * 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 static java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidUser(
+ long idUser, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidUser(idUser, start, end);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidUser(idUser, start, end, orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence().findByidUser_First(idUser, orderByComparator);
+ }
+
+ /**
+ * 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 static com.pentila.entSavoie.agenda.model.RessourceUser fetchByidUser_First(
+ long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByidUser_First(idUser, orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence().findByidUser_Last(idUser, orderByComparator);
+ }
+
+ /**
+ * 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 static com.pentila.entSavoie.agenda.model.RessourceUser fetchByidUser_Last(
+ long idUser,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByidUser_Last(idUser, orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidUser_PrevAndNext(idRessourceUser, idUser,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource_idUser(
+ long idRessource, long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidRessource_idUser(idRessource, idUser);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_idUser(idRessource, idUser, start, end);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_idUser(idRessource, idUser, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_idUser_First(idRessource, idUser,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .fetchByidRessource_idUser_First(idRessource, idUser,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_idUser_Last(idRessource, idUser,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .fetchByidRessource_idUser_Last(idRessource, idUser,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_idUser_PrevAndNext(idRessourceUser,
+ idRessource, idUser, orderByComparator);
+ }
+
+ /**
+ * 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 static java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findByidRessource_shared(
+ long idRessource, boolean shared)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidRessource_shared(idRessource, shared);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_shared(idRessource, shared, start, end);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_shared(idRessource, shared, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_shared_First(idRessource, shared,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .fetchByidRessource_shared_First(idRessource, shared,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_shared_Last(idRessource, shared,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .fetchByidRessource_shared_Last(idRessource, shared,
+ orderByComparator);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence()
+ .findByidRessource_shared_PrevAndNext(idRessourceUser,
+ idRessource, shared, orderByComparator);
+ }
+
+ /**
+ * Returns all the ressource users.
+ *
+ * @return the ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll();
+ }
+
+ /**
+ * 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 static java.util.List<com.pentila.entSavoie.agenda.model.RessourceUser> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll(start, end);
+ }
+
+ /**
+ * 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 static 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 {
+ return getPersistence().findAll(start, end, orderByComparator);
+ }
+
+ /**
+ * Removes all the ressource users where idRessource = ? from the database.
+ *
+ * @param idRessource the id ressource
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByidRessource(long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByidRessource(idRessource);
+ }
+
+ /**
+ * Removes all the ressource users where idUser = ? from the database.
+ *
+ * @param idUser the id user
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByidUser(long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByidUser(idUser);
+ }
+
+ /**
+ * 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 static void removeByidRessource_idUser(long idRessource, long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByidRessource_idUser(idRessource, idUser);
+ }
+
+ /**
+ * 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 static void removeByidRessource_shared(long idRessource,
+ boolean shared)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByidRessource_shared(idRessource, shared);
+ }
+
+ /**
+ * Removes all the ressource users from the database.
+ *
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeAll();
+ }
+
+ /**
+ * 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 static int countByidRessource(long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByidRessource(idRessource);
+ }
+
+ /**
+ * 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 static int countByidUser(long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByidUser(idUser);
+ }
+
+ /**
+ * 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 static int countByidRessource_idUser(long idRessource, long idUser)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByidRessource_idUser(idRessource, idUser);
+ }
+
+ /**
+ * 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 static int countByidRessource_shared(long idRessource, boolean shared)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByidRessource_shared(idRessource, shared);
+ }
+
+ /**
+ * Returns the number of ressource users.
+ *
+ * @return the number of ressource users
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countAll();
+ }
+
+ public static RessourceUserPersistence getPersistence() {
+ if (_persistence == null) {
+ _persistence = (RessourceUserPersistence)PortletBeanLocatorUtil.locate(com.pentila.entSavoie.agenda.service.ClpSerializer.getServletContextName(),
+ RessourceUserPersistence.class.getName());
+
+ ReferenceRegistry.registerReference(RessourceUserUtil.class,
+ "_persistence");
+ }
+
+ return _persistence;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setPersistence(RessourceUserPersistence persistence) {
+ }
+
+ private static RessourceUserPersistence _persistence;
+}
\ No newline at end of file