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.PollsChoice;
22
23 import java.util.List;
24
25
38 public class PollsChoiceUtil {
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 PollsChoice remove(PollsChoice pollsChoice)
66 throws SystemException {
67 return getPersistence().remove(pollsChoice);
68 }
69
70
73 public static PollsChoice update(PollsChoice pollsChoice, boolean merge)
74 throws SystemException {
75 return getPersistence().update(pollsChoice, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.polls.model.PollsChoice pollsChoice) {
80 getPersistence().cacheResult(pollsChoice);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.polls.model.PollsChoice> pollsChoices) {
85 getPersistence().cacheResult(pollsChoices);
86 }
87
88 public static com.liferay.portlet.polls.model.PollsChoice create(
89 long choiceId) {
90 return getPersistence().create(choiceId);
91 }
92
93 public static com.liferay.portlet.polls.model.PollsChoice remove(
94 long choiceId)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.polls.NoSuchChoiceException {
97 return getPersistence().remove(choiceId);
98 }
99
100
103 public static com.liferay.portlet.polls.model.PollsChoice update(
104 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().update(pollsChoice);
107 }
108
109 public static com.liferay.portlet.polls.model.PollsChoice updateImpl(
110 com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
111 throws com.liferay.portal.SystemException {
112 return getPersistence().updateImpl(pollsChoice, merge);
113 }
114
115 public static com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(
116 long choiceId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.polls.NoSuchChoiceException {
119 return getPersistence().findByPrimaryKey(choiceId);
120 }
121
122 public static com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(
123 long choiceId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByPrimaryKey(choiceId);
125 }
126
127 public static java.util.List<com.liferay.portlet.polls.model.PollsChoice> 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.PollsChoice> 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.PollsChoice> findByUuid(
139 java.lang.String uuid, int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
143 }
144
145 public static com.liferay.portlet.polls.model.PollsChoice findByUuid_First(
146 java.lang.String uuid,
147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.polls.NoSuchChoiceException {
150 return getPersistence().findByUuid_First(uuid, orderByComparator);
151 }
152
153 public static com.liferay.portlet.polls.model.PollsChoice findByUuid_Last(
154 java.lang.String uuid,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.polls.NoSuchChoiceException {
158 return getPersistence().findByUuid_Last(uuid, orderByComparator);
159 }
160
161 public static com.liferay.portlet.polls.model.PollsChoice[] findByUuid_PrevAndNext(
162 long choiceId, java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.polls.NoSuchChoiceException {
166 return getPersistence()
167 .findByUuid_PrevAndNext(choiceId, uuid, orderByComparator);
168 }
169
170 public static java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
171 long questionId) throws com.liferay.portal.SystemException {
172 return getPersistence().findByQuestionId(questionId);
173 }
174
175 public static java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
176 long questionId, int start, int end)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().findByQuestionId(questionId, start, end);
179 }
180
181 public static java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
182 long questionId, int start, int end,
183 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184 throws com.liferay.portal.SystemException {
185 return getPersistence()
186 .findByQuestionId(questionId, start, end, orderByComparator);
187 }
188
189 public static com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(
190 long questionId,
191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192 throws com.liferay.portal.SystemException,
193 com.liferay.portlet.polls.NoSuchChoiceException {
194 return getPersistence()
195 .findByQuestionId_First(questionId, orderByComparator);
196 }
197
198 public static com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(
199 long questionId,
200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201 throws com.liferay.portal.SystemException,
202 com.liferay.portlet.polls.NoSuchChoiceException {
203 return getPersistence()
204 .findByQuestionId_Last(questionId, orderByComparator);
205 }
206
207 public static com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(
208 long choiceId, long questionId,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.polls.NoSuchChoiceException {
212 return getPersistence()
213 .findByQuestionId_PrevAndNext(choiceId, questionId,
214 orderByComparator);
215 }
216
217 public static com.liferay.portlet.polls.model.PollsChoice findByQ_N(
218 long questionId, java.lang.String name)
219 throws com.liferay.portal.SystemException,
220 com.liferay.portlet.polls.NoSuchChoiceException {
221 return getPersistence().findByQ_N(questionId, name);
222 }
223
224 public static com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
225 long questionId, java.lang.String name)
226 throws com.liferay.portal.SystemException {
227 return getPersistence().fetchByQ_N(questionId, name);
228 }
229
230 public static com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
231 long questionId, java.lang.String name, boolean retrieveFromCache)
232 throws com.liferay.portal.SystemException {
233 return getPersistence().fetchByQ_N(questionId, name, retrieveFromCache);
234 }
235
236 public static java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll()
237 throws com.liferay.portal.SystemException {
238 return getPersistence().findAll();
239 }
240
241 public static java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
242 int start, int end) throws com.liferay.portal.SystemException {
243 return getPersistence().findAll(start, end);
244 }
245
246 public static java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
247 int start, int end,
248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249 throws com.liferay.portal.SystemException {
250 return getPersistence().findAll(start, end, orderByComparator);
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 removeByQuestionId(long questionId)
259 throws com.liferay.portal.SystemException {
260 getPersistence().removeByQuestionId(questionId);
261 }
262
263 public static void removeByQ_N(long questionId, java.lang.String name)
264 throws com.liferay.portal.SystemException,
265 com.liferay.portlet.polls.NoSuchChoiceException {
266 getPersistence().removeByQ_N(questionId, name);
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 countByQuestionId(long questionId)
279 throws com.liferay.portal.SystemException {
280 return getPersistence().countByQuestionId(questionId);
281 }
282
283 public static int countByQ_N(long questionId, java.lang.String name)
284 throws com.liferay.portal.SystemException {
285 return getPersistence().countByQ_N(questionId, name);
286 }
287
288 public static int countAll() throws com.liferay.portal.SystemException {
289 return getPersistence().countAll();
290 }
291
292 public static PollsChoicePersistence getPersistence() {
293 if (_persistence == null) {
294 _persistence = (PollsChoicePersistence)PortalBeanLocatorUtil.locate(PollsChoicePersistence.class.getName());
295 }
296
297 return _persistence;
298 }
299
300 public void setPersistence(PollsChoicePersistence persistence) {
301 _persistence = persistence;
302 }
303
304 private static PollsChoicePersistence _persistence;
305 }