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