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.RatingsStats;
30
31 import java.util.List;
32
33
46 public class RatingsStatsUtil {
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 RatingsStats remove(RatingsStats ratingsStats)
74 throws SystemException {
75 return getPersistence().remove(ratingsStats);
76 }
77
78
81 public static RatingsStats update(RatingsStats ratingsStats, boolean merge)
82 throws SystemException {
83 return getPersistence().update(ratingsStats, merge);
84 }
85
86 public static void cacheResult(
87 com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
88 getPersistence().cacheResult(ratingsStats);
89 }
90
91 public static void cacheResult(
92 java.util.List<com.liferay.portlet.ratings.model.RatingsStats> ratingsStatses) {
93 getPersistence().cacheResult(ratingsStatses);
94 }
95
96 public static com.liferay.portlet.ratings.model.RatingsStats create(
97 long statsId) {
98 return getPersistence().create(statsId);
99 }
100
101 public static com.liferay.portlet.ratings.model.RatingsStats remove(
102 long statsId)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.ratings.NoSuchStatsException {
105 return getPersistence().remove(statsId);
106 }
107
108
111 public static com.liferay.portlet.ratings.model.RatingsStats update(
112 com.liferay.portlet.ratings.model.RatingsStats ratingsStats)
113 throws com.liferay.portal.SystemException {
114 return getPersistence().update(ratingsStats);
115 }
116
117 public static com.liferay.portlet.ratings.model.RatingsStats updateImpl(
118 com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
119 boolean merge) throws com.liferay.portal.SystemException {
120 return getPersistence().updateImpl(ratingsStats, merge);
121 }
122
123 public static com.liferay.portlet.ratings.model.RatingsStats findByPrimaryKey(
124 long statsId)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.ratings.NoSuchStatsException {
127 return getPersistence().findByPrimaryKey(statsId);
128 }
129
130 public static com.liferay.portlet.ratings.model.RatingsStats fetchByPrimaryKey(
131 long statsId) throws com.liferay.portal.SystemException {
132 return getPersistence().fetchByPrimaryKey(statsId);
133 }
134
135 public static com.liferay.portlet.ratings.model.RatingsStats findByC_C(
136 long classNameId, long classPK)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.ratings.NoSuchStatsException {
139 return getPersistence().findByC_C(classNameId, classPK);
140 }
141
142 public static com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
143 long classNameId, long classPK)
144 throws com.liferay.portal.SystemException {
145 return getPersistence().fetchByC_C(classNameId, classPK);
146 }
147
148 public static com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
149 long classNameId, long classPK, boolean retrieveFromCache)
150 throws com.liferay.portal.SystemException {
151 return getPersistence()
152 .fetchByC_C(classNameId, classPK, retrieveFromCache);
153 }
154
155 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll()
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findAll();
158 }
159
160 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
161 int start, int end) throws com.liferay.portal.SystemException {
162 return getPersistence().findAll(start, end);
163 }
164
165 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
166 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
167 throws com.liferay.portal.SystemException {
168 return getPersistence().findAll(start, end, obc);
169 }
170
171 public static void removeByC_C(long classNameId, long classPK)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.ratings.NoSuchStatsException {
174 getPersistence().removeByC_C(classNameId, classPK);
175 }
176
177 public static void removeAll() throws com.liferay.portal.SystemException {
178 getPersistence().removeAll();
179 }
180
181 public static int countByC_C(long classNameId, long classPK)
182 throws com.liferay.portal.SystemException {
183 return getPersistence().countByC_C(classNameId, classPK);
184 }
185
186 public static int countAll() throws com.liferay.portal.SystemException {
187 return getPersistence().countAll();
188 }
189
190 public static RatingsStatsPersistence getPersistence() {
191 if (_persistence == null) {
192 _persistence = (RatingsStatsPersistence)PortalBeanLocatorUtil.locate(RatingsStatsPersistence.class.getName());
193 }
194
195 return _persistence;
196 }
197
198 public void setPersistence(RatingsStatsPersistence persistence) {
199 _persistence = persistence;
200 }
201
202 private static RatingsStatsPersistence _persistence;
203 }