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