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