001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.ratings.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.ratings.model.RatingsStats;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       RatingsStatsPersistenceImpl
024     * @see       RatingsStatsUtil
025     * @generated
026     */
027    public interface RatingsStatsPersistence extends BasePersistence<RatingsStats> {
028            public void cacheResult(
029                    com.liferay.portlet.ratings.model.RatingsStats ratingsStats);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.ratings.model.RatingsStats> ratingsStatses);
033    
034            public com.liferay.portlet.ratings.model.RatingsStats create(long statsId);
035    
036            public com.liferay.portlet.ratings.model.RatingsStats remove(long statsId)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.ratings.NoSuchStatsException;
039    
040            public com.liferay.portlet.ratings.model.RatingsStats updateImpl(
041                    com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
042                    boolean merge)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portlet.ratings.model.RatingsStats findByPrimaryKey(
046                    long statsId)
047                    throws com.liferay.portal.kernel.exception.SystemException,
048                            com.liferay.portlet.ratings.NoSuchStatsException;
049    
050            public com.liferay.portlet.ratings.model.RatingsStats fetchByPrimaryKey(
051                    long statsId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public com.liferay.portlet.ratings.model.RatingsStats findByC_C(
055                    long classNameId, long classPK)
056                    throws com.liferay.portal.kernel.exception.SystemException,
057                            com.liferay.portlet.ratings.NoSuchStatsException;
058    
059            public com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
060                    long classNameId, long classPK)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
064                    long classNameId, long classPK, boolean retrieveFromCache)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll()
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
071                    int start, int end)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
075                    int start, int end,
076                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            public void removeByC_C(long classNameId, long classPK)
080                    throws com.liferay.portal.kernel.exception.SystemException,
081                            com.liferay.portlet.ratings.NoSuchStatsException;
082    
083            public void removeAll()
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public int countByC_C(long classNameId, long classPK)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public int countAll()
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    }