--- /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.Ressource;
+
+import java.util.List;
+
+/**
+ * The persistence utility for the ressource service. This utility wraps {@link RessourcePersistenceImpl} 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 RessourcePersistence
+ * @see RessourcePersistenceImpl
+ * @generated
+ */
+public class RessourceUtil {
+ /*
+ * 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(Ressource ressource) {
+ getPersistence().clearCache(ressource);
+ }
+
+ /**
+ * @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<Ressource> findWithDynamicQuery(
+ DynamicQuery dynamicQuery) throws SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
+ */
+ public static List<Ressource> 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<Ressource> 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 Ressource update(Ressource ressource, boolean merge)
+ throws SystemException {
+ return getPersistence().update(ressource, merge);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
+ */
+ public static Ressource update(Ressource ressource, boolean merge,
+ ServiceContext serviceContext) throws SystemException {
+ return getPersistence().update(ressource, merge, serviceContext);
+ }
+
+ /**
+ * Caches the ressource in the entity cache if it is enabled.
+ *
+ * @param ressource the ressource
+ */
+ public static void cacheResult(
+ com.pentila.entSavoie.agenda.model.Ressource ressource) {
+ getPersistence().cacheResult(ressource);
+ }
+
+ /**
+ * Caches the ressources in the entity cache if it is enabled.
+ *
+ * @param ressources the ressources
+ */
+ public static void cacheResult(
+ java.util.List<com.pentila.entSavoie.agenda.model.Ressource> ressources) {
+ getPersistence().cacheResult(ressources);
+ }
+
+ /**
+ * Creates a new ressource with the primary key. Does not add the ressource to the database.
+ *
+ * @param idRessource the primary key for the new ressource
+ * @return the new ressource
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource create(
+ long idRessource) {
+ return getPersistence().create(idRessource);
+ }
+
+ /**
+ * Removes the ressource with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param idRessource the primary key of the ressource
+ * @return the ressource that was removed
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource remove(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence().remove(idRessource);
+ }
+
+ public static com.pentila.entSavoie.agenda.model.Ressource updateImpl(
+ com.pentila.entSavoie.agenda.model.Ressource ressource, boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().updateImpl(ressource, merge);
+ }
+
+ /**
+ * Returns the ressource with the primary key or throws a {@link com.pentila.entSavoie.agenda.NoSuchRessourceException} if it could not be found.
+ *
+ * @param idRessource the primary key of the ressource
+ * @return the ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByPrimaryKey(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence().findByPrimaryKey(idRessource);
+ }
+
+ /**
+ * Returns the ressource with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param idRessource the primary key of the ressource
+ * @return the ressource, or <code>null</code> if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByPrimaryKey(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByPrimaryKey(idRessource);
+ }
+
+ /**
+ * Returns all the ressources where idcreator = ? and cdtUserId = ?.
+ *
+ * @param idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @return the matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByidcreator_cdtUserId(
+ long idcreator, long cdtUserId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidcreator_cdtUserId(idcreator, cdtUserId);
+ }
+
+ /**
+ * Returns a range of all the ressources where idcreator = ? and cdtUserId = ?.
+ *
+ * <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 idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByidcreator_cdtUserId(
+ long idcreator, long cdtUserId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByidcreator_cdtUserId(idcreator, cdtUserId, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources where idcreator = ? and cdtUserId = ?.
+ *
+ * <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 idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByidcreator_cdtUserId(
+ long idcreator, long cdtUserId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByidcreator_cdtUserId(idcreator, cdtUserId, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where idcreator = ? and cdtUserId = ?.
+ *
+ * @param idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByidcreator_cdtUserId_First(
+ long idcreator, long cdtUserId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByidcreator_cdtUserId_First(idcreator, cdtUserId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where idcreator = ? and cdtUserId = ?.
+ *
+ * @param idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByidcreator_cdtUserId_First(
+ long idcreator, long cdtUserId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByidcreator_cdtUserId_First(idcreator, cdtUserId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where idcreator = ? and cdtUserId = ?.
+ *
+ * @param idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByidcreator_cdtUserId_Last(
+ long idcreator, long cdtUserId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByidcreator_cdtUserId_Last(idcreator, cdtUserId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where idcreator = ? and cdtUserId = ?.
+ *
+ * @param idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByidcreator_cdtUserId_Last(
+ long idcreator, long cdtUserId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByidcreator_cdtUserId_Last(idcreator, cdtUserId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the ressources before and after the current ressource in the ordered set where idcreator = ? and cdtUserId = ?.
+ *
+ * @param idRessource the primary key of the current ressource
+ * @param idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource[] findByidcreator_cdtUserId_PrevAndNext(
+ long idRessource, long idcreator, long cdtUserId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByidcreator_cdtUserId_PrevAndNext(idRessource,
+ idcreator, cdtUserId, orderByComparator);
+ }
+
+ /**
+ * Returns all the ressources where idcreator = ? and kind = ?.
+ *
+ * @param idcreator the idcreator
+ * @param kind the kind
+ * @return the matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByidcreator_kind(
+ long idcreator, int kind)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidcreator_kind(idcreator, kind);
+ }
+
+ /**
+ * Returns a range of all the ressources where idcreator = ? and kind = ?.
+ *
+ * <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 idcreator the idcreator
+ * @param kind the kind
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByidcreator_kind(
+ long idcreator, int kind, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByidcreator_kind(idcreator, kind, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources where idcreator = ? and kind = ?.
+ *
+ * <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 idcreator the idcreator
+ * @param kind the kind
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByidcreator_kind(
+ long idcreator, int kind, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByidcreator_kind(idcreator, kind, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where idcreator = ? and kind = ?.
+ *
+ * @param idcreator the idcreator
+ * @param kind the kind
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByidcreator_kind_First(
+ long idcreator, int kind,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByidcreator_kind_First(idcreator, kind,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where idcreator = ? and kind = ?.
+ *
+ * @param idcreator the idcreator
+ * @param kind the kind
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByidcreator_kind_First(
+ long idcreator, int kind,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByidcreator_kind_First(idcreator, kind,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where idcreator = ? and kind = ?.
+ *
+ * @param idcreator the idcreator
+ * @param kind the kind
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByidcreator_kind_Last(
+ long idcreator, int kind,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByidcreator_kind_Last(idcreator, kind, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where idcreator = ? and kind = ?.
+ *
+ * @param idcreator the idcreator
+ * @param kind the kind
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByidcreator_kind_Last(
+ long idcreator, int kind,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByidcreator_kind_Last(idcreator, kind,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the ressources before and after the current ressource in the ordered set where idcreator = ? and kind = ?.
+ *
+ * @param idRessource the primary key of the current ressource
+ * @param idcreator the idcreator
+ * @param kind the kind
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource[] findByidcreator_kind_PrevAndNext(
+ long idRessource, long idcreator, int kind,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByidcreator_kind_PrevAndNext(idRessource, idcreator,
+ kind, orderByComparator);
+ }
+
+ /**
+ * Returns all the ressources where kind = ? and etabId = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @return the matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findBykind_etabId(
+ int kind, long etabId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findBykind_etabId(kind, etabId);
+ }
+
+ /**
+ * Returns a range of all the ressources where kind = ? and etabId = ?.
+ *
+ * <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 kind the kind
+ * @param etabId the etab ID
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findBykind_etabId(
+ int kind, long etabId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findBykind_etabId(kind, etabId, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources where kind = ? and etabId = ?.
+ *
+ * <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 kind the kind
+ * @param etabId the etab ID
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findBykind_etabId(
+ int kind, long etabId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findBykind_etabId(kind, etabId, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where kind = ? and etabId = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findBykind_etabId_First(
+ int kind, long etabId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findBykind_etabId_First(kind, etabId, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where kind = ? and etabId = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchBykind_etabId_First(
+ int kind, long etabId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchBykind_etabId_First(kind, etabId, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where kind = ? and etabId = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findBykind_etabId_Last(
+ int kind, long etabId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findBykind_etabId_Last(kind, etabId, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where kind = ? and etabId = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchBykind_etabId_Last(
+ int kind, long etabId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchBykind_etabId_Last(kind, etabId, orderByComparator);
+ }
+
+ /**
+ * Returns the ressources before and after the current ressource in the ordered set where kind = ? and etabId = ?.
+ *
+ * @param idRessource the primary key of the current ressource
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource[] findBykind_etabId_PrevAndNext(
+ long idRessource, int kind, long etabId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findBykind_etabId_PrevAndNext(idRessource, kind, etabId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the ressources where kind = ? and etabId = ? and name = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @return the matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findBykind_etabId_name(
+ int kind, long etabId, java.lang.String name)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findBykind_etabId_name(kind, etabId, name);
+ }
+
+ /**
+ * Returns a range of all the ressources where kind = ? and etabId = ? and name = ?.
+ *
+ * <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 kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findBykind_etabId_name(
+ int kind, long etabId, java.lang.String name, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findBykind_etabId_name(kind, etabId, name, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources where kind = ? and etabId = ? and name = ?.
+ *
+ * <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 kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findBykind_etabId_name(
+ int kind, long etabId, java.lang.String name, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findBykind_etabId_name(kind, etabId, name, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where kind = ? and etabId = ? and name = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findBykind_etabId_name_First(
+ int kind, long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findBykind_etabId_name_First(kind, etabId, name,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where kind = ? and etabId = ? and name = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchBykind_etabId_name_First(
+ int kind, long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchBykind_etabId_name_First(kind, etabId, name,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where kind = ? and etabId = ? and name = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findBykind_etabId_name_Last(
+ int kind, long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findBykind_etabId_name_Last(kind, etabId, name,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where kind = ? and etabId = ? and name = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchBykind_etabId_name_Last(
+ int kind, long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchBykind_etabId_name_Last(kind, etabId, name,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the ressources before and after the current ressource in the ordered set where kind = ? and etabId = ? and name = ?.
+ *
+ * @param idRessource the primary key of the current ressource
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource[] findBykind_etabId_name_PrevAndNext(
+ long idRessource, int kind, long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findBykind_etabId_name_PrevAndNext(idRessource, kind,
+ etabId, name, orderByComparator);
+ }
+
+ /**
+ * Returns all the ressources where ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @return the matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByressourceType_scope_kind_forcePubli(
+ int ressourceType, int scope, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByressourceType_scope_kind_forcePubli(ressourceType,
+ scope, kind, forcePubli);
+ }
+
+ /**
+ * Returns a range of all the ressources where ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * <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 ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByressourceType_scope_kind_forcePubli(
+ int ressourceType, int scope, int kind, boolean forcePubli, int start,
+ int end) throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByressourceType_scope_kind_forcePubli(ressourceType,
+ scope, kind, forcePubli, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources where ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * <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 ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByressourceType_scope_kind_forcePubli(
+ int ressourceType, int scope, int kind, boolean forcePubli, int start,
+ int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByressourceType_scope_kind_forcePubli(ressourceType,
+ scope, kind, forcePubli, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByressourceType_scope_kind_forcePubli_First(
+ int ressourceType, int scope, int kind, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByressourceType_scope_kind_forcePubli_First(ressourceType,
+ scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByressourceType_scope_kind_forcePubli_First(
+ int ressourceType, int scope, int kind, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByressourceType_scope_kind_forcePubli_First(ressourceType,
+ scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByressourceType_scope_kind_forcePubli_Last(
+ int ressourceType, int scope, int kind, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByressourceType_scope_kind_forcePubli_Last(ressourceType,
+ scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByressourceType_scope_kind_forcePubli_Last(
+ int ressourceType, int scope, int kind, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByressourceType_scope_kind_forcePubli_Last(ressourceType,
+ scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the ressources before and after the current ressource in the ordered set where ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param idRessource the primary key of the current ressource
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource[] findByressourceType_scope_kind_forcePubli_PrevAndNext(
+ long idRessource, int ressourceType, int scope, int kind,
+ boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByressourceType_scope_kind_forcePubli_PrevAndNext(idRessource,
+ ressourceType, scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns all the ressources where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @return the matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByetabId_ressourceType_scope_kind_forcePubli(
+ long etabId, int ressourceType, int scope, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_kind_forcePubli(etabId,
+ ressourceType, scope, kind, forcePubli);
+ }
+
+ /**
+ * Returns a range of all the ressources where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * <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 etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByetabId_ressourceType_scope_kind_forcePubli(
+ long etabId, int ressourceType, int scope, int kind,
+ boolean forcePubli, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_kind_forcePubli(etabId,
+ ressourceType, scope, kind, forcePubli, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * <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 etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByetabId_ressourceType_scope_kind_forcePubli(
+ long etabId, int ressourceType, int scope, int kind,
+ boolean forcePubli, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_kind_forcePubli(etabId,
+ ressourceType, scope, kind, forcePubli, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByetabId_ressourceType_scope_kind_forcePubli_First(
+ long etabId, int ressourceType, int scope, int kind,
+ boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_kind_forcePubli_First(etabId,
+ ressourceType, scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByetabId_ressourceType_scope_kind_forcePubli_First(
+ long etabId, int ressourceType, int scope, int kind,
+ boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByetabId_ressourceType_scope_kind_forcePubli_First(etabId,
+ ressourceType, scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByetabId_ressourceType_scope_kind_forcePubli_Last(
+ long etabId, int ressourceType, int scope, int kind,
+ boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_kind_forcePubli_Last(etabId,
+ ressourceType, scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByetabId_ressourceType_scope_kind_forcePubli_Last(
+ long etabId, int ressourceType, int scope, int kind,
+ boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByetabId_ressourceType_scope_kind_forcePubli_Last(etabId,
+ ressourceType, scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the ressources before and after the current ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param idRessource the primary key of the current ressource
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource[] findByetabId_ressourceType_scope_kind_forcePubli_PrevAndNext(
+ long idRessource, long etabId, int ressourceType, int scope, int kind,
+ boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_kind_forcePubli_PrevAndNext(idRessource,
+ etabId, ressourceType, scope, kind, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns all the ressources where ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @return the matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByressourceType_scope_forcePubli(
+ int ressourceType, int scope, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByressourceType_scope_forcePubli(ressourceType, scope,
+ forcePubli);
+ }
+
+ /**
+ * Returns a range of all the ressources where ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * <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 ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByressourceType_scope_forcePubli(
+ int ressourceType, int scope, boolean forcePubli, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByressourceType_scope_forcePubli(ressourceType, scope,
+ forcePubli, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources where ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * <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 ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByressourceType_scope_forcePubli(
+ int ressourceType, int scope, boolean forcePubli, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByressourceType_scope_forcePubli(ressourceType, scope,
+ forcePubli, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByressourceType_scope_forcePubli_First(
+ int ressourceType, int scope, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByressourceType_scope_forcePubli_First(ressourceType,
+ scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByressourceType_scope_forcePubli_First(
+ int ressourceType, int scope, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByressourceType_scope_forcePubli_First(ressourceType,
+ scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByressourceType_scope_forcePubli_Last(
+ int ressourceType, int scope, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByressourceType_scope_forcePubli_Last(ressourceType,
+ scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByressourceType_scope_forcePubli_Last(
+ int ressourceType, int scope, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByressourceType_scope_forcePubli_Last(ressourceType,
+ scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the ressources before and after the current ressource in the ordered set where ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param idRessource the primary key of the current ressource
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource[] findByressourceType_scope_forcePubli_PrevAndNext(
+ long idRessource, int ressourceType, int scope, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByressourceType_scope_forcePubli_PrevAndNext(idRessource,
+ ressourceType, scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns all the ressources where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @return the matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByetabId_ressourceType_scope_forcePubli(
+ long etabId, int ressourceType, int scope, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_forcePubli(etabId,
+ ressourceType, scope, forcePubli);
+ }
+
+ /**
+ * Returns a range of all the ressources where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * <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 etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByetabId_ressourceType_scope_forcePubli(
+ long etabId, int ressourceType, int scope, boolean forcePubli,
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_forcePubli(etabId,
+ ressourceType, scope, forcePubli, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * <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 etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByetabId_ressourceType_scope_forcePubli(
+ long etabId, int ressourceType, int scope, boolean forcePubli,
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_forcePubli(etabId,
+ ressourceType, scope, forcePubli, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByetabId_ressourceType_scope_forcePubli_First(
+ long etabId, int ressourceType, int scope, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_forcePubli_First(etabId,
+ ressourceType, scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByetabId_ressourceType_scope_forcePubli_First(
+ long etabId, int ressourceType, int scope, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByetabId_ressourceType_scope_forcePubli_First(etabId,
+ ressourceType, scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByetabId_ressourceType_scope_forcePubli_Last(
+ long etabId, int ressourceType, int scope, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_forcePubli_Last(etabId,
+ ressourceType, scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByetabId_ressourceType_scope_forcePubli_Last(
+ long etabId, int ressourceType, int scope, boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByetabId_ressourceType_scope_forcePubli_Last(etabId,
+ ressourceType, scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns the ressources before and after the current ressource in the ordered set where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param idRessource the primary key of the current ressource
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource[] findByetabId_ressourceType_scope_forcePubli_PrevAndNext(
+ long idRessource, long etabId, int ressourceType, int scope,
+ boolean forcePubli,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByetabId_ressourceType_scope_forcePubli_PrevAndNext(idRessource,
+ etabId, ressourceType, scope, forcePubli, orderByComparator);
+ }
+
+ /**
+ * Returns all the ressources where etabId = ? and name = ?.
+ *
+ * @param etabId the etab ID
+ * @param name the name
+ * @return the matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByetabId_name(
+ long etabId, java.lang.String name)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByetabId_name(etabId, name);
+ }
+
+ /**
+ * Returns a range of all the ressources where etabId = ? and name = ?.
+ *
+ * <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 etabId the etab ID
+ * @param name the name
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByetabId_name(
+ long etabId, java.lang.String name, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByetabId_name(etabId, name, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources where etabId = ? and name = ?.
+ *
+ * <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 etabId the etab ID
+ * @param name the name
+ * @param start the lower bound of the range of ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findByetabId_name(
+ long etabId, java.lang.String name, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByetabId_name(etabId, name, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where etabId = ? and name = ?.
+ *
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByetabId_name_First(
+ long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByetabId_name_First(etabId, name, orderByComparator);
+ }
+
+ /**
+ * Returns the first ressource in the ordered set where etabId = ? and name = ?.
+ *
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByetabId_name_First(
+ long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByetabId_name_First(etabId, name, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where etabId = ? and name = ?.
+ *
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource findByetabId_name_Last(
+ long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByetabId_name_Last(etabId, name, orderByComparator);
+ }
+
+ /**
+ * Returns the last ressource in the ordered set where etabId = ? and name = ?.
+ *
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching ressource, or <code>null</code> if a matching ressource could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource fetchByetabId_name_Last(
+ long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByetabId_name_Last(etabId, name, orderByComparator);
+ }
+
+ /**
+ * Returns the ressources before and after the current ressource in the ordered set where etabId = ? and name = ?.
+ *
+ * @param idRessource the primary key of the current ressource
+ * @param etabId the etab ID
+ * @param name the name
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next ressource
+ * @throws com.pentila.entSavoie.agenda.NoSuchRessourceException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.agenda.model.Ressource[] findByetabId_name_PrevAndNext(
+ long idRessource, long etabId, java.lang.String name,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.agenda.NoSuchRessourceException {
+ return getPersistence()
+ .findByetabId_name_PrevAndNext(idRessource, etabId, name,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the ressources.
+ *
+ * @return the ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll();
+ }
+
+ /**
+ * Returns a range of all the ressources.
+ *
+ * <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 ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll(start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the ressources.
+ *
+ * <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 ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.agenda.model.Ressource> 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 ressources where idcreator = ? and cdtUserId = ? from the database.
+ *
+ * @param idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByidcreator_cdtUserId(long idcreator,
+ long cdtUserId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByidcreator_cdtUserId(idcreator, cdtUserId);
+ }
+
+ /**
+ * Removes all the ressources where idcreator = ? and kind = ? from the database.
+ *
+ * @param idcreator the idcreator
+ * @param kind the kind
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByidcreator_kind(long idcreator, int kind)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByidcreator_kind(idcreator, kind);
+ }
+
+ /**
+ * Removes all the ressources where kind = ? and etabId = ? from the database.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeBykind_etabId(int kind, long etabId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeBykind_etabId(kind, etabId);
+ }
+
+ /**
+ * Removes all the ressources where kind = ? and etabId = ? and name = ? from the database.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeBykind_etabId_name(int kind, long etabId,
+ java.lang.String name)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeBykind_etabId_name(kind, etabId, name);
+ }
+
+ /**
+ * Removes all the ressources where ressourceType = ? and scope = ? and kind = ? and forcePubli = ? from the database.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByressourceType_scope_kind_forcePubli(
+ int ressourceType, int scope, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence()
+ .removeByressourceType_scope_kind_forcePubli(ressourceType, scope,
+ kind, forcePubli);
+ }
+
+ /**
+ * Removes all the ressources where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ? from the database.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByetabId_ressourceType_scope_kind_forcePubli(
+ long etabId, int ressourceType, int scope, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence()
+ .removeByetabId_ressourceType_scope_kind_forcePubli(etabId,
+ ressourceType, scope, kind, forcePubli);
+ }
+
+ /**
+ * Removes all the ressources where ressourceType = ? and scope = ? and forcePubli = ? from the database.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByressourceType_scope_forcePubli(
+ int ressourceType, int scope, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence()
+ .removeByressourceType_scope_forcePubli(ressourceType, scope,
+ forcePubli);
+ }
+
+ /**
+ * Removes all the ressources where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ? from the database.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByetabId_ressourceType_scope_forcePubli(
+ long etabId, int ressourceType, int scope, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence()
+ .removeByetabId_ressourceType_scope_forcePubli(etabId,
+ ressourceType, scope, forcePubli);
+ }
+
+ /**
+ * Removes all the ressources where etabId = ? and name = ? from the database.
+ *
+ * @param etabId the etab ID
+ * @param name the name
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByetabId_name(long etabId, java.lang.String name)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByetabId_name(etabId, name);
+ }
+
+ /**
+ * Removes all the ressources 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 ressources where idcreator = ? and cdtUserId = ?.
+ *
+ * @param idcreator the idcreator
+ * @param cdtUserId the cdt user ID
+ * @return the number of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByidcreator_cdtUserId(long idcreator, long cdtUserId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByidcreator_cdtUserId(idcreator, cdtUserId);
+ }
+
+ /**
+ * Returns the number of ressources where idcreator = ? and kind = ?.
+ *
+ * @param idcreator the idcreator
+ * @param kind the kind
+ * @return the number of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByidcreator_kind(long idcreator, int kind)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByidcreator_kind(idcreator, kind);
+ }
+
+ /**
+ * Returns the number of ressources where kind = ? and etabId = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @return the number of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countBykind_etabId(int kind, long etabId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countBykind_etabId(kind, etabId);
+ }
+
+ /**
+ * Returns the number of ressources where kind = ? and etabId = ? and name = ?.
+ *
+ * @param kind the kind
+ * @param etabId the etab ID
+ * @param name the name
+ * @return the number of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countBykind_etabId_name(int kind, long etabId,
+ java.lang.String name)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countBykind_etabId_name(kind, etabId, name);
+ }
+
+ /**
+ * Returns the number of ressources where ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @return the number of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByressourceType_scope_kind_forcePubli(
+ int ressourceType, int scope, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .countByressourceType_scope_kind_forcePubli(ressourceType,
+ scope, kind, forcePubli);
+ }
+
+ /**
+ * Returns the number of ressources where etabId = ? and ressourceType = ? and scope = ? and kind = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param kind the kind
+ * @param forcePubli the force publi
+ * @return the number of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByetabId_ressourceType_scope_kind_forcePubli(
+ long etabId, int ressourceType, int scope, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .countByetabId_ressourceType_scope_kind_forcePubli(etabId,
+ ressourceType, scope, kind, forcePubli);
+ }
+
+ /**
+ * Returns the number of ressources where ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @return the number of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByressourceType_scope_forcePubli(int ressourceType,
+ int scope, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .countByressourceType_scope_forcePubli(ressourceType, scope,
+ forcePubli);
+ }
+
+ /**
+ * Returns the number of ressources where etabId = ? and ressourceType = ? and scope = ? and forcePubli = ?.
+ *
+ * @param etabId the etab ID
+ * @param ressourceType the ressource type
+ * @param scope the scope
+ * @param forcePubli the force publi
+ * @return the number of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByetabId_ressourceType_scope_forcePubli(
+ long etabId, int ressourceType, int scope, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .countByetabId_ressourceType_scope_forcePubli(etabId,
+ ressourceType, scope, forcePubli);
+ }
+
+ /**
+ * Returns the number of ressources where etabId = ? and name = ?.
+ *
+ * @param etabId the etab ID
+ * @param name the name
+ * @return the number of matching ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByetabId_name(long etabId, java.lang.String name)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByetabId_name(etabId, name);
+ }
+
+ /**
+ * Returns the number of ressources.
+ *
+ * @return the number of ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countAll();
+ }
+
+ public static RessourcePersistence getPersistence() {
+ if (_persistence == null) {
+ _persistence = (RessourcePersistence)PortletBeanLocatorUtil.locate(com.pentila.entSavoie.agenda.service.ClpSerializer.getServletContextName(),
+ RessourcePersistence.class.getName());
+
+ ReferenceRegistry.registerReference(RessourceUtil.class,
+ "_persistence");
+ }
+
+ return _persistence;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setPersistence(RessourcePersistence persistence) {
+ }
+
+ private static RessourcePersistence _persistence;
+}
\ No newline at end of file