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.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.SystemException,
45              com.liferay.portlet.ratings.NoSuchEntryException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.ratings.model.RatingsEntry update(
51          com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
55          com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
59          long entryId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.ratings.NoSuchEntryException;
62  
63      public com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
64          long entryId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
67          long classNameId, long classPK)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
71          long classNameId, long classPK, int start, int end)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
75          long classNameId, long classPK, int start, int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.SystemException;
78  
79      public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
80          long classNameId, long classPK,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portlet.ratings.NoSuchEntryException;
84  
85      public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
86          long classNameId, long classPK,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portlet.ratings.NoSuchEntryException;
90  
91      public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
92          long entryId, long classNameId, long classPK,
93          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
94          throws com.liferay.portal.SystemException,
95              com.liferay.portlet.ratings.NoSuchEntryException;
96  
97      public com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
98          long userId, long classNameId, long classPK)
99          throws com.liferay.portal.SystemException,
100             com.liferay.portlet.ratings.NoSuchEntryException;
101 
102     public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
103         long userId, long classNameId, long classPK)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
107         long userId, long classNameId, long classPK, boolean retrieveFromCache)
108         throws com.liferay.portal.SystemException;
109 
110     public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll()
111         throws com.liferay.portal.SystemException;
112 
113     public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
114         int start, int end) throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
117         int start, int end,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.SystemException;
120 
121     public void removeByC_C(long classNameId, long classPK)
122         throws com.liferay.portal.SystemException;
123 
124     public void removeByU_C_C(long userId, long classNameId, long classPK)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.ratings.NoSuchEntryException;
127 
128     public void removeAll() throws com.liferay.portal.SystemException;
129 
130     public int countByC_C(long classNameId, long classPK)
131         throws com.liferay.portal.SystemException;
132 
133     public int countByU_C_C(long userId, long classNameId, long classPK)
134         throws com.liferay.portal.SystemException;
135 
136     public int countAll() throws com.liferay.portal.SystemException;
137 }