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 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 public static com.liferay.portlet.polls.model.PollsQuestion update(
57 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
58 boolean merge) throws com.liferay.portal.SystemException {
59 return getPersistence().update(pollsQuestion, merge);
60 }
61
62 public static com.liferay.portlet.polls.model.PollsQuestion updateImpl(
63 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
64 boolean merge) throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(pollsQuestion, merge);
66 }
67
68 public static com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
69 long questionId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.polls.NoSuchQuestionException {
72 return getPersistence().findByPrimaryKey(questionId);
73 }
74
75 public static com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
76 long questionId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(questionId);
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.PollsQuestion findByUuid_First(
97 java.lang.String uuid,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.polls.NoSuchQuestionException {
101 return getPersistence().findByUuid_First(uuid, obc);
102 }
103
104 public static com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
105 java.lang.String uuid,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.polls.NoSuchQuestionException {
109 return getPersistence().findByUuid_Last(uuid, obc);
110 }
111
112 public static com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
113 long questionId, java.lang.String uuid,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.polls.NoSuchQuestionException {
117 return getPersistence().findByUuid_PrevAndNext(questionId, uuid, obc);
118 }
119
120 public static com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
121 java.lang.String uuid, long groupId)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.polls.NoSuchQuestionException {
124 return getPersistence().findByUUID_G(uuid, groupId);
125 }
126
127 public static com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
128 java.lang.String uuid, long groupId)
129 throws com.liferay.portal.SystemException {
130 return getPersistence().fetchByUUID_G(uuid, groupId);
131 }
132
133 public static java.util.List findByGroupId(long groupId)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findByGroupId(groupId);
136 }
137
138 public static java.util.List findByGroupId(long groupId, int begin, int end)
139 throws com.liferay.portal.SystemException {
140 return getPersistence().findByGroupId(groupId, begin, end);
141 }
142
143 public static java.util.List findByGroupId(long groupId, int begin,
144 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findByGroupId(groupId, begin, end, obc);
147 }
148
149 public static com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
150 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.polls.NoSuchQuestionException {
153 return getPersistence().findByGroupId_First(groupId, obc);
154 }
155
156 public static com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
157 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.polls.NoSuchQuestionException {
160 return getPersistence().findByGroupId_Last(groupId, obc);
161 }
162
163 public static com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
164 long questionId, long groupId,
165 com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portlet.polls.NoSuchQuestionException {
168 return getPersistence().findByGroupId_PrevAndNext(questionId, groupId,
169 obc);
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 removeByUUID_G(java.lang.String uuid, long groupId)
207 throws com.liferay.portal.SystemException,
208 com.liferay.portlet.polls.NoSuchQuestionException {
209 getPersistence().removeByUUID_G(uuid, groupId);
210 }
211
212 public static void removeByGroupId(long groupId)
213 throws com.liferay.portal.SystemException {
214 getPersistence().removeByGroupId(groupId);
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 countByUUID_G(java.lang.String uuid, long groupId)
227 throws com.liferay.portal.SystemException {
228 return getPersistence().countByUUID_G(uuid, groupId);
229 }
230
231 public static int countByGroupId(long groupId)
232 throws com.liferay.portal.SystemException {
233 return getPersistence().countByGroupId(groupId);
234 }
235
236 public static int countAll() throws com.liferay.portal.SystemException {
237 return getPersistence().countAll();
238 }
239
240 public static PollsQuestionPersistence getPersistence() {
241 return _getUtil()._persistence;
242 }
243
244 public void setPersistence(PollsQuestionPersistence persistence) {
245 _persistence = persistence;
246 }
247
248 private static PollsQuestionUtil _getUtil() {
249 if (_util == null) {
250 _util = (PollsQuestionUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
251 }
252
253 return _util;
254 }
255
256 private static final String _UTIL = PollsQuestionUtil.class.getName();
257 private static PollsQuestionUtil _util;
258 private PollsQuestionPersistence _persistence;
259 }