001
014
015 package com.liferay.portlet.ratings.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class RatingsEntryLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.ratings.model.RatingsEntry addRatingsEntry(
049 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addRatingsEntry(ratingsEntry);
052 }
053
054
060 public static com.liferay.portlet.ratings.model.RatingsEntry createRatingsEntry(
061 long entryId) {
062 return getService().createRatingsEntry(entryId);
063 }
064
065
072 public static void deleteRatingsEntry(long entryId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteRatingsEntry(entryId);
076 }
077
078
084 public static void deleteRatingsEntry(
085 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteRatingsEntry(ratingsEntry);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161 public static com.liferay.portlet.ratings.model.RatingsEntry fetchRatingsEntry(
162 long entryId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().fetchRatingsEntry(entryId);
165 }
166
167
175 public static com.liferay.portlet.ratings.model.RatingsEntry getRatingsEntry(
176 long entryId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getRatingsEntry(entryId);
180 }
181
182 public static com.liferay.portal.model.PersistedModel getPersistedModel(
183 java.io.Serializable primaryKeyObj)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService().getPersistedModel(primaryKeyObj);
187 }
188
189
201 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getRatingsEntries(
202 int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getService().getRatingsEntries(start, end);
205 }
206
207
213 public static int getRatingsEntriesCount()
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService().getRatingsEntriesCount();
216 }
217
218
225 public static com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
226 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().updateRatingsEntry(ratingsEntry);
229 }
230
231
239 public static com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
240 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
241 boolean merge)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getService().updateRatingsEntry(ratingsEntry, merge);
244 }
245
246
251 public static java.lang.String getBeanIdentifier() {
252 return getService().getBeanIdentifier();
253 }
254
255
260 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
261 getService().setBeanIdentifier(beanIdentifier);
262 }
263
264 public static void deleteEntry(long userId, java.lang.String className,
265 long classPK)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 getService().deleteEntry(userId, className, classPK);
269 }
270
271 public static com.liferay.portlet.ratings.model.RatingsEntry fetchEntry(
272 long userId, java.lang.String className, long classPK)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 return getService().fetchEntry(userId, className, classPK);
275 }
276
277 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
278 long userId, java.lang.String className,
279 java.util.List<java.lang.Long> classPKs)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getService().getEntries(userId, className, classPKs);
282 }
283
284 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
285 java.lang.String className, long classPK)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getService().getEntries(className, classPK);
288 }
289
290 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
291 java.lang.String className, long classPK, double score)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getService().getEntries(className, classPK, score);
294 }
295
296 public static int getEntriesCount(java.lang.String className, long classPK,
297 double score)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getService().getEntriesCount(className, classPK, score);
300 }
301
302 public static com.liferay.portlet.ratings.model.RatingsEntry getEntry(
303 long userId, java.lang.String className, long classPK)
304 throws com.liferay.portal.kernel.exception.PortalException,
305 com.liferay.portal.kernel.exception.SystemException {
306 return getService().getEntry(userId, className, classPK);
307 }
308
309 public static com.liferay.portlet.ratings.model.RatingsEntry updateEntry(
310 long userId, java.lang.String className, long classPK, double score,
311 com.liferay.portal.service.ServiceContext serviceContext)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException {
314 return getService()
315 .updateEntry(userId, className, classPK, score,
316 serviceContext);
317 }
318
319 public static RatingsEntryLocalService getService() {
320 if (_service == null) {
321 _service = (RatingsEntryLocalService)PortalBeanLocatorUtil.locate(RatingsEntryLocalService.class.getName());
322
323 ReferenceRegistry.registerReference(RatingsEntryLocalServiceUtil.class,
324 "_service");
325 MethodCache.remove(RatingsEntryLocalService.class);
326 }
327
328 return _service;
329 }
330
331 public void setService(RatingsEntryLocalService service) {
332 MethodCache.remove(RatingsEntryLocalService.class);
333
334 _service = service;
335
336 ReferenceRegistry.registerReference(RatingsEntryLocalServiceUtil.class,
337 "_service");
338 MethodCache.remove(RatingsEntryLocalService.class);
339 }
340
341 private static RatingsEntryLocalService _service;
342 }