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 start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUuid(uuid, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
108 java.lang.String uuid, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUuid(uuid, start, 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 start, int end)
158 throws com.liferay.portal.SystemException {
159 return getPersistence().findByGroupId(groupId, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
163 long groupId, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException {
166 return getPersistence().findByGroupId(groupId, start, 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<Object> findWithDynamicQuery(
193 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
194 throws com.liferay.portal.SystemException {
195 return getPersistence().findWithDynamicQuery(dynamicQuery);
196 }
197
198 public static java.util.List<Object> findWithDynamicQuery(
199 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
200 int end) throws com.liferay.portal.SystemException {
201 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
202 }
203
204 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
205 throws com.liferay.portal.SystemException {
206 return getPersistence().findAll();
207 }
208
209 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
210 int start, int end) throws com.liferay.portal.SystemException {
211 return getPersistence().findAll(start, end);
212 }
213
214 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
215 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
216 throws com.liferay.portal.SystemException {
217 return getPersistence().findAll(start, end, obc);
218 }
219
220 public static void removeByUuid(java.lang.String uuid)
221 throws com.liferay.portal.SystemException {
222 getPersistence().removeByUuid(uuid);
223 }
224
225 public static void removeByUUID_G(java.lang.String uuid, long groupId)
226 throws com.liferay.portal.SystemException,
227 com.liferay.portlet.polls.NoSuchQuestionException {
228 getPersistence().removeByUUID_G(uuid, groupId);
229 }
230
231 public static void removeByGroupId(long groupId)
232 throws com.liferay.portal.SystemException {
233 getPersistence().removeByGroupId(groupId);
234 }
235
236 public static void removeAll() throws com.liferay.portal.SystemException {
237 getPersistence().removeAll();
238 }
239
240 public static int countByUuid(java.lang.String uuid)
241 throws com.liferay.portal.SystemException {
242 return getPersistence().countByUuid(uuid);
243 }
244
245 public static int countByUUID_G(java.lang.String uuid, long groupId)
246 throws com.liferay.portal.SystemException {
247 return getPersistence().countByUUID_G(uuid, groupId);
248 }
249
250 public static int countByGroupId(long groupId)
251 throws com.liferay.portal.SystemException {
252 return getPersistence().countByGroupId(groupId);
253 }
254
255 public static int countAll() throws com.liferay.portal.SystemException {
256 return getPersistence().countAll();
257 }
258
259 public static PollsQuestionPersistence getPersistence() {
260 return _persistence;
261 }
262
263 public void setPersistence(PollsQuestionPersistence persistence) {
264 _persistence = persistence;
265 }
266
267 private static PollsQuestionPersistence _persistence;
268 }