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.RatingsEntry;
20  
21  /**
22   * <a href="RatingsEntryPersistence.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       RatingsEntryPersistenceImpl
31   * @see       RatingsEntryUtil
32   * @generated
33   */
34  public interface RatingsEntryPersistence extends BasePersistence<RatingsEntry> {
35      public void cacheResult(
36          com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> ratingsEntries);
40  
41      public com.liferay.portlet.ratings.model.RatingsEntry create(long entryId);
42  
43      public com.liferay.portlet.ratings.model.RatingsEntry remove(long entryId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.ratings.NoSuchEntryException;
46  
47      public com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
48          com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
53          long entryId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.ratings.NoSuchEntryException;
56  
57      public com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
58          long entryId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
62          long classNameId, long classPK)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
66          long classNameId, long classPK, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
70          long classNameId, long classPK, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
75          long classNameId, long classPK,
76          com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.ratings.NoSuchEntryException;
79  
80      public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
81          long classNameId, long classPK,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.ratings.NoSuchEntryException;
85  
86      public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
87          long entryId, long classNameId, long classPK,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.kernel.exception.SystemException,
90              com.liferay.portlet.ratings.NoSuchEntryException;
91  
92      public com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
93          long userId, long classNameId, long classPK)
94          throws com.liferay.portal.kernel.exception.SystemException,
95              com.liferay.portlet.ratings.NoSuchEntryException;
96  
97      public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
98          long userId, long classNameId, long classPK)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
102         long userId, long classNameId, long classPK, boolean retrieveFromCache)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll()
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
109         int start, int end)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
113         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public void removeByC_C(long classNameId, long classPK)
117         throws com.liferay.portal.kernel.exception.SystemException;
118 
119     public void removeByU_C_C(long userId, long classNameId, long classPK)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.ratings.NoSuchEntryException;
122 
123     public void removeAll()
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public int countByC_C(long classNameId, long classPK)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public int countByU_C_C(long userId, long classNameId, long classPK)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public int countAll()
133         throws com.liferay.portal.kernel.exception.SystemException;
134 }