1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.ratings.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.ratings.model.RatingsStats;
20  
21  /**
22   * <a href="RatingsStatsPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       RatingsStatsPersistenceImpl
31   * @see       RatingsStatsUtil
32   * @generated
33   */
34  public interface RatingsStatsPersistence extends BasePersistence<RatingsStats> {
35      public void cacheResult(
36          com.liferay.portlet.ratings.model.RatingsStats ratingsStats);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.ratings.model.RatingsStats> ratingsStatses);
40  
41      public com.liferay.portlet.ratings.model.RatingsStats create(long statsId);
42  
43      public com.liferay.portlet.ratings.model.RatingsStats remove(long statsId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.ratings.NoSuchStatsException;
46  
47      public com.liferay.portlet.ratings.model.RatingsStats updateImpl(
48          com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.ratings.model.RatingsStats findByPrimaryKey(
53          long statsId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.ratings.NoSuchStatsException;
56  
57      public com.liferay.portlet.ratings.model.RatingsStats fetchByPrimaryKey(
58          long statsId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public com.liferay.portlet.ratings.model.RatingsStats findByC_C(
62          long classNameId, long classPK)
63          throws com.liferay.portal.kernel.exception.SystemException,
64              com.liferay.portlet.ratings.NoSuchStatsException;
65  
66      public com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
67          long classNameId, long classPK)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
71          long classNameId, long classPK, boolean retrieveFromCache)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll()
75          throws com.liferay.portal.kernel.exception.SystemException;
76  
77      public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
78          int start, int end)
79          throws com.liferay.portal.kernel.exception.SystemException;
80  
81      public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
82          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.kernel.exception.SystemException;
84  
85      public void removeByC_C(long classNameId, long classPK)
86          throws com.liferay.portal.kernel.exception.SystemException,
87              com.liferay.portlet.ratings.NoSuchStatsException;
88  
89      public void removeAll()
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public int countByC_C(long classNameId, long classPK)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public int countAll()
96          throws com.liferay.portal.kernel.exception.SystemException;
97  }