--- /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.serviceManager.service.persistence;
+
+import com.liferay.portal.service.persistence.BasePersistence;
+
+import com.pentila.entSavoie.serviceManager.model.ServicePopulation;
+
+/**
+ * The persistence interface for the service population service.
+ *
+ * <p>
+ * Caching information and settings can be found in <code>portal.properties</code>
+ * </p>
+ *
+ * @author Harifetra Ramamonjy
+ * @see ServicePopulationPersistenceImpl
+ * @see ServicePopulationUtil
+ * @generated
+ */
+public interface ServicePopulationPersistence extends BasePersistence<ServicePopulation> {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this interface directly. Always use {@link ServicePopulationUtil} to access the service population persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
+ */
+
+ /**
+ * Caches the service population in the entity cache if it is enabled.
+ *
+ * @param servicePopulation the service population
+ */
+ public void cacheResult(
+ com.pentila.entSavoie.serviceManager.model.ServicePopulation servicePopulation);
+
+ /**
+ * Caches the service populations in the entity cache if it is enabled.
+ *
+ * @param servicePopulations the service populations
+ */
+ public void cacheResult(
+ java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> servicePopulations);
+
+ /**
+ * Creates a new service population with the primary key. Does not add the service population to the database.
+ *
+ * @param ServicePopulationId the primary key for the new service population
+ * @return the new service population
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation create(
+ long ServicePopulationId);
+
+ /**
+ * Removes the service population with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param ServicePopulationId the primary key of the service population
+ * @return the service population that was removed
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a service population with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation remove(
+ long ServicePopulationId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation updateImpl(
+ com.pentila.entSavoie.serviceManager.model.ServicePopulation servicePopulation,
+ boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the service population with the primary key or throws a {@link com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException} if it could not be found.
+ *
+ * @param ServicePopulationId the primary key of the service population
+ * @return the service population
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a service population with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation findByPrimaryKey(
+ long ServicePopulationId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Returns the service population with the primary key or returns <code>null</code> if it could not be found.
+ *
+ * @param ServicePopulationId the primary key of the service population
+ * @return the service population, or <code>null</code> if a service population with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation fetchByPrimaryKey(
+ long ServicePopulationId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns all the service populations where serviceId = ?.
+ *
+ * @param serviceId the service ID
+ * @return the matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> findByServicePopulation_serviceId(
+ long serviceId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the service populations where serviceId = ?.
+ *
+ * <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 serviceId the service ID
+ * @param start the lower bound of the range of service populations
+ * @param end the upper bound of the range of service populations (not inclusive)
+ * @return the range of matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> findByServicePopulation_serviceId(
+ long serviceId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the service populations where serviceId = ?.
+ *
+ * <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 serviceId the service ID
+ * @param start the lower bound of the range of service populations
+ * @param end the upper bound of the range of service populations (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> findByServicePopulation_serviceId(
+ long serviceId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first service population in the ordered set where serviceId = ?.
+ *
+ * @param serviceId the service ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching service population
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation findByServicePopulation_serviceId_First(
+ long serviceId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Returns the first service population in the ordered set where serviceId = ?.
+ *
+ * @param serviceId the service ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the first matching service population, or <code>null</code> if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation fetchByServicePopulation_serviceId_First(
+ long serviceId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last service population in the ordered set where serviceId = ?.
+ *
+ * @param serviceId the service ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching service population
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation findByServicePopulation_serviceId_Last(
+ long serviceId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Returns the last service population in the ordered set where serviceId = ?.
+ *
+ * @param serviceId the service ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the last matching service population, or <code>null</code> if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation fetchByServicePopulation_serviceId_Last(
+ long serviceId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the service populations before and after the current service population in the ordered set where serviceId = ?.
+ *
+ * @param ServicePopulationId the primary key of the current service population
+ * @param serviceId the service ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next service population
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a service population with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation[] findByServicePopulation_serviceId_PrevAndNext(
+ long ServicePopulationId, long serviceId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Returns all the service populations where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @return the matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> findByServicePopulation_populationId(
+ long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the service populations 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 service populations
+ * @param end the upper bound of the range of service populations (not inclusive)
+ * @return the range of matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> findByServicePopulation_populationId(
+ long populationId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the service populations 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 service populations
+ * @param end the upper bound of the range of service populations (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> findByServicePopulation_populationId(
+ long populationId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first service population 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 service population
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation findByServicePopulation_populationId_First(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Returns the first service population 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 service population, or <code>null</code> if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation fetchByServicePopulation_populationId_First(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last service population 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 service population
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation findByServicePopulation_populationId_Last(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Returns the last service population 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 service population, or <code>null</code> if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation fetchByServicePopulation_populationId_Last(
+ long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the service populations before and after the current service population in the ordered set where populationId = ?.
+ *
+ * @param ServicePopulationId the primary key of the current service population
+ * @param populationId the population ID
+ * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
+ * @return the previous, current, and next service population
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a service population with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation[] findByServicePopulation_populationId_PrevAndNext(
+ long ServicePopulationId, long populationId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Returns the service population where serviceId = ? and populationId = ? or throws a {@link com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException} if it could not be found.
+ *
+ * @param serviceId the service ID
+ * @param populationId the population ID
+ * @return the matching service population
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation findByServicePopulation_serviceId_populationId(
+ long serviceId, long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Returns the service population where serviceId = ? and populationId = ? or returns <code>null</code> if it could not be found. Uses the finder cache.
+ *
+ * @param serviceId the service ID
+ * @param populationId the population ID
+ * @return the matching service population, or <code>null</code> if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation fetchByServicePopulation_serviceId_populationId(
+ long serviceId, long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the service population where serviceId = ? and populationId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache.
+ *
+ * @param serviceId the service ID
+ * @param populationId the population ID
+ * @param retrieveFromCache whether to use the finder cache
+ * @return the matching service population, or <code>null</code> if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation fetchByServicePopulation_serviceId_populationId(
+ long serviceId, long populationId, boolean retrieveFromCache)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the service population where serviceId = ? and etabId = ? or throws a {@link com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException} if it could not be found.
+ *
+ * @param serviceId the service ID
+ * @param etabId the etab ID
+ * @return the matching service population
+ * @throws com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation findByServicePopulation_serviceId_etabId(
+ long serviceId, long etabId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Returns the service population where serviceId = ? and etabId = ? or returns <code>null</code> if it could not be found. Uses the finder cache.
+ *
+ * @param serviceId the service ID
+ * @param etabId the etab ID
+ * @return the matching service population, or <code>null</code> if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation fetchByServicePopulation_serviceId_etabId(
+ long serviceId, long etabId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the service population where serviceId = ? and etabId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache.
+ *
+ * @param serviceId the service ID
+ * @param etabId the etab ID
+ * @param retrieveFromCache whether to use the finder cache
+ * @return the matching service population, or <code>null</code> if a matching service population could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation fetchByServicePopulation_serviceId_etabId(
+ long serviceId, long etabId, boolean retrieveFromCache)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns all the service populations.
+ *
+ * @return the service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> findAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the service populations.
+ *
+ * <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 service populations
+ * @param end the upper bound of the range of service populations (not inclusive)
+ * @return the range of service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> findAll(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the service populations.
+ *
+ * <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 service populations
+ * @param end the upper bound of the range of service populations (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.serviceManager.model.ServicePopulation> findAll(
+ int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the service populations where serviceId = ? from the database.
+ *
+ * @param serviceId the service ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByServicePopulation_serviceId(long serviceId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes all the service populations where populationId = ? from the database.
+ *
+ * @param populationId the population ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByServicePopulation_populationId(long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Removes the service population where serviceId = ? and populationId = ? from the database.
+ *
+ * @param serviceId the service ID
+ * @param populationId the population ID
+ * @return the service population that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation removeByServicePopulation_serviceId_populationId(
+ long serviceId, long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Removes the service population where serviceId = ? and etabId = ? from the database.
+ *
+ * @param serviceId the service ID
+ * @param etabId the etab ID
+ * @return the service population that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.serviceManager.model.ServicePopulation removeByServicePopulation_serviceId_etabId(
+ long serviceId, long etabId)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ com.pentila.entSavoie.serviceManager.NoSuchServicePopulationException;
+
+ /**
+ * Removes all the service populations from the database.
+ *
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of service populations where serviceId = ?.
+ *
+ * @param serviceId the service ID
+ * @return the number of matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByServicePopulation_serviceId(long serviceId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of service populations where populationId = ?.
+ *
+ * @param populationId the population ID
+ * @return the number of matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByServicePopulation_populationId(long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of service populations where serviceId = ? and populationId = ?.
+ *
+ * @param serviceId the service ID
+ * @param populationId the population ID
+ * @return the number of matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByServicePopulation_serviceId_populationId(long serviceId,
+ long populationId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of service populations where serviceId = ? and etabId = ?.
+ *
+ * @param serviceId the service ID
+ * @param etabId the etab ID
+ * @return the number of matching service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByServicePopulation_serviceId_etabId(long serviceId,
+ long etabId) throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of service populations.
+ *
+ * @return the number of service populations
+ * @throws SystemException if a system exception occurred
+ */
+ public int countAll()
+ throws com.liferay.portal.kernel.exception.SystemException;
+}
\ No newline at end of file