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