001
014
015 package com.liferay.portlet.ratings.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.ratings.model.RatingsStats;
024
025 import java.util.List;
026
027
033 public class RatingsStatsUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(RatingsStats ratingsStats) {
045 getPersistence().clearCache(ratingsStats);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<RatingsStats> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<RatingsStats> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<RatingsStats> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static RatingsStats remove(RatingsStats ratingsStats)
088 throws SystemException {
089 return getPersistence().remove(ratingsStats);
090 }
091
092
095 public static RatingsStats update(RatingsStats ratingsStats, boolean merge)
096 throws SystemException {
097 return getPersistence().update(ratingsStats, merge);
098 }
099
100
103 public static RatingsStats update(RatingsStats ratingsStats, boolean merge,
104 ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(ratingsStats, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
110 getPersistence().cacheResult(ratingsStats);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.ratings.model.RatingsStats> ratingsStatses) {
115 getPersistence().cacheResult(ratingsStatses);
116 }
117
118 public static com.liferay.portlet.ratings.model.RatingsStats create(
119 long statsId) {
120 return getPersistence().create(statsId);
121 }
122
123 public static com.liferay.portlet.ratings.model.RatingsStats remove(
124 long statsId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.ratings.NoSuchStatsException {
127 return getPersistence().remove(statsId);
128 }
129
130 public static com.liferay.portlet.ratings.model.RatingsStats updateImpl(
131 com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(ratingsStats, merge);
135 }
136
137 public static com.liferay.portlet.ratings.model.RatingsStats findByPrimaryKey(
138 long statsId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.ratings.NoSuchStatsException {
141 return getPersistence().findByPrimaryKey(statsId);
142 }
143
144 public static com.liferay.portlet.ratings.model.RatingsStats fetchByPrimaryKey(
145 long statsId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(statsId);
148 }
149
150 public static com.liferay.portlet.ratings.model.RatingsStats findByC_C(
151 long classNameId, long classPK)
152 throws com.liferay.portal.kernel.exception.SystemException,
153 com.liferay.portlet.ratings.NoSuchStatsException {
154 return getPersistence().findByC_C(classNameId, classPK);
155 }
156
157 public static com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
158 long classNameId, long classPK)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getPersistence().fetchByC_C(classNameId, classPK);
161 }
162
163 public static com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
164 long classNameId, long classPK, boolean retrieveFromCache)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence()
167 .fetchByC_C(classNameId, classPK, retrieveFromCache);
168 }
169
170 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll()
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getPersistence().findAll();
173 }
174
175 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
176 int start, int end)
177 throws com.liferay.portal.kernel.exception.SystemException {
178 return getPersistence().findAll(start, end);
179 }
180
181 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
182 int start, int end,
183 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().findAll(start, end, orderByComparator);
186 }
187
188 public static void removeByC_C(long classNameId, long classPK)
189 throws com.liferay.portal.kernel.exception.SystemException,
190 com.liferay.portlet.ratings.NoSuchStatsException {
191 getPersistence().removeByC_C(classNameId, classPK);
192 }
193
194 public static void removeAll()
195 throws com.liferay.portal.kernel.exception.SystemException {
196 getPersistence().removeAll();
197 }
198
199 public static int countByC_C(long classNameId, long classPK)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().countByC_C(classNameId, classPK);
202 }
203
204 public static int countAll()
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().countAll();
207 }
208
209 public static RatingsStatsPersistence getPersistence() {
210 if (_persistence == null) {
211 _persistence = (RatingsStatsPersistence)PortalBeanLocatorUtil.locate(RatingsStatsPersistence.class.getName());
212 }
213
214 return _persistence;
215 }
216
217 public void setPersistence(RatingsStatsPersistence persistence) {
218 _persistence = persistence;
219 }
220
221 private static RatingsStatsPersistence _persistence;
222 }