1
14
15 package com.liferay.portlet.polls.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.polls.model.PollsQuestion;
22
23 import java.util.List;
24
25
38 public class PollsQuestionUtil {
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 PollsQuestion remove(PollsQuestion pollsQuestion)
66 throws SystemException {
67 return getPersistence().remove(pollsQuestion);
68 }
69
70
73 public static PollsQuestion update(PollsQuestion pollsQuestion,
74 boolean merge) throws SystemException {
75 return getPersistence().update(pollsQuestion, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion) {
80 getPersistence().cacheResult(pollsQuestion);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions) {
85 getPersistence().cacheResult(pollsQuestions);
86 }
87
88 public static com.liferay.portlet.polls.model.PollsQuestion create(
89 long questionId) {
90 return getPersistence().create(questionId);
91 }
92
93 public static com.liferay.portlet.polls.model.PollsQuestion remove(
94 long questionId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.polls.NoSuchQuestionException {
97 return getPersistence().remove(questionId);
98 }
99
100 public static com.liferay.portlet.polls.model.PollsQuestion updateImpl(
101 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(pollsQuestion, merge);
105 }
106
107 public static com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
108 long questionId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.polls.NoSuchQuestionException {
111 return getPersistence().findByPrimaryKey(questionId);
112 }
113
114 public static com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
115 long questionId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(questionId);
118 }
119
120 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
121 java.lang.String uuid)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByUuid(uuid);
124 }
125
126 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
127 java.lang.String uuid, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByUuid(uuid, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
133 java.lang.String uuid, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByUuid(uuid, start, end, obc);
137 }
138
139 public static com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
140 java.lang.String uuid,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.polls.NoSuchQuestionException {
144 return getPersistence().findByUuid_First(uuid, obc);
145 }
146
147 public static com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
148 java.lang.String uuid,
149 com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.kernel.exception.SystemException,
151 com.liferay.portlet.polls.NoSuchQuestionException {
152 return getPersistence().findByUuid_Last(uuid, obc);
153 }
154
155 public static com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
156 long questionId, java.lang.String uuid,
157 com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.polls.NoSuchQuestionException {
160 return getPersistence().findByUuid_PrevAndNext(questionId, uuid, obc);
161 }
162
163 public static com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
164 java.lang.String uuid, long groupId)
165 throws com.liferay.portal.kernel.exception.SystemException,
166 com.liferay.portlet.polls.NoSuchQuestionException {
167 return getPersistence().findByUUID_G(uuid, groupId);
168 }
169
170 public static com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().fetchByUUID_G(uuid, groupId);
174 }
175
176 public static com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
177 java.lang.String uuid, long groupId, boolean retrieveFromCache)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180 }
181
182 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
183 long groupId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().findByGroupId(groupId);
186 }
187
188 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
189 long groupId, int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().findByGroupId(groupId, start, end);
192 }
193
194 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
195 long groupId, int start, int end,
196 com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().findByGroupId(groupId, start, end, obc);
199 }
200
201 public static com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
202 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.kernel.exception.SystemException,
204 com.liferay.portlet.polls.NoSuchQuestionException {
205 return getPersistence().findByGroupId_First(groupId, obc);
206 }
207
208 public static com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
209 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
210 throws com.liferay.portal.kernel.exception.SystemException,
211 com.liferay.portlet.polls.NoSuchQuestionException {
212 return getPersistence().findByGroupId_Last(groupId, obc);
213 }
214
215 public static com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
216 long questionId, long groupId,
217 com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.polls.NoSuchQuestionException {
220 return getPersistence()
221 .findByGroupId_PrevAndNext(questionId, groupId, obc);
222 }
223
224 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence().findAll();
227 }
228
229 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
230 int start, int end)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getPersistence().findAll(start, end);
233 }
234
235 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
236 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getPersistence().findAll(start, end, obc);
239 }
240
241 public static void removeByUuid(java.lang.String uuid)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 getPersistence().removeByUuid(uuid);
244 }
245
246 public static void removeByUUID_G(java.lang.String uuid, long groupId)
247 throws com.liferay.portal.kernel.exception.SystemException,
248 com.liferay.portlet.polls.NoSuchQuestionException {
249 getPersistence().removeByUUID_G(uuid, groupId);
250 }
251
252 public static void removeByGroupId(long groupId)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 getPersistence().removeByGroupId(groupId);
255 }
256
257 public static void removeAll()
258 throws com.liferay.portal.kernel.exception.SystemException {
259 getPersistence().removeAll();
260 }
261
262 public static int countByUuid(java.lang.String uuid)
263 throws com.liferay.portal.kernel.exception.SystemException {
264 return getPersistence().countByUuid(uuid);
265 }
266
267 public static int countByUUID_G(java.lang.String uuid, long groupId)
268 throws com.liferay.portal.kernel.exception.SystemException {
269 return getPersistence().countByUUID_G(uuid, groupId);
270 }
271
272 public static int countByGroupId(long groupId)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 return getPersistence().countByGroupId(groupId);
275 }
276
277 public static int countAll()
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence().countAll();
280 }
281
282 public static PollsQuestionPersistence getPersistence() {
283 if (_persistence == null) {
284 _persistence = (PollsQuestionPersistence)PortalBeanLocatorUtil.locate(PollsQuestionPersistence.class.getName());
285 }
286
287 return _persistence;
288 }
289
290 public void setPersistence(PollsQuestionPersistence persistence) {
291 _persistence = persistence;
292 }
293
294 private static PollsQuestionPersistence _persistence;
295 }