001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.polls.service.persistence;
022:
023: /**
024: * <a href="PollsQuestionUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class PollsQuestionUtil {
030: public static com.liferay.portlet.polls.model.PollsQuestion create(
031: long questionId) {
032: return getPersistence().create(questionId);
033: }
034:
035: public static com.liferay.portlet.polls.model.PollsQuestion remove(
036: long questionId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.polls.NoSuchQuestionException {
038: return getPersistence().remove(questionId);
039: }
040:
041: public static com.liferay.portlet.polls.model.PollsQuestion remove(
042: com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(pollsQuestion);
045: }
046:
047: public static com.liferay.portlet.polls.model.PollsQuestion update(
048: com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(pollsQuestion);
051: }
052:
053: public static com.liferay.portlet.polls.model.PollsQuestion update(
054: com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(pollsQuestion, merge);
057: }
058:
059: public static com.liferay.portlet.polls.model.PollsQuestion updateImpl(
060: com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(pollsQuestion, merge);
063: }
064:
065: public static com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
066: long questionId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.polls.NoSuchQuestionException {
068: return getPersistence().findByPrimaryKey(questionId);
069: }
070:
071: public static com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
072: long questionId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(questionId);
074: }
075:
076: public static java.util.List findByUuid(java.lang.String uuid)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByUuid(uuid);
079: }
080:
081: public static java.util.List findByUuid(java.lang.String uuid,
082: int begin, int end)
083: throws com.liferay.portal.SystemException {
084: return getPersistence().findByUuid(uuid, begin, end);
085: }
086:
087: public static java.util.List findByUuid(java.lang.String uuid,
088: int begin, int end,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException {
091: return getPersistence().findByUuid(uuid, begin, end, obc);
092: }
093:
094: public static com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
095: java.lang.String uuid,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException,
098: com.liferay.portlet.polls.NoSuchQuestionException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
103: java.lang.String uuid,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.polls.NoSuchQuestionException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
111: long questionId, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.polls.NoSuchQuestionException {
115: return getPersistence().findByUuid_PrevAndNext(questionId,
116: uuid, obc);
117: }
118:
119: public static com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
120: java.lang.String uuid, long groupId)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.polls.NoSuchQuestionException {
123: return getPersistence().findByUUID_G(uuid, groupId);
124: }
125:
126: public static com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
127: java.lang.String uuid, long groupId)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().fetchByUUID_G(uuid, groupId);
130: }
131:
132: public static java.util.List findByGroupId(long groupId)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findByGroupId(groupId);
135: }
136:
137: public static java.util.List findByGroupId(long groupId, int begin,
138: int end) throws com.liferay.portal.SystemException {
139: return getPersistence().findByGroupId(groupId, begin, end);
140: }
141:
142: public static java.util.List findByGroupId(long groupId, int begin,
143: int end,
144: 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,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.polls.NoSuchQuestionException {
154: return getPersistence().findByGroupId_First(groupId, obc);
155: }
156:
157: public static com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
158: long groupId,
159: com.liferay.portal.kernel.util.OrderByComparator obc)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portlet.polls.NoSuchQuestionException {
162: return getPersistence().findByGroupId_Last(groupId, obc);
163: }
164:
165: public static com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
166: long questionId, long groupId,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portlet.polls.NoSuchQuestionException {
170: return getPersistence().findByGroupId_PrevAndNext(questionId,
171: groupId, obc);
172: }
173:
174: public static java.util.List findWithDynamicQuery(
175: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
176: throws com.liferay.portal.SystemException {
177: return getPersistence().findWithDynamicQuery(queryInitializer);
178: }
179:
180: public static java.util.List findWithDynamicQuery(
181: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
182: int begin, int end)
183: throws com.liferay.portal.SystemException {
184: return getPersistence().findWithDynamicQuery(queryInitializer,
185: begin, end);
186: }
187:
188: public static java.util.List findAll()
189: throws com.liferay.portal.SystemException {
190: return getPersistence().findAll();
191: }
192:
193: public static java.util.List findAll(int begin, int end)
194: throws com.liferay.portal.SystemException {
195: return getPersistence().findAll(begin, end);
196: }
197:
198: public static java.util.List findAll(int begin, int end,
199: com.liferay.portal.kernel.util.OrderByComparator obc)
200: throws com.liferay.portal.SystemException {
201: return getPersistence().findAll(begin, end, obc);
202: }
203:
204: public static void removeByUuid(java.lang.String uuid)
205: throws com.liferay.portal.SystemException {
206: getPersistence().removeByUuid(uuid);
207: }
208:
209: public static void removeByUUID_G(java.lang.String uuid,
210: long groupId) throws com.liferay.portal.SystemException,
211: com.liferay.portlet.polls.NoSuchQuestionException {
212: getPersistence().removeByUUID_G(uuid, groupId);
213: }
214:
215: public static void removeByGroupId(long groupId)
216: throws com.liferay.portal.SystemException {
217: getPersistence().removeByGroupId(groupId);
218: }
219:
220: public static void removeAll()
221: throws com.liferay.portal.SystemException {
222: getPersistence().removeAll();
223: }
224:
225: public static int countByUuid(java.lang.String uuid)
226: throws com.liferay.portal.SystemException {
227: return getPersistence().countByUuid(uuid);
228: }
229:
230: public static int countByUUID_G(java.lang.String uuid, long groupId)
231: throws com.liferay.portal.SystemException {
232: return getPersistence().countByUUID_G(uuid, groupId);
233: }
234:
235: public static int countByGroupId(long groupId)
236: throws com.liferay.portal.SystemException {
237: return getPersistence().countByGroupId(groupId);
238: }
239:
240: public static int countAll()
241: throws com.liferay.portal.SystemException {
242: return getPersistence().countAll();
243: }
244:
245: public static PollsQuestionPersistence getPersistence() {
246: return _getUtil()._persistence;
247: }
248:
249: public void setPersistence(PollsQuestionPersistence persistence) {
250: _persistence = persistence;
251: }
252:
253: private static PollsQuestionUtil _getUtil() {
254: if (_util == null) {
255: _util = (PollsQuestionUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
256: .locate(_UTIL);
257: }
258:
259: return _util;
260: }
261:
262: private static final String _UTIL = PollsQuestionUtil.class
263: .getName();
264: private static PollsQuestionUtil _util;
265: private PollsQuestionPersistence _persistence;
266: }
|