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