1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.SystemException,
45              com.liferay.portlet.ratings.NoSuchStatsException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.ratings.model.RatingsStats update(
51          com.liferay.portlet.ratings.model.RatingsStats ratingsStats)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.ratings.model.RatingsStats updateImpl(
55          com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.ratings.model.RatingsStats findByPrimaryKey(
59          long statsId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.ratings.NoSuchStatsException;
62  
63      public com.liferay.portlet.ratings.model.RatingsStats fetchByPrimaryKey(
64          long statsId) throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portlet.ratings.model.RatingsStats findByC_C(
67          long classNameId, long classPK)
68          throws com.liferay.portal.SystemException,
69              com.liferay.portlet.ratings.NoSuchStatsException;
70  
71      public com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
72          long classNameId, long classPK)
73          throws com.liferay.portal.SystemException;
74  
75      public com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
76          long classNameId, long classPK, boolean retrieveFromCache)
77          throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll()
80          throws com.liferay.portal.SystemException;
81  
82      public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
83          int start, int end) throws com.liferay.portal.SystemException;
84  
85      public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
86          int start, int end,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.SystemException;
89  
90      public void removeByC_C(long classNameId, long classPK)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.ratings.NoSuchStatsException;
93  
94      public void removeAll() throws com.liferay.portal.SystemException;
95  
96      public int countByC_C(long classNameId, long classPK)
97          throws com.liferay.portal.SystemException;
98  
99      public int countAll() throws com.liferay.portal.SystemException;
100 }