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