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