/** * Copyright (c) 2009-2014 Câmara dos Deputados. Todos os direitos reservados. * * e-Democracia é um software livre; você pode redistribuí-lo e/ou modificá-lo dentro * dos termos da Licença Pública Geral Menor GNU como publicada pela Fundação do * Software Livre (FSF); na versão 2.1 da Licença, ou (na sua opinião) qualquer versão. * * Este programa é distribuído na esperança de que possa ser útil, mas SEM NENHUMA GARANTIA; * sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. * Veja a Licença Pública Geral Menor GNU para maiores detalhes. */ package br.gov.camara.edemocracia.portlets.graficos.service.persistence; import br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso; import com.liferay.portal.service.persistence.BasePersistence; /** * The persistence interface for the contador acesso service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Robson Miranda * @see ContadorAcessoPersistenceImpl * @see ContadorAcessoUtil * @generated */ public interface ContadorAcessoPersistence extends BasePersistence<ContadorAcesso> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link ContadorAcessoUtil} to access the contador acesso persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Caches the contador acesso in the entity cache if it is enabled. * * @param contadorAcesso the contador acesso */ public void cacheResult( br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso contadorAcesso); /** * Caches the contador acessos in the entity cache if it is enabled. * * @param contadorAcessos the contador acessos */ public void cacheResult( java.util.List<br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso> contadorAcessos); /** * Creates a new contador acesso with the primary key. Does not add the contador acesso to the database. * * @param contadorId the primary key for the new contador acesso * @return the new contador acesso */ public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso create( long contadorId); /** * Removes the contador acesso with the primary key from the database. Also notifies the appropriate model listeners. * * @param contadorId the primary key of the contador acesso * @return the contador acesso that was removed * @throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException if a contador acesso with the primary key could not be found * @throws SystemException if a system exception occurred */ public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso remove( long contadorId) throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException, com.liferay.portal.kernel.exception.SystemException; public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso updateImpl( br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso contadorAcesso, boolean merge) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the contador acesso with the primary key or throws a {@link br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException} if it could not be found. * * @param contadorId the primary key of the contador acesso * @return the contador acesso * @throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException if a contador acesso with the primary key could not be found * @throws SystemException if a system exception occurred */ public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso findByPrimaryKey( long contadorId) throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the contador acesso with the primary key or returns <code>null</code> if it could not be found. * * @param contadorId the primary key of the contador acesso * @return the contador acesso, or <code>null</code> if a contador acesso with the primary key could not be found * @throws SystemException if a system exception occurred */ public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso fetchByPrimaryKey( long contadorId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the contador acessos where companyId = ? and data = ?. * * @param companyId the company ID * @param data the data * @return the matching contador acessos * @throws SystemException if a system exception occurred */ public java.util.List<br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso> findByC_D( long companyId, java.util.Date data) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the contador acessos where companyId = ? and data = ?. * * <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 companyId the company ID * @param data the data * @param start the lower bound of the range of contador acessos * @param end the upper bound of the range of contador acessos (not inclusive) * @return the range of matching contador acessos * @throws SystemException if a system exception occurred */ public java.util.List<br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso> findByC_D( long companyId, java.util.Date data, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the contador acessos where companyId = ? and data = ?. * * <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 companyId the company ID * @param data the data * @param start the lower bound of the range of contador acessos * @param end the upper bound of the range of contador acessos (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching contador acessos * @throws SystemException if a system exception occurred */ public java.util.List<br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso> findByC_D( long companyId, java.util.Date data, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first contador acesso in the ordered set where companyId = ? and data = ?. * * @param companyId the company ID * @param data the data * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching contador acesso * @throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException if a matching contador acesso could not be found * @throws SystemException if a system exception occurred */ public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso findByC_D_First( long companyId, java.util.Date data, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first contador acesso in the ordered set where companyId = ? and data = ?. * * @param companyId the company ID * @param data the data * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching contador acesso, or <code>null</code> if a matching contador acesso could not be found * @throws SystemException if a system exception occurred */ public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso fetchByC_D_First( long companyId, java.util.Date data, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last contador acesso in the ordered set where companyId = ? and data = ?. * * @param companyId the company ID * @param data the data * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching contador acesso * @throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException if a matching contador acesso could not be found * @throws SystemException if a system exception occurred */ public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso findByC_D_Last( long companyId, java.util.Date data, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last contador acesso in the ordered set where companyId = ? and data = ?. * * @param companyId the company ID * @param data the data * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching contador acesso, or <code>null</code> if a matching contador acesso could not be found * @throws SystemException if a system exception occurred */ public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso fetchByC_D_Last( long companyId, java.util.Date data, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the contador acessos before and after the current contador acesso in the ordered set where companyId = ? and data = ?. * * @param contadorId the primary key of the current contador acesso * @param companyId the company ID * @param data the data * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next contador acesso * @throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException if a contador acesso with the primary key could not be found * @throws SystemException if a system exception occurred */ public br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso[] findByC_D_PrevAndNext( long contadorId, long companyId, java.util.Date data, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws br.gov.camara.edemocracia.portlets.graficos.NoSuchContadorAcessoException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the contador acessos. * * @return the contador acessos * @throws SystemException if a system exception occurred */ public java.util.List<br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso> findAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the contador acessos. * * <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 contador acessos * @param end the upper bound of the range of contador acessos (not inclusive) * @return the range of contador acessos * @throws SystemException if a system exception occurred */ public java.util.List<br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso> findAll( int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the contador acessos. * * <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 contador acessos * @param end the upper bound of the range of contador acessos (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of contador acessos * @throws SystemException if a system exception occurred */ public java.util.List<br.gov.camara.edemocracia.portlets.graficos.model.ContadorAcesso> findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the contador acessos where companyId = ? and data = ? from the database. * * @param companyId the company ID * @param data the data * @throws SystemException if a system exception occurred */ public void removeByC_D(long companyId, java.util.Date data) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the contador acessos from the database. * * @throws SystemException if a system exception occurred */ public void removeAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of contador acessos where companyId = ? and data = ?. * * @param companyId the company ID * @param data the data * @return the number of matching contador acessos * @throws SystemException if a system exception occurred */ public int countByC_D(long companyId, java.util.Date data) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of contador acessos. * * @return the number of contador acessos * @throws SystemException if a system exception occurred */ public int countAll() throws com.liferay.portal.kernel.exception.SystemException; }