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