--- /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.cantine.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.cantine.model.CantineIngredient;
+
+import java.util.List;
+
+/**
+ * The persistence utility for the cantine ingredient service. This utility wraps {@link CantineIngredientPersistenceImpl} 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 Mathieu Amblard
+ * @see CantineIngredientPersistence
+ * @see CantineIngredientPersistenceImpl
+ * @generated
+ */
+public class CantineIngredientUtil {
+ /*
+ * 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(CantineIngredient cantineIngredient) {
+ getPersistence().clearCache(cantineIngredient);
+ }
+
+ /**
+ * @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<CantineIngredient> findWithDynamicQuery(
+ DynamicQuery dynamicQuery) throws SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
+ */
+ public static List<CantineIngredient> 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<CantineIngredient> 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 CantineIngredient update(
+ CantineIngredient cantineIngredient, boolean merge)
+ throws SystemException {
+ return getPersistence().update(cantineIngredient, merge);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
+ */
+ public static CantineIngredient update(
+ CantineIngredient cantineIngredient, boolean merge,
+ ServiceContext serviceContext) throws SystemException {
+ return getPersistence().update(cantineIngredient, merge, serviceContext);
+ }
+
+ /**
+ * Caches the cantine ingredient in the entity cache if it is enabled.
+ *
+ * @param cantineIngredient the cantine ingredient
+ */
+ public static void cacheResult(
+ com.pentila.entSavoie.cantine.model.CantineIngredient cantineIngredient) {
+ getPersistence().cacheResult(cantineIngredient);
+ }
+
+ /**
+ * Caches the cantine ingredients in the entity cache if it is enabled.
+ *
+ * @param cantineIngredients the cantine ingredients
+ */
+ public static void cacheResult(
+ java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> cantineIngredients) {
+ getPersistence().cacheResult(cantineIngredients);
+ }
+
+ /**
+ * Creates a new cantine ingredient with the primary key. Does not add the cantine ingredient to the database.
+ *
+ * @param ingredientId the primary key for the new cantine ingredient
+ * @return the new cantine ingredient
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient create(
+ long ingredientId) {
+ return getPersistence().create(ingredientId);
+ }
+
+ /**
+ * Removes the cantine ingredient with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param ingredientId the primary key of the cantine ingredient
+ * @return the cantine ingredient that was removed
+ * @throws com.pentila.entSavoie.cantine.NoSuchCantineIngredientException if a cantine ingredient with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient remove(
+ long ingredientId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cantine.NoSuchCantineIngredientException {
+ return getPersistence().remove(ingredientId);
+ }
+
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient updateImpl(
+ com.pentila.entSavoie.cantine.model.CantineIngredient cantineIngredient,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().updateImpl(cantineIngredient, merge);
+ }
+
+ /**
+ * Returns the cantine ingredient with the primary key or throws a {@link com.pentila.entSavoie.cantine.NoSuchCantineIngredientException} if it could not be found.
+ *
+ * @param ingredientId the primary key of the cantine ingredient
+ * @return the cantine ingredient
+ * @throws com.pentila.entSavoie.cantine.NoSuchCantineIngredientException if a cantine ingredient with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient findByPrimaryKey(
+ long ingredientId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cantine.NoSuchCantineIngredientException {
+ return getPersistence().findByPrimaryKey(ingredientId);
+ }
+
+ /**
+ * Returns the cantine ingredient with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param ingredientId the primary key of the cantine ingredient
+ * @return the cantine ingredient, or <code>null</code> if a cantine ingredient with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient fetchByPrimaryKey(
+ long ingredientId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByPrimaryKey(ingredientId);
+ }
+
+ /**
+ * Returns all the cantine ingredients where recetteId = ?.
+ *
+ * @param recetteId the recette ID
+ * @return the matching cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> findByrecetteId(
+ long recetteId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByrecetteId(recetteId);
+ }
+
+ /**
+ * Returns a range of all the cantine ingredients where recetteId = ?.
+ *
+ * <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 recetteId the recette ID
+ * @param start the lower bound of the range of cantine ingredients
+ * @param end the upper bound of the range of cantine ingredients (not inclusive)
+ * @return the range of matching cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> findByrecetteId(
+ long recetteId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByrecetteId(recetteId, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the cantine ingredients where recetteId = ?.
+ *
+ * <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 recetteId the recette ID
+ * @param start the lower bound of the range of cantine ingredients
+ * @param end the upper bound of the range of cantine ingredients (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> findByrecetteId(
+ long recetteId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByrecetteId(recetteId, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the first cantine ingredient in the ordered set where recetteId = ?.
+ *
+ * @param recetteId the recette ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching cantine ingredient
+ * @throws com.pentila.entSavoie.cantine.NoSuchCantineIngredientException if a matching cantine ingredient could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient findByrecetteId_First(
+ long recetteId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cantine.NoSuchCantineIngredientException {
+ return getPersistence()
+ .findByrecetteId_First(recetteId, orderByComparator);
+ }
+
+ /**
+ * Returns the first cantine ingredient in the ordered set where recetteId = ?.
+ *
+ * @param recetteId the recette ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching cantine ingredient, or <code>null</code> if a matching cantine ingredient could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient fetchByrecetteId_First(
+ long recetteId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByrecetteId_First(recetteId, orderByComparator);
+ }
+
+ /**
+ * Returns the last cantine ingredient in the ordered set where recetteId = ?.
+ *
+ * @param recetteId the recette ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching cantine ingredient
+ * @throws com.pentila.entSavoie.cantine.NoSuchCantineIngredientException if a matching cantine ingredient could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient findByrecetteId_Last(
+ long recetteId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cantine.NoSuchCantineIngredientException {
+ return getPersistence()
+ .findByrecetteId_Last(recetteId, orderByComparator);
+ }
+
+ /**
+ * Returns the last cantine ingredient in the ordered set where recetteId = ?.
+ *
+ * @param recetteId the recette ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching cantine ingredient, or <code>null</code> if a matching cantine ingredient could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient fetchByrecetteId_Last(
+ long recetteId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByrecetteId_Last(recetteId, orderByComparator);
+ }
+
+ /**
+ * Returns the cantine ingredients before and after the current cantine ingredient in the ordered set where recetteId = ?.
+ *
+ * @param ingredientId the primary key of the current cantine ingredient
+ * @param recetteId the recette ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next cantine ingredient
+ * @throws com.pentila.entSavoie.cantine.NoSuchCantineIngredientException if a cantine ingredient with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient[] findByrecetteId_PrevAndNext(
+ long ingredientId, long recetteId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cantine.NoSuchCantineIngredientException {
+ return getPersistence()
+ .findByrecetteId_PrevAndNext(ingredientId, recetteId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the cantine ingredients where alimentId = ?.
+ *
+ * @param alimentId the aliment ID
+ * @return the matching cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> findByalimentId(
+ long alimentId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByalimentId(alimentId);
+ }
+
+ /**
+ * Returns a range of all the cantine ingredients where alimentId = ?.
+ *
+ * <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 alimentId the aliment ID
+ * @param start the lower bound of the range of cantine ingredients
+ * @param end the upper bound of the range of cantine ingredients (not inclusive)
+ * @return the range of matching cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> findByalimentId(
+ long alimentId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByalimentId(alimentId, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the cantine ingredients where alimentId = ?.
+ *
+ * <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 alimentId the aliment ID
+ * @param start the lower bound of the range of cantine ingredients
+ * @param end the upper bound of the range of cantine ingredients (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> findByalimentId(
+ long alimentId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByalimentId(alimentId, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the first cantine ingredient in the ordered set where alimentId = ?.
+ *
+ * @param alimentId the aliment ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching cantine ingredient
+ * @throws com.pentila.entSavoie.cantine.NoSuchCantineIngredientException if a matching cantine ingredient could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient findByalimentId_First(
+ long alimentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cantine.NoSuchCantineIngredientException {
+ return getPersistence()
+ .findByalimentId_First(alimentId, orderByComparator);
+ }
+
+ /**
+ * Returns the first cantine ingredient in the ordered set where alimentId = ?.
+ *
+ * @param alimentId the aliment ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching cantine ingredient, or <code>null</code> if a matching cantine ingredient could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient fetchByalimentId_First(
+ long alimentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByalimentId_First(alimentId, orderByComparator);
+ }
+
+ /**
+ * Returns the last cantine ingredient in the ordered set where alimentId = ?.
+ *
+ * @param alimentId the aliment ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching cantine ingredient
+ * @throws com.pentila.entSavoie.cantine.NoSuchCantineIngredientException if a matching cantine ingredient could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient findByalimentId_Last(
+ long alimentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cantine.NoSuchCantineIngredientException {
+ return getPersistence()
+ .findByalimentId_Last(alimentId, orderByComparator);
+ }
+
+ /**
+ * Returns the last cantine ingredient in the ordered set where alimentId = ?.
+ *
+ * @param alimentId the aliment ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching cantine ingredient, or <code>null</code> if a matching cantine ingredient could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient fetchByalimentId_Last(
+ long alimentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByalimentId_Last(alimentId, orderByComparator);
+ }
+
+ /**
+ * Returns the cantine ingredients before and after the current cantine ingredient in the ordered set where alimentId = ?.
+ *
+ * @param ingredientId the primary key of the current cantine ingredient
+ * @param alimentId the aliment ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next cantine ingredient
+ * @throws com.pentila.entSavoie.cantine.NoSuchCantineIngredientException if a cantine ingredient with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.cantine.model.CantineIngredient[] findByalimentId_PrevAndNext(
+ long ingredientId, long alimentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.cantine.NoSuchCantineIngredientException {
+ return getPersistence()
+ .findByalimentId_PrevAndNext(ingredientId, alimentId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the cantine ingredients.
+ *
+ * @return the cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll();
+ }
+
+ /**
+ * Returns a range of all the cantine ingredients.
+ *
+ * <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 cantine ingredients
+ * @param end the upper bound of the range of cantine ingredients (not inclusive)
+ * @return the range of cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll(start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the cantine ingredients.
+ *
+ * <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 cantine ingredients
+ * @param end the upper bound of the range of cantine ingredients (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.cantine.model.CantineIngredient> 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 cantine ingredients where recetteId = ? from the database.
+ *
+ * @param recetteId the recette ID
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByrecetteId(long recetteId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByrecetteId(recetteId);
+ }
+
+ /**
+ * Removes all the cantine ingredients where alimentId = ? from the database.
+ *
+ * @param alimentId the aliment ID
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByalimentId(long alimentId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByalimentId(alimentId);
+ }
+
+ /**
+ * Removes all the cantine ingredients 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 cantine ingredients where recetteId = ?.
+ *
+ * @param recetteId the recette ID
+ * @return the number of matching cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByrecetteId(long recetteId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByrecetteId(recetteId);
+ }
+
+ /**
+ * Returns the number of cantine ingredients where alimentId = ?.
+ *
+ * @param alimentId the aliment ID
+ * @return the number of matching cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByalimentId(long alimentId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByalimentId(alimentId);
+ }
+
+ /**
+ * Returns the number of cantine ingredients.
+ *
+ * @return the number of cantine ingredients
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countAll();
+ }
+
+ public static CantineIngredientPersistence getPersistence() {
+ if (_persistence == null) {
+ _persistence = (CantineIngredientPersistence)PortletBeanLocatorUtil.locate(com.pentila.entSavoie.cantine.service.ClpSerializer.getServletContextName(),
+ CantineIngredientPersistence.class.getName());
+
+ ReferenceRegistry.registerReference(CantineIngredientUtil.class,
+ "_persistence");
+ }
+
+ return _persistence;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setPersistence(CantineIngredientPersistence persistence) {
+ }
+
+ private static CantineIngredientPersistence _persistence;
+}
\ No newline at end of file