1
14
15 package com.liferay.portlet.polls.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.polls.model.PollsQuestion;
23
24 import java.util.List;
25
26
39 public class PollsQuestionUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(PollsQuestion pollsQuestion) {
51 getPersistence().clearCache(pollsQuestion);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static PollsQuestion remove(PollsQuestion pollsQuestion)
82 throws SystemException {
83 return getPersistence().remove(pollsQuestion);
84 }
85
86
89 public static PollsQuestion update(PollsQuestion pollsQuestion,
90 boolean merge) throws SystemException {
91 return getPersistence().update(pollsQuestion, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion) {
96 getPersistence().cacheResult(pollsQuestion);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions) {
101 getPersistence().cacheResult(pollsQuestions);
102 }
103
104 public static com.liferay.portlet.polls.model.PollsQuestion create(
105 long questionId) {
106 return getPersistence().create(questionId);
107 }
108
109 public static com.liferay.portlet.polls.model.PollsQuestion remove(
110 long questionId)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.polls.NoSuchQuestionException {
113 return getPersistence().remove(questionId);
114 }
115
116
119 public static com.liferay.portlet.polls.model.PollsQuestion update(
120 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(pollsQuestion);
123 }
124
125 public static com.liferay.portlet.polls.model.PollsQuestion updateImpl(
126 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(pollsQuestion, merge);
129 }
130
131 public static com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
132 long questionId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.polls.NoSuchQuestionException {
135 return getPersistence().findByPrimaryKey(questionId);
136 }
137
138 public static com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
139 long questionId) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(questionId);
141 }
142
143 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
144 java.lang.String uuid) throws com.liferay.portal.SystemException {
145 return getPersistence().findByUuid(uuid);
146 }
147
148 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
149 java.lang.String uuid, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByUuid(uuid, start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
155 java.lang.String uuid, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException {
158 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
159 }
160
161 public static com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
162 java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.polls.NoSuchQuestionException {
166 return getPersistence().findByUuid_First(uuid, orderByComparator);
167 }
168
169 public static com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.polls.NoSuchQuestionException {
174 return getPersistence().findByUuid_Last(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
178 long questionId, java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.polls.NoSuchQuestionException {
182 return getPersistence()
183 .findByUuid_PrevAndNext(questionId, uuid, orderByComparator);
184 }
185
186 public static com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
187 java.lang.String uuid, long groupId)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.polls.NoSuchQuestionException {
190 return getPersistence().findByUUID_G(uuid, groupId);
191 }
192
193 public static com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
194 java.lang.String uuid, long groupId)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().fetchByUUID_G(uuid, groupId);
197 }
198
199 public static com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
200 java.lang.String uuid, long groupId, boolean retrieveFromCache)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
203 }
204
205 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
206 long groupId) throws com.liferay.portal.SystemException {
207 return getPersistence().findByGroupId(groupId);
208 }
209
210 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
211 long groupId, int start, int end)
212 throws com.liferay.portal.SystemException {
213 return getPersistence().findByGroupId(groupId, start, end);
214 }
215
216 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
217 long groupId, int start, int end,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.SystemException {
220 return getPersistence()
221 .findByGroupId(groupId, start, end, orderByComparator);
222 }
223
224 public static com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
225 long groupId,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.SystemException,
228 com.liferay.portlet.polls.NoSuchQuestionException {
229 return getPersistence().findByGroupId_First(groupId, orderByComparator);
230 }
231
232 public static com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
233 long groupId,
234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235 throws com.liferay.portal.SystemException,
236 com.liferay.portlet.polls.NoSuchQuestionException {
237 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
238 }
239
240 public static com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
241 long questionId, long groupId,
242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243 throws com.liferay.portal.SystemException,
244 com.liferay.portlet.polls.NoSuchQuestionException {
245 return getPersistence()
246 .findByGroupId_PrevAndNext(questionId, groupId,
247 orderByComparator);
248 }
249
250 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
251 throws com.liferay.portal.SystemException {
252 return getPersistence().findAll();
253 }
254
255 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
256 int start, int end) throws com.liferay.portal.SystemException {
257 return getPersistence().findAll(start, end);
258 }
259
260 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
261 int start, int end,
262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263 throws com.liferay.portal.SystemException {
264 return getPersistence().findAll(start, end, orderByComparator);
265 }
266
267 public static void removeByUuid(java.lang.String uuid)
268 throws com.liferay.portal.SystemException {
269 getPersistence().removeByUuid(uuid);
270 }
271
272 public static void removeByUUID_G(java.lang.String uuid, long groupId)
273 throws com.liferay.portal.SystemException,
274 com.liferay.portlet.polls.NoSuchQuestionException {
275 getPersistence().removeByUUID_G(uuid, groupId);
276 }
277
278 public static void removeByGroupId(long groupId)
279 throws com.liferay.portal.SystemException {
280 getPersistence().removeByGroupId(groupId);
281 }
282
283 public static void removeAll() throws com.liferay.portal.SystemException {
284 getPersistence().removeAll();
285 }
286
287 public static int countByUuid(java.lang.String uuid)
288 throws com.liferay.portal.SystemException {
289 return getPersistence().countByUuid(uuid);
290 }
291
292 public static int countByUUID_G(java.lang.String uuid, long groupId)
293 throws com.liferay.portal.SystemException {
294 return getPersistence().countByUUID_G(uuid, groupId);
295 }
296
297 public static int countByGroupId(long groupId)
298 throws com.liferay.portal.SystemException {
299 return getPersistence().countByGroupId(groupId);
300 }
301
302 public static int countAll() throws com.liferay.portal.SystemException {
303 return getPersistence().countAll();
304 }
305
306 public static PollsQuestionPersistence getPersistence() {
307 if (_persistence == null) {
308 _persistence = (PollsQuestionPersistence)PortalBeanLocatorUtil.locate(PollsQuestionPersistence.class.getName());
309
310 ReferenceRegistry.registerReference(PollsQuestionUtil.class,
311 "_persistence");
312 }
313
314 return _persistence;
315 }
316
317 public void setPersistence(PollsQuestionPersistence persistence) {
318 _persistence = persistence;
319
320 ReferenceRegistry.registerReference(PollsQuestionUtil.class,
321 "_persistence");
322 }
323
324 private static PollsQuestionPersistence _persistence;
325 }