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