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