1
22
23 package com.liferay.portlet.ratings.service.persistence;
24
25 import com.liferay.portal.SystemException;
26 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28
29 import com.liferay.portlet.ratings.model.RatingsEntry;
30
31 import java.util.List;
32
33
46 public class RatingsEntryUtil {
47
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66 int start, int end) throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68 }
69
70
73 public static RatingsEntry remove(RatingsEntry ratingsEntry)
74 throws SystemException {
75 return getPersistence().remove(ratingsEntry);
76 }
77
78
81 public static RatingsEntry update(RatingsEntry ratingsEntry, boolean merge)
82 throws SystemException {
83 return getPersistence().update(ratingsEntry, merge);
84 }
85
86 public static void cacheResult(
87 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry) {
88 getPersistence().cacheResult(ratingsEntry);
89 }
90
91 public static void cacheResult(
92 java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> ratingsEntries) {
93 getPersistence().cacheResult(ratingsEntries);
94 }
95
96 public static com.liferay.portlet.ratings.model.RatingsEntry create(
97 long entryId) {
98 return getPersistence().create(entryId);
99 }
100
101 public static com.liferay.portlet.ratings.model.RatingsEntry remove(
102 long entryId)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.ratings.NoSuchEntryException {
105 return getPersistence().remove(entryId);
106 }
107
108
111 public static com.liferay.portlet.ratings.model.RatingsEntry update(
112 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
113 throws com.liferay.portal.SystemException {
114 return getPersistence().update(ratingsEntry);
115 }
116
117 public static com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
118 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
119 boolean merge) throws com.liferay.portal.SystemException {
120 return getPersistence().updateImpl(ratingsEntry, merge);
121 }
122
123 public static com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
124 long entryId)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.ratings.NoSuchEntryException {
127 return getPersistence().findByPrimaryKey(entryId);
128 }
129
130 public static com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
131 long entryId) throws com.liferay.portal.SystemException {
132 return getPersistence().fetchByPrimaryKey(entryId);
133 }
134
135 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
136 long classNameId, long classPK)
137 throws com.liferay.portal.SystemException {
138 return getPersistence().findByC_C(classNameId, classPK);
139 }
140
141 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
142 long classNameId, long classPK, int start, int end)
143 throws com.liferay.portal.SystemException {
144 return getPersistence().findByC_C(classNameId, classPK, start, end);
145 }
146
147 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
148 long classNameId, long classPK, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByC_C(classNameId, classPK, start, end, obc);
152 }
153
154 public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
155 long classNameId, long classPK,
156 com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.ratings.NoSuchEntryException {
159 return getPersistence().findByC_C_First(classNameId, classPK, obc);
160 }
161
162 public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
163 long classNameId, long classPK,
164 com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.ratings.NoSuchEntryException {
167 return getPersistence().findByC_C_Last(classNameId, classPK, obc);
168 }
169
170 public static com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
171 long entryId, long classNameId, long classPK,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.ratings.NoSuchEntryException {
175 return getPersistence()
176 .findByC_C_PrevAndNext(entryId, classNameId, classPK, obc);
177 }
178
179 public static com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
180 long userId, long classNameId, long classPK)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.ratings.NoSuchEntryException {
183 return getPersistence().findByU_C_C(userId, classNameId, classPK);
184 }
185
186 public static com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
187 long userId, long classNameId, long classPK)
188 throws com.liferay.portal.SystemException {
189 return getPersistence().fetchByU_C_C(userId, classNameId, classPK);
190 }
191
192 public static com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
193 long userId, long classNameId, long classPK, boolean retrieveFromCache)
194 throws com.liferay.portal.SystemException {
195 return getPersistence()
196 .fetchByU_C_C(userId, classNameId, classPK, retrieveFromCache);
197 }
198
199 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll()
200 throws com.liferay.portal.SystemException {
201 return getPersistence().findAll();
202 }
203
204 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
205 int start, int end) throws com.liferay.portal.SystemException {
206 return getPersistence().findAll(start, end);
207 }
208
209 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
210 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
211 throws com.liferay.portal.SystemException {
212 return getPersistence().findAll(start, end, obc);
213 }
214
215 public static void removeByC_C(long classNameId, long classPK)
216 throws com.liferay.portal.SystemException {
217 getPersistence().removeByC_C(classNameId, classPK);
218 }
219
220 public static void removeByU_C_C(long userId, long classNameId, long classPK)
221 throws com.liferay.portal.SystemException,
222 com.liferay.portlet.ratings.NoSuchEntryException {
223 getPersistence().removeByU_C_C(userId, classNameId, classPK);
224 }
225
226 public static void removeAll() throws com.liferay.portal.SystemException {
227 getPersistence().removeAll();
228 }
229
230 public static int countByC_C(long classNameId, long classPK)
231 throws com.liferay.portal.SystemException {
232 return getPersistence().countByC_C(classNameId, classPK);
233 }
234
235 public static int countByU_C_C(long userId, long classNameId, long classPK)
236 throws com.liferay.portal.SystemException {
237 return getPersistence().countByU_C_C(userId, classNameId, classPK);
238 }
239
240 public static int countAll() throws com.liferay.portal.SystemException {
241 return getPersistence().countAll();
242 }
243
244 public static RatingsEntryPersistence getPersistence() {
245 if (_persistence == null) {
246 _persistence = (RatingsEntryPersistence)PortalBeanLocatorUtil.locate(RatingsEntryPersistence.class.getName());
247 }
248
249 return _persistence;
250 }
251
252 public void setPersistence(RatingsEntryPersistence persistence) {
253 _persistence = persistence;
254 }
255
256 private static RatingsEntryPersistence _persistence;
257 }