--- /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.RessourceRole;
+
+import java.util.List;
+
+/**
+ * The persistence utility for the ressource role service. This utility wraps {@link RessourceRolePersistenceImpl} 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 RessourceRolePersistence
+ * @see RessourceRolePersistenceImpl
+ * @generated
+ */
+public class RessourceRoleUtil {
+ /*
+ * 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(RessourceRole ressourceRole) {
+ getPersistence().clearCache(ressourceRole);
+ }
+
+ /**
+ * @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<RessourceRole> findWithDynamicQuery(
+ DynamicQuery dynamicQuery) throws SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
+ */
+ public static List<RessourceRole> 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<RessourceRole> 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 RessourceRole update(RessourceRole ressourceRole,
+ boolean merge) throws SystemException {
+ return getPersistence().update(ressourceRole, merge);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
+ */
+ public static RessourceRole update(RessourceRole ressourceRole,
+ boolean merge, ServiceContext serviceContext) throws SystemException {
+ return getPersistence().update(ressourceRole, merge, serviceContext);
+ }
+
+ /**
+ * Caches the ressource role in the entity cache if it is enabled.
+ *
+ * @param ressourceRole the ressource role
+ */
+ public static void cacheResult(
+ com.pentila.entSavoie.agenda.model.RessourceRole ressourceRole) {
+ getPersistence().cacheResult(ressourceRole);
+ }
+
+ /**
+ * Caches the ressource roles in the entity cache if it is enabled.
+ *
+ * @param ressourceRoles the ressource roles
+ */
+ public static void cacheResult(
+ java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> ressourceRoles) {
+ getPersistence().cacheResult(ressourceRoles);
+ }
+
+ /**
+ * Creates a new ressource role with the primary key. Does not add the ressource role to the database.
+ *
+ * @param idRessourceRole the primary key for the new ressource role
+ * @return the new ressource role
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole create(
+ long idRessourceRole) {
+ return getPersistence().create(idRessourceRole);
+ }
+
+ /**
+ * Removes the ressource role with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param idRessourceRole the primary key of the ressource role
+ * @return the ressource role that was removed
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a ressource role with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole remove(
+ long idRessourceRole)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence().remove(idRessourceRole);
+ }
+
+ public static com.pentila.entSavoie.agenda.model.RessourceRole updateImpl(
+ com.pentila.entSavoie.agenda.model.RessourceRole ressourceRole,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().updateImpl(ressourceRole, merge);
+ }
+
+ /**
+ * Returns the ressource role with the primary key or throws a {@link com.pentila.entSavoie.agenda.NoSuchRessourceRoleException} if it could not be found.
+ *
+ * @param idRessourceRole the primary key of the ressource role
+ * @return the ressource role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a ressource role with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole findByPrimaryKey(
+ long idRessourceRole)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence().findByPrimaryKey(idRessourceRole);
+ }
+
+ /**
+ * Returns the ressource role with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param idRessourceRole the primary key of the ressource role
+ * @return the ressource role, or <code>null</code> if a ressource role with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole fetchByPrimaryKey(
+ long idRessourceRole)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByPrimaryKey(idRessourceRole);
+ }
+
+ /**
+ * Returns all the ressource roles where idRessource = ?.
+ *
+ * @param idRessource the id ressource
+ * @return the matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> findByidRessource(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidRessource(idRessource);
+ }
+
+ /**
+ * Returns a range of all the ressource roles 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 roles
+ * @param end the upper bound of the range of ressource roles (not inclusive)
+ * @return the range of matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> 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 roles 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 roles
+ * @param end the upper bound of the range of ressource roles (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> 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 role 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 role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole findByidRessource_First(
+ long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence()
+ .findByidRessource_First(idRessource, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource role 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 role, or <code>null</code> if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole 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 role 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 role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole findByidRessource_Last(
+ long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence()
+ .findByidRessource_Last(idRessource, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource role 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 role, or <code>null</code> if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole 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 roles before and after the current ressource role in the ordered set where idRessource = ?.
+ *
+ * @param idRessourceRole the primary key of the current ressource role
+ * @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 role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a ressource role with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole[] findByidRessource_PrevAndNext(
+ long idRessourceRole, long idRessource,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence()
+ .findByidRessource_PrevAndNext(idRessourceRole, idRessource,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the ressource roles where idRole = ?.
+ *
+ * @param idRole the id role
+ * @return the matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> findByidRole(
+ long idRole) throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidRole(idRole);
+ }
+
+ /**
+ * Returns a range of all the ressource roles where idRole = ?.
+ *
+ * <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 idRole the id role
+ * @param start the lower bound of the range of ressource roles
+ * @param end the upper bound of the range of ressource roles (not inclusive)
+ * @return the range of matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> findByidRole(
+ long idRole, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidRole(idRole, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressource roles where idRole = ?.
+ *
+ * <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 idRole the id role
+ * @param start the lower bound of the range of ressource roles
+ * @param end the upper bound of the range of ressource roles (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> findByidRole(
+ long idRole, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByidRole(idRole, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource role in the ordered set where idRole = ?.
+ *
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole findByidRole_First(
+ long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence().findByidRole_First(idRole, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource role in the ordered set where idRole = ?.
+ *
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource role, or <code>null</code> if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole fetchByidRole_First(
+ long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByidRole_First(idRole, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource role in the ordered set where idRole = ?.
+ *
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole findByidRole_Last(
+ long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence().findByidRole_Last(idRole, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource role in the ordered set where idRole = ?.
+ *
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource role, or <code>null</code> if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole fetchByidRole_Last(
+ long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByidRole_Last(idRole, orderByComparator);
+ }
+
+ /**
+ * Returns the ressource roles before and after the current ressource role in the ordered set where idRole = ?.
+ *
+ * @param idRessourceRole the primary key of the current ressource role
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a ressource role with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole[] findByidRole_PrevAndNext(
+ long idRessourceRole, long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence()
+ .findByidRole_PrevAndNext(idRessourceRole, idRole,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the ressource roles where idRessource = ? and idRole = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idRole the id role
+ * @return the matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> findByidRessource_idRole(
+ long idRessource, long idRole)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidRessource_idRole(idRessource, idRole);
+ }
+
+ /**
+ * Returns a range of all the ressource roles where idRessource = ? and idRole = ?.
+ *
+ * <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 idRole the id role
+ * @param start the lower bound of the range of ressource roles
+ * @param end the upper bound of the range of ressource roles (not inclusive)
+ * @return the range of matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> findByidRessource_idRole(
+ long idRessource, long idRole, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByidRessource_idRole(idRessource, idRole, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressource roles where idRessource = ? and idRole = ?.
+ *
+ * <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 idRole the id role
+ * @param start the lower bound of the range of ressource roles
+ * @param end the upper bound of the range of ressource roles (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> findByidRessource_idRole(
+ long idRessource, long idRole, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByidRessource_idRole(idRessource, idRole, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource role in the ordered set where idRessource = ? and idRole = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole findByidRessource_idRole_First(
+ long idRessource, long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence()
+ .findByidRessource_idRole_First(idRessource, idRole,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource role in the ordered set where idRessource = ? and idRole = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource role, or <code>null</code> if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole fetchByidRessource_idRole_First(
+ long idRessource, long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByidRessource_idRole_First(idRessource, idRole,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource role in the ordered set where idRessource = ? and idRole = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole findByidRessource_idRole_Last(
+ long idRessource, long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence()
+ .findByidRessource_idRole_Last(idRessource, idRole,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource role in the ordered set where idRessource = ? and idRole = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource role, or <code>null</code> if a matching ressource role could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole fetchByidRessource_idRole_Last(
+ long idRessource, long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByidRessource_idRole_Last(idRessource, idRole,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the ressource roles before and after the current ressource role in the ordered set where idRessource = ? and idRole = ?.
+ *
+ * @param idRessourceRole the primary key of the current ressource role
+ * @param idRessource the id ressource
+ * @param idRole the id role
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource role
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceRoleException if a ressource role with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.RessourceRole[] findByidRessource_idRole_PrevAndNext(
+ long idRessourceRole, long idRessource, long idRole,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceRoleException {
+ return getPersistence()
+ .findByidRessource_idRole_PrevAndNext(idRessourceRole,
+ idRessource, idRole, orderByComparator);
+ }
+
+ /**
+ * Returns all the ressource roles.
+ *
+ * @return the ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll();
+ }
+
+ /**
+ * Returns a range of all the ressource roles.
+ *
+ * <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 roles
+ * @param end the upper bound of the range of ressource roles (not inclusive)
+ * @return the range of ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> 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 roles.
+ *
+ * <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 roles
+ * @param end the upper bound of the range of ressource roles (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.RessourceRole> 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 roles 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 roles where idRole = ? from the database.
+ *
+ * @param idRole the id role
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByidRole(long idRole)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByidRole(idRole);
+ }
+
+ /**
+ * Removes all the ressource roles where idRessource = ? and idRole = ? from the database.
+ *
+ * @param idRessource the id ressource
+ * @param idRole the id role
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByidRessource_idRole(long idRessource, long idRole)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByidRessource_idRole(idRessource, idRole);
+ }
+
+ /**
+ * Removes all the ressource roles 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 roles where idRessource = ?.
+ *
+ * @param idRessource the id ressource
+ * @return the number of matching ressource roles
+ * @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 roles where idRole = ?.
+ *
+ * @param idRole the id role
+ * @return the number of matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByidRole(long idRole)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByidRole(idRole);
+ }
+
+ /**
+ * Returns the number of ressource roles where idRessource = ? and idRole = ?.
+ *
+ * @param idRessource the id ressource
+ * @param idRole the id role
+ * @return the number of matching ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByidRessource_idRole(long idRessource, long idRole)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByidRessource_idRole(idRessource, idRole);
+ }
+
+ /**
+ * Returns the number of ressource roles.
+ *
+ * @return the number of ressource roles
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countAll();
+ }
+
+ public static RessourceRolePersistence getPersistence() {
+ if (_persistence == null) {
+ _persistence = (RessourceRolePersistence)PortletBeanLocatorUtil.locate(com.pentila.entSavoie.agenda.service.ClpSerializer.getServletContextName(),
+ RessourceRolePersistence.class.getName());
+
+ ReferenceRegistry.registerReference(RessourceRoleUtil.class,
+ "_persistence");
+ }
+
+ return _persistence;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setPersistence(RessourceRolePersistence persistence) {
+ }
+
+ private static RessourceRolePersistence _persistence;
+}
\ No newline at end of file