1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.ratings.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.ratings.model.RatingsEntry;
28  
29  /**
30   * <a href="RatingsEntryPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       RatingsEntryPersistenceImpl
39   * @see       RatingsEntryUtil
40   * @generated
41   */
42  public interface RatingsEntryPersistence extends BasePersistence<RatingsEntry> {
43      public void cacheResult(
44          com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> ratingsEntries);
48  
49      public com.liferay.portlet.ratings.model.RatingsEntry create(long entryId);
50  
51      public com.liferay.portlet.ratings.model.RatingsEntry remove(long entryId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.ratings.NoSuchEntryException;
54  
55      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portlet.ratings.model.RatingsEntry update(
59          com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
63          com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
64          boolean merge) throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
67          long entryId)
68          throws com.liferay.portal.SystemException,
69              com.liferay.portlet.ratings.NoSuchEntryException;
70  
71      public com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
72          long entryId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
75          long classNameId, long classPK)
76          throws com.liferay.portal.SystemException;
77  
78      public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
79          long classNameId, long classPK, int start, int end)
80          throws com.liferay.portal.SystemException;
81  
82      public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
83          long classNameId, long classPK, int start, int end,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
88          long classNameId, long classPK,
89          com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.ratings.NoSuchEntryException;
92  
93      public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
94          long classNameId, long classPK,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portlet.ratings.NoSuchEntryException;
98  
99      public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
100         long entryId, long classNameId, long classPK,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException,
103             com.liferay.portlet.ratings.NoSuchEntryException;
104 
105     public com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
106         long userId, long classNameId, long classPK)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.ratings.NoSuchEntryException;
109 
110     public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
111         long userId, long classNameId, long classPK)
112         throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
115         long userId, long classNameId, long classPK, boolean retrieveFromCache)
116         throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll()
119         throws com.liferay.portal.SystemException;
120 
121     public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
122         int start, int end) throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
125         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
126         throws com.liferay.portal.SystemException;
127 
128     public void removeByC_C(long classNameId, long classPK)
129         throws com.liferay.portal.SystemException;
130 
131     public void removeByU_C_C(long userId, long classNameId, long classPK)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portlet.ratings.NoSuchEntryException;
134 
135     public void removeAll() throws com.liferay.portal.SystemException;
136 
137     public int countByC_C(long classNameId, long classPK)
138         throws com.liferay.portal.SystemException;
139 
140     public int countByU_C_C(long userId, long classNameId, long classPK)
141         throws com.liferay.portal.SystemException;
142 
143     public int countAll() throws com.liferay.portal.SystemException;
144 }