--- /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.AMSingleUsers;
+
+import java.util.List;
+
+/**
+ * The persistence utility for the a m single users service. This utility wraps {@link AMSingleUsersPersistenceImpl} 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 AMSingleUsersPersistence
+ * @see AMSingleUsersPersistenceImpl
+ * @generated
+ */
+public class AMSingleUsersUtil {
+ /*
+ * 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(AMSingleUsers amSingleUsers) {
+ getPersistence().clearCache(amSingleUsers);
+ }
+
+ /**
+ * @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<AMSingleUsers> findWithDynamicQuery(
+ DynamicQuery dynamicQuery) throws SystemException {
+ return getPersistence().findWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
+ */
+ public static List<AMSingleUsers> 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<AMSingleUsers> 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 AMSingleUsers update(AMSingleUsers amSingleUsers,
+ boolean merge) throws SystemException {
+ return getPersistence().update(amSingleUsers, merge);
+ }
+
+ /**
+ * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
+ */
+ public static AMSingleUsers update(AMSingleUsers amSingleUsers,
+ boolean merge, ServiceContext serviceContext) throws SystemException {
+ return getPersistence().update(amSingleUsers, merge, serviceContext);
+ }
+
+ /**
+ * Caches the a m single users in the entity cache if it is enabled.
+ *
+ * @param amSingleUsers the a m single users
+ */
+ public static void cacheResult(
+ com.pentila.entSavoie.applicationManager.model.AMSingleUsers amSingleUsers) {
+ getPersistence().cacheResult(amSingleUsers);
+ }
+
+ /**
+ * Caches the a m single userses in the entity cache if it is enabled.
+ *
+ * @param amSingleUserses the a m single userses
+ */
+ public static void cacheResult(
+ java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> amSingleUserses) {
+ getPersistence().cacheResult(amSingleUserses);
+ }
+
+ /**
+ * Creates a new a m single users with the primary key. Does not add the a m single users to the database.
+ *
+ * @param singleUserId the primary key for the new a m single users
+ * @return the new a m single users
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers create(
+ long singleUserId) {
+ return getPersistence().create(singleUserId);
+ }
+
+ /**
+ * Removes the a m single users with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param singleUserId the primary key of the a m single users
+ * @return the a m single users that was removed
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException if a a m single users with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers remove(
+ long singleUserId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException {
+ return getPersistence().remove(singleUserId);
+ }
+
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers updateImpl(
+ com.pentila.entSavoie.applicationManager.model.AMSingleUsers amSingleUsers,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().updateImpl(amSingleUsers, merge);
+ }
+
+ /**
+ * Returns the a m single users with the primary key or throws a {@link com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException} if it could not be found.
+ *
+ * @param singleUserId the primary key of the a m single users
+ * @return the a m single users
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException if a a m single users with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers findByPrimaryKey(
+ long singleUserId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException {
+ return getPersistence().findByPrimaryKey(singleUserId);
+ }
+
+ /**
+ * Returns the a m single users with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param singleUserId the primary key of the a m single users
+ * @return the a m single users, or <code>null</code> if a a m single users with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers fetchByPrimaryKey(
+ long singleUserId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByPrimaryKey(singleUserId);
+ }
+
+ /**
+ * Returns all the a m single userses where userId = ?.
+ *
+ * @param userId the user ID
+ * @return the matching a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> findByuserId(
+ long userId) throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByuserId(userId);
+ }
+
+ /**
+ * Returns a range of all the a m single userses where userId = ?.
+ *
+ * <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 userId the user ID
+ * @param start the lower bound of the range of a m single userses
+ * @param end the upper bound of the range of a m single userses (not inclusive)
+ * @return the range of matching a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> findByuserId(
+ long userId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByuserId(userId, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the a m single userses where userId = ?.
+ *
+ * <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 userId the user ID
+ * @param start the lower bound of the range of a m single userses
+ * @param end the upper bound of the range of a m single userses (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> findByuserId(
+ long userId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByuserId(userId, start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the first a m single users in the ordered set where userId = ?.
+ *
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching a m single users
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException if a matching a m single users could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers findByuserId_First(
+ long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException {
+ return getPersistence().findByuserId_First(userId, orderByComparator);
+ }
+
+ /**
+ * Returns the first a m single users in the ordered set where userId = ?.
+ *
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching a m single users, or <code>null</code> if a matching a m single users could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers fetchByuserId_First(
+ long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByuserId_First(userId, orderByComparator);
+ }
+
+ /**
+ * Returns the last a m single users in the ordered set where userId = ?.
+ *
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching a m single users
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException if a matching a m single users could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers findByuserId_Last(
+ long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException {
+ return getPersistence().findByuserId_Last(userId, orderByComparator);
+ }
+
+ /**
+ * Returns the last a m single users in the ordered set where userId = ?.
+ *
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching a m single users, or <code>null</code> if a matching a m single users could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers fetchByuserId_Last(
+ long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().fetchByuserId_Last(userId, orderByComparator);
+ }
+
+ /**
+ * Returns the a m single userses before and after the current a m single users in the ordered set where userId = ?.
+ *
+ * @param singleUserId the primary key of the current a m single users
+ * @param userId the user ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next a m single users
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException if a a m single users with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers[] findByuserId_PrevAndNext(
+ long singleUserId, long userId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException {
+ return getPersistence()
+ .findByuserId_PrevAndNext(singleUserId, userId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the a m single userses where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @return the matching a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> findBypopulationId(
+ long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findBypopulationId(populationId);
+ }
+
+ /**
+ * Returns a range of all the a m single userses 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 single userses
+ * @param end the upper bound of the range of a m single userses (not inclusive)
+ * @return the range of matching a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> 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 single userses 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 single userses
+ * @param end the upper bound of the range of a m single userses (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> 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 single users 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 single users
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException if a matching a m single users could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers findBypopulationId_First(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException {
+ return getPersistence()
+ .findBypopulationId_First(populationId, orderByComparator);
+ }
+
+ /**
+ * Returns the first a m single users 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 single users, or <code>null</code> if a matching a m single users could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers 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 single users 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 single users
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException if a matching a m single users could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers findBypopulationId_Last(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException {
+ return getPersistence()
+ .findBypopulationId_Last(populationId, orderByComparator);
+ }
+
+ /**
+ * Returns the last a m single users 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 single users, or <code>null</code> if a matching a m single users could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers 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 single userses before and after the current a m single users in the ordered set where populationId = ?.
+ *
+ * @param singleUserId the primary key of the current a m single users
+ * @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 single users
+ * @throws com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException if a a m single users with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static com.pentila.entSavoie.applicationManager.model.AMSingleUsers[] findBypopulationId_PrevAndNext(
+ long singleUserId, long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.applicationManager.NoSuchAMSingleUsersException {
+ return getPersistence()
+ .findBypopulationId_PrevAndNext(singleUserId, populationId,
+ orderByComparator);
+ }
+
+ /**
+ * Returns all the a m single userses.
+ *
+ * @return the a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findAll();
+ }
+
+ /**
+ * Returns a range of all the a m single userses.
+ *
+ * <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 single userses
+ * @param end the upper bound of the range of a m single userses (not inclusive)
+ * @return the range of a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> 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 single userses.
+ *
+ * <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 single userses
+ * @param end the upper bound of the range of a m single userses (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List<com.pentila.entSavoie.applicationManager.model.AMSingleUsers> 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 single userses where userId = ? from the database.
+ *
+ * @param userId the user ID
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByuserId(long userId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByuserId(userId);
+ }
+
+ /**
+ * Removes all the a m single userses 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 single userses 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 single userses where userId = ?.
+ *
+ * @param userId the user ID
+ * @return the number of matching a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByuserId(long userId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByuserId(userId);
+ }
+
+ /**
+ * Returns the number of a m single userses where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @return the number of matching a m single userses
+ * @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 single userses.
+ *
+ * @return the number of a m single userses
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countAll();
+ }
+
+ public static AMSingleUsersPersistence getPersistence() {
+ if (_persistence == null) {
+ _persistence = (AMSingleUsersPersistence)PortletBeanLocatorUtil.locate(com.pentila.entSavoie.applicationManager.service.ClpSerializer.getServletContextName(),
+ AMSingleUsersPersistence.class.getName());
+
+ ReferenceRegistry.registerReference(AMSingleUsersUtil.class,
+ "_persistence");
+ }
+
+ return _persistence;
+ }
+
+ /**
+ * @deprecated
+ */
+ public void setPersistence(AMSingleUsersPersistence persistence) {
+ }
+
+ private static AMSingleUsersPersistence _persistence;
+}
\ No newline at end of file