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