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