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.portal.service.persistence;
022:
023: /**
024: * <a href="MembershipRequestUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class MembershipRequestUtil {
030: public static com.liferay.portal.model.MembershipRequest create(
031: long membershipRequestId) {
032: return getPersistence().create(membershipRequestId);
033: }
034:
035: public static com.liferay.portal.model.MembershipRequest remove(
036: long membershipRequestId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchMembershipRequestException {
039: return getPersistence().remove(membershipRequestId);
040: }
041:
042: public static com.liferay.portal.model.MembershipRequest remove(
043: com.liferay.portal.model.MembershipRequest membershipRequest)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(membershipRequest);
046: }
047:
048: public static com.liferay.portal.model.MembershipRequest update(
049: com.liferay.portal.model.MembershipRequest membershipRequest)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(membershipRequest);
052: }
053:
054: public static com.liferay.portal.model.MembershipRequest update(
055: com.liferay.portal.model.MembershipRequest membershipRequest,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(membershipRequest, merge);
058: }
059:
060: public static com.liferay.portal.model.MembershipRequest updateImpl(
061: com.liferay.portal.model.MembershipRequest membershipRequest,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(membershipRequest, merge);
064: }
065:
066: public static com.liferay.portal.model.MembershipRequest findByPrimaryKey(
067: long membershipRequestId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchMembershipRequestException {
070: return getPersistence().findByPrimaryKey(membershipRequestId);
071: }
072:
073: public static com.liferay.portal.model.MembershipRequest fetchByPrimaryKey(
074: long membershipRequestId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(membershipRequestId);
077: }
078:
079: public static java.util.List findByGroupId(long groupId)
080: throws com.liferay.portal.SystemException {
081: return getPersistence().findByGroupId(groupId);
082: }
083:
084: public static java.util.List findByGroupId(long groupId, int begin,
085: int end) throws com.liferay.portal.SystemException {
086: return getPersistence().findByGroupId(groupId, begin, end);
087: }
088:
089: public static java.util.List findByGroupId(long groupId, int begin,
090: int end,
091: com.liferay.portal.kernel.util.OrderByComparator obc)
092: throws com.liferay.portal.SystemException {
093: return getPersistence().findByGroupId(groupId, begin, end, obc);
094: }
095:
096: public static com.liferay.portal.model.MembershipRequest findByGroupId_First(
097: long groupId,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portal.NoSuchMembershipRequestException {
101: return getPersistence().findByGroupId_First(groupId, obc);
102: }
103:
104: public static com.liferay.portal.model.MembershipRequest findByGroupId_Last(
105: long groupId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portal.NoSuchMembershipRequestException {
109: return getPersistence().findByGroupId_Last(groupId, obc);
110: }
111:
112: public static com.liferay.portal.model.MembershipRequest[] findByGroupId_PrevAndNext(
113: long membershipRequestId, long groupId,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portal.NoSuchMembershipRequestException {
117: return getPersistence().findByGroupId_PrevAndNext(
118: membershipRequestId, groupId, obc);
119: }
120:
121: public static java.util.List findByUserId(long userId)
122: throws com.liferay.portal.SystemException {
123: return getPersistence().findByUserId(userId);
124: }
125:
126: public static java.util.List findByUserId(long userId, int begin,
127: int end) throws com.liferay.portal.SystemException {
128: return getPersistence().findByUserId(userId, begin, end);
129: }
130:
131: public static java.util.List findByUserId(long userId, int begin,
132: int end,
133: com.liferay.portal.kernel.util.OrderByComparator obc)
134: throws com.liferay.portal.SystemException {
135: return getPersistence().findByUserId(userId, begin, end, obc);
136: }
137:
138: public static com.liferay.portal.model.MembershipRequest findByUserId_First(
139: long userId,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portal.NoSuchMembershipRequestException {
143: return getPersistence().findByUserId_First(userId, obc);
144: }
145:
146: public static com.liferay.portal.model.MembershipRequest findByUserId_Last(
147: long userId,
148: com.liferay.portal.kernel.util.OrderByComparator obc)
149: throws com.liferay.portal.SystemException,
150: com.liferay.portal.NoSuchMembershipRequestException {
151: return getPersistence().findByUserId_Last(userId, obc);
152: }
153:
154: public static com.liferay.portal.model.MembershipRequest[] findByUserId_PrevAndNext(
155: long membershipRequestId, long userId,
156: com.liferay.portal.kernel.util.OrderByComparator obc)
157: throws com.liferay.portal.SystemException,
158: com.liferay.portal.NoSuchMembershipRequestException {
159: return getPersistence().findByUserId_PrevAndNext(
160: membershipRequestId, userId, obc);
161: }
162:
163: public static java.util.List findByG_S(long groupId, int statusId)
164: throws com.liferay.portal.SystemException {
165: return getPersistence().findByG_S(groupId, statusId);
166: }
167:
168: public static java.util.List findByG_S(long groupId, int statusId,
169: int begin, int end)
170: throws com.liferay.portal.SystemException {
171: return getPersistence()
172: .findByG_S(groupId, statusId, begin, end);
173: }
174:
175: public static java.util.List findByG_S(long groupId, int statusId,
176: int begin, int end,
177: com.liferay.portal.kernel.util.OrderByComparator obc)
178: throws com.liferay.portal.SystemException {
179: return getPersistence().findByG_S(groupId, statusId, begin,
180: end, obc);
181: }
182:
183: public static com.liferay.portal.model.MembershipRequest findByG_S_First(
184: long groupId, int statusId,
185: com.liferay.portal.kernel.util.OrderByComparator obc)
186: throws com.liferay.portal.SystemException,
187: com.liferay.portal.NoSuchMembershipRequestException {
188: return getPersistence().findByG_S_First(groupId, statusId, obc);
189: }
190:
191: public static com.liferay.portal.model.MembershipRequest findByG_S_Last(
192: long groupId, int statusId,
193: com.liferay.portal.kernel.util.OrderByComparator obc)
194: throws com.liferay.portal.SystemException,
195: com.liferay.portal.NoSuchMembershipRequestException {
196: return getPersistence().findByG_S_Last(groupId, statusId, obc);
197: }
198:
199: public static com.liferay.portal.model.MembershipRequest[] findByG_S_PrevAndNext(
200: long membershipRequestId, long groupId, int statusId,
201: com.liferay.portal.kernel.util.OrderByComparator obc)
202: throws com.liferay.portal.SystemException,
203: com.liferay.portal.NoSuchMembershipRequestException {
204: return getPersistence().findByG_S_PrevAndNext(
205: membershipRequestId, groupId, statusId, obc);
206: }
207:
208: public static java.util.List findWithDynamicQuery(
209: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
210: throws com.liferay.portal.SystemException {
211: return getPersistence().findWithDynamicQuery(queryInitializer);
212: }
213:
214: public static java.util.List findWithDynamicQuery(
215: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
216: int begin, int end)
217: throws com.liferay.portal.SystemException {
218: return getPersistence().findWithDynamicQuery(queryInitializer,
219: begin, end);
220: }
221:
222: public static java.util.List findAll()
223: throws com.liferay.portal.SystemException {
224: return getPersistence().findAll();
225: }
226:
227: public static java.util.List findAll(int begin, int end)
228: throws com.liferay.portal.SystemException {
229: return getPersistence().findAll(begin, end);
230: }
231:
232: public static java.util.List findAll(int begin, int end,
233: com.liferay.portal.kernel.util.OrderByComparator obc)
234: throws com.liferay.portal.SystemException {
235: return getPersistence().findAll(begin, end, obc);
236: }
237:
238: public static void removeByGroupId(long groupId)
239: throws com.liferay.portal.SystemException {
240: getPersistence().removeByGroupId(groupId);
241: }
242:
243: public static void removeByUserId(long userId)
244: throws com.liferay.portal.SystemException {
245: getPersistence().removeByUserId(userId);
246: }
247:
248: public static void removeByG_S(long groupId, int statusId)
249: throws com.liferay.portal.SystemException {
250: getPersistence().removeByG_S(groupId, statusId);
251: }
252:
253: public static void removeAll()
254: throws com.liferay.portal.SystemException {
255: getPersistence().removeAll();
256: }
257:
258: public static int countByGroupId(long groupId)
259: throws com.liferay.portal.SystemException {
260: return getPersistence().countByGroupId(groupId);
261: }
262:
263: public static int countByUserId(long userId)
264: throws com.liferay.portal.SystemException {
265: return getPersistence().countByUserId(userId);
266: }
267:
268: public static int countByG_S(long groupId, int statusId)
269: throws com.liferay.portal.SystemException {
270: return getPersistence().countByG_S(groupId, statusId);
271: }
272:
273: public static int countAll()
274: throws com.liferay.portal.SystemException {
275: return getPersistence().countAll();
276: }
277:
278: public static MembershipRequestPersistence getPersistence() {
279: return _getUtil()._persistence;
280: }
281:
282: public void setPersistence(MembershipRequestPersistence persistence) {
283: _persistence = persistence;
284: }
285:
286: private static MembershipRequestUtil _getUtil() {
287: if (_util == null) {
288: _util = (MembershipRequestUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
289: .locate(_UTIL);
290: }
291:
292: return _util;
293: }
294:
295: private static final String _UTIL = MembershipRequestUtil.class
296: .getName();
297: private static MembershipRequestUtil _util;
298: private MembershipRequestPersistence _persistence;
299: }
|