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