--- /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.applicationManager.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.applicationManager.model.AMFilter;
+
+import java.util.List;
+
+/**
+ * The persistence utility for the a m filter service. This utility wraps {@link AMFilterPersistenceImpl} 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 Barma Igor et Tardy Camille
+ * @see AMFilterPersistence
+ * @see AMFilterPersistenceImpl
+ * @generated
+ */
+public class AMFilterUtil {
+ /*
+ * 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(AMFilter amFilter) {
+ getPersistence().clearCache(amFilter);
+ }
+
+ /**
+ * @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<AMFilter> findWithDynamicQuery(DynamicQuery dynamicQuery)
+ throws SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
+ */
+ public static List<AMFilter> 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<AMFilter> 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 AMFilter update(AMFilter amFilter, boolean merge)
+ throws SystemException {
+ return getPersistence().update(amFilter, merge);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
+ */
+ public static AMFilter update(AMFilter amFilter, boolean merge,
+ ServiceContext serviceContext) throws SystemException {
+ return getPersistence().update(amFilter, merge, serviceContext);
+ }
+
+ /**
+ * Caches the a m filter in the entity cache if it is enabled.
+ *
+ * @param amFilter the a m filter
+ */
+ public static void cacheResult(
+ com.pentila.entSavoie.applicationManager.model.AMFilter amFilter) {
+ getPersistence().cacheResult(amFilter);
+ }
+
+ /**
+ * Caches the a m filters in the entity cache if it is enabled.
+ *
+ * @param amFilters the a m filters
+ */
+ public static void cacheResult(
+ java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> amFilters) {
+ getPersistence().cacheResult(amFilters);
+ }
+
+ /**
+ * Creates a new a m filter with the primary key. Does not add the a m filter to the database.
+ *
+ * @param filterId the primary key for the new a m filter
+ * @return the new a m filter
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter create(
+ long filterId) {
+ return getPersistence().create(filterId);
+ }
+
+ /**
+ * Removes the a m filter with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param filterId the primary key of the a m filter
+ * @return the a m filter that was removed
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMFilterException if a a m filter with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter remove(
+ long filterId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMFilterException {
+ return getPersistence().remove(filterId);
+ }
+
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter updateImpl(
+ com.pentila.entSavoie.applicationManager.model.AMFilter amFilter,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().updateImpl(amFilter, merge);
+ }
+
+ /**
+ * Returns the a m filter with the primary key or throws a {@link com.pentila.entSavoie.applicationManager.NoSuchAMFilterException} if it could not be found.
+ *
+ * @param filterId the primary key of the a m filter
+ * @return the a m filter
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMFilterException if a a m filter with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter findByPrimaryKey(
+ long filterId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMFilterException {
+ return getPersistence().findByPrimaryKey(filterId);
+ }
+
+ /**
+ * Returns the a m filter with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param filterId the primary key of the a m filter
+ * @return the a m filter, or <code>null</code> if a a m filter with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter fetchByPrimaryKey(
+ long filterId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByPrimaryKey(filterId);
+ }
+
+ /**
+ * Returns all the a m filters where parentId = ?.
+ *
+ * @param parentId the parent ID
+ * @return the matching a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> findByparentId(
+ long parentId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByparentId(parentId);
+ }
+
+ /**
+ * Returns a range of all the a m filters where parentId = ?.
+ *
+ * <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 parentId the parent ID
+ * @param start the lower bound of the range of a m filters
+ * @param end the upper bound of the range of a m filters (not inclusive)
+ * @return the range of matching a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> findByparentId(
+ long parentId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByparentId(parentId, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the a m filters where parentId = ?.
+ *
+ * <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 parentId the parent ID
+ * @param start the lower bound of the range of a m filters
+ * @param end the upper bound of the range of a m filters (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> findByparentId(
+ long parentId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByparentId(parentId, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the first a m filter in the ordered set where parentId = ?.
+ *
+ * @param parentId the parent ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching a m filter
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMFilterException if a matching a m filter could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter findByparentId_First(
+ long parentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMFilterException {
+ return getPersistence().findByparentId_First(parentId, orderByComparator);
+ }
+
+ /**
+ * Returns the first a m filter in the ordered set where parentId = ?.
+ *
+ * @param parentId the parent ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching a m filter, or <code>null</code> if a matching a m filter could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter fetchByparentId_First(
+ long parentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByparentId_First(parentId, orderByComparator);
+ }
+
+ /**
+ * Returns the last a m filter in the ordered set where parentId = ?.
+ *
+ * @param parentId the parent ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching a m filter
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMFilterException if a matching a m filter could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter findByparentId_Last(
+ long parentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMFilterException {
+ return getPersistence().findByparentId_Last(parentId, orderByComparator);
+ }
+
+ /**
+ * Returns the last a m filter in the ordered set where parentId = ?.
+ *
+ * @param parentId the parent ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching a m filter, or <code>null</code> if a matching a m filter could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter fetchByparentId_Last(
+ long parentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByparentId_Last(parentId, orderByComparator);
+ }
+
+ /**
+ * Returns the a m filters before and after the current a m filter in the ordered set where parentId = ?.
+ *
+ * @param filterId the primary key of the current a m filter
+ * @param parentId the parent ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next a m filter
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMFilterException if a a m filter with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter[] findByparentId_PrevAndNext(
+ long filterId, long parentId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMFilterException {
+ return getPersistence()
+ .findByparentId_PrevAndNext(filterId, parentId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the a m filters where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @return the matching a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> findBypopulationId(
+ long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findBypopulationId(populationId);
+ }
+
+ /**
+ * Returns a range of all the a m filters where populationId = ?.
+ *
+ * <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 populationId the population ID
+ * @param start the lower bound of the range of a m filters
+ * @param end the upper bound of the range of a m filters (not inclusive)
+ * @return the range of matching a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> findBypopulationId(
+ long populationId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findBypopulationId(populationId, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the a m filters where populationId = ?.
+ *
+ * <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 populationId the population ID
+ * @param start the lower bound of the range of a m filters
+ * @param end the upper bound of the range of a m filters (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> findBypopulationId(
+ long populationId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findBypopulationId(populationId, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first a m filter in the ordered set where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching a m filter
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMFilterException if a matching a m filter could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter findBypopulationId_First(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMFilterException {
+ return getPersistence()
+ .findBypopulationId_First(populationId, orderByComparator);
+ }
+
+ /**
+ * Returns the first a m filter in the ordered set where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching a m filter, or <code>null</code> if a matching a m filter could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter fetchBypopulationId_First(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchBypopulationId_First(populationId, orderByComparator);
+ }
+
+ /**
+ * Returns the last a m filter in the ordered set where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching a m filter
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMFilterException if a matching a m filter could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter findBypopulationId_Last(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMFilterException {
+ return getPersistence()
+ .findBypopulationId_Last(populationId, orderByComparator);
+ }
+
+ /**
+ * Returns the last a m filter in the ordered set where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching a m filter, or <code>null</code> if a matching a m filter could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter fetchBypopulationId_Last(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchBypopulationId_Last(populationId, orderByComparator);
+ }
+
+ /**
+ * Returns the a m filters before and after the current a m filter in the ordered set where populationId = ?.
+ *
+ * @param filterId the primary key of the current a m filter
+ * @param populationId the population ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next a m filter
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMFilterException if a a m filter with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMFilter[] findBypopulationId_PrevAndNext(
+ long filterId, long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMFilterException {
+ return getPersistence()
+ .findBypopulationId_PrevAndNext(filterId, populationId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the a m filters.
+ *
+ * @return the a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll();
+ }
+
+ /**
+ * Returns a range of all the a m filters.
+ *
+ * <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 a m filters
+ * @param end the upper bound of the range of a m filters (not inclusive)
+ * @return the range of a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll(start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the a m filters.
+ *
+ * <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 a m filters
+ * @param end the upper bound of the range of a m filters (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMFilter> 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 a m filters where parentId = ? from the database.
+ *
+ * @param parentId the parent ID
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByparentId(long parentId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByparentId(parentId);
+ }
+
+ /**
+ * Removes all the a m filters where populationId = ? from the database.
+ *
+ * @param populationId the population ID
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeBypopulationId(long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeBypopulationId(populationId);
+ }
+
+ /**
+ * Removes all the a m filters 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 a m filters where parentId = ?.
+ *
+ * @param parentId the parent ID
+ * @return the number of matching a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByparentId(long parentId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByparentId(parentId);
+ }
+
+ /**
+ * Returns the number of a m filters where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @return the number of matching a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countBypopulationId(long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countBypopulationId(populationId);
+ }
+
+ /**
+ * Returns the number of a m filters.
+ *
+ * @return the number of a m filters
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countAll();
+ }
+
+ public static AMFilterPersistence getPersistence() {
+ if (_persistence == null) {
+ _persistence = (AMFilterPersistence)PortletBeanLocatorUtil.locate(com.pentila.entSavoie.applicationManager.service.ClpSerializer.getServletContextName(),
+ AMFilterPersistence.class.getName());
+
+ ReferenceRegistry.registerReference(AMFilterUtil.class,
+ "_persistence");
+ }
+
+ return _persistence;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setPersistence(AMFilterPersistence persistence) {
+ }
+
+ private static AMFilterPersistence _persistence;
+}
\ No newline at end of file