1
14
15 package com.liferay.portlet.ratings.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class RatingsStatsLocalServiceUtil {
42 public static com.liferay.portlet.ratings.model.RatingsStats addRatingsStats(
43 com.liferay.portlet.ratings.model.RatingsStats ratingsStats)
44 throws com.liferay.portal.SystemException {
45 return getService().addRatingsStats(ratingsStats);
46 }
47
48 public static com.liferay.portlet.ratings.model.RatingsStats createRatingsStats(
49 long statsId) {
50 return getService().createRatingsStats(statsId);
51 }
52
53 public static void deleteRatingsStats(long statsId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteRatingsStats(statsId);
57 }
58
59 public static void deleteRatingsStats(
60 com.liferay.portlet.ratings.model.RatingsStats ratingsStats)
61 throws com.liferay.portal.SystemException {
62 getService().deleteRatingsStats(ratingsStats);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.ratings.model.RatingsStats getRatingsStats(
96 long statsId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getRatingsStats(statsId);
100 }
101
102 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> getRatingsStatses(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getRatingsStatses(start, end);
105 }
106
107 public static int getRatingsStatsesCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getRatingsStatsesCount();
110 }
111
112 public static com.liferay.portlet.ratings.model.RatingsStats updateRatingsStats(
113 com.liferay.portlet.ratings.model.RatingsStats ratingsStats)
114 throws com.liferay.portal.SystemException {
115 return getService().updateRatingsStats(ratingsStats);
116 }
117
118 public static com.liferay.portlet.ratings.model.RatingsStats updateRatingsStats(
119 com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getService().updateRatingsStats(ratingsStats, merge);
122 }
123
124 public static com.liferay.portlet.ratings.model.RatingsStats addStats(
125 long classNameId, long classPK)
126 throws com.liferay.portal.SystemException {
127 return getService().addStats(classNameId, classPK);
128 }
129
130 public static void deleteStats(java.lang.String className, long classPK)
131 throws com.liferay.portal.SystemException {
132 getService().deleteStats(className, classPK);
133 }
134
135 public static com.liferay.portlet.ratings.model.RatingsStats getStats(
136 long statsId)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 return getService().getStats(statsId);
140 }
141
142 public static com.liferay.portlet.ratings.model.RatingsStats getStats(
143 java.lang.String className, long classPK)
144 throws com.liferay.portal.SystemException {
145 return getService().getStats(className, classPK);
146 }
147
148 public static RatingsStatsLocalService getService() {
149 if (_service == null) {
150 _service = (RatingsStatsLocalService)PortalBeanLocatorUtil.locate(RatingsStatsLocalService.class.getName());
151
152 ReferenceRegistry.registerReference(RatingsStatsLocalServiceUtil.class,
153 "_service");
154 MethodCache.remove(RatingsStatsLocalService.class);
155 }
156
157 return _service;
158 }
159
160 public void setService(RatingsStatsLocalService service) {
161 MethodCache.remove(RatingsStatsLocalService.class);
162
163 _service = service;
164
165 ReferenceRegistry.registerReference(RatingsStatsLocalServiceUtil.class,
166 "_service");
167 MethodCache.remove(RatingsStatsLocalService.class);
168 }
169
170 private static RatingsStatsLocalService _service;
171 }