1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public class MBMessageFlagUtil {
32 public static com.liferay.portlet.messageboards.model.MBMessageFlag create(
33 long messageFlagId) {
34 return getPersistence().create(messageFlagId);
35 }
36
37 public static com.liferay.portlet.messageboards.model.MBMessageFlag remove(
38 long messageFlagId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
41 return getPersistence().remove(messageFlagId);
42 }
43
44 public static com.liferay.portlet.messageboards.model.MBMessageFlag remove(
45 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(mbMessageFlag);
48 }
49
50
53 public static com.liferay.portlet.messageboards.model.MBMessageFlag update(
54 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(mbMessageFlag);
57 }
58
59
72 public static com.liferay.portlet.messageboards.model.MBMessageFlag update(
73 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(mbMessageFlag, merge);
76 }
77
78 public static com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
79 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(mbMessageFlag, merge);
82 }
83
84 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
85 long messageFlagId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
88 return getPersistence().findByPrimaryKey(messageFlagId);
89 }
90
91 public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
92 long messageFlagId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(messageFlagId);
94 }
95
96 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
97 long userId) throws com.liferay.portal.SystemException {
98 return getPersistence().findByUserId(userId);
99 }
100
101 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
102 long userId, int begin, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUserId(userId, begin, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
108 long userId, int begin, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUserId(userId, begin, end, obc);
112 }
113
114 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
115 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
118 return getPersistence().findByUserId_First(userId, obc);
119 }
120
121 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
122 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
125 return getPersistence().findByUserId_Last(userId, obc);
126 }
127
128 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
129 long messageFlagId, long userId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
133 return getPersistence()
134 .findByUserId_PrevAndNext(messageFlagId, userId, obc);
135 }
136
137 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
138 long messageId) throws com.liferay.portal.SystemException {
139 return getPersistence().findByMessageId(messageId);
140 }
141
142 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
143 long messageId, int begin, int end)
144 throws com.liferay.portal.SystemException {
145 return getPersistence().findByMessageId(messageId, begin, end);
146 }
147
148 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
149 long messageId, int begin, int end,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException {
152 return getPersistence().findByMessageId(messageId, begin, end, obc);
153 }
154
155 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
156 long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
159 return getPersistence().findByMessageId_First(messageId, obc);
160 }
161
162 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
163 long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
166 return getPersistence().findByMessageId_Last(messageId, obc);
167 }
168
169 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
170 long messageFlagId, long messageId,
171 com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
174 return getPersistence()
175 .findByMessageId_PrevAndNext(messageFlagId, messageId, obc);
176 }
177
178 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M(
179 long userId, long messageId)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
182 return getPersistence().findByU_M(userId, messageId);
183 }
184
185 public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M(
186 long userId, long messageId) throws com.liferay.portal.SystemException {
187 return getPersistence().fetchByU_M(userId, messageId);
188 }
189
190 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findWithDynamicQuery(
191 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findWithDynamicQuery(queryInitializer);
194 }
195
196 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findWithDynamicQuery(
197 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
198 int begin, int end) throws com.liferay.portal.SystemException {
199 return getPersistence()
200 .findWithDynamicQuery(queryInitializer, begin, end);
201 }
202
203 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
204 throws com.liferay.portal.SystemException {
205 return getPersistence().findAll();
206 }
207
208 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
209 int begin, int end) throws com.liferay.portal.SystemException {
210 return getPersistence().findAll(begin, end);
211 }
212
213 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
214 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
215 throws com.liferay.portal.SystemException {
216 return getPersistence().findAll(begin, end, obc);
217 }
218
219 public static void removeByUserId(long userId)
220 throws com.liferay.portal.SystemException {
221 getPersistence().removeByUserId(userId);
222 }
223
224 public static void removeByMessageId(long messageId)
225 throws com.liferay.portal.SystemException {
226 getPersistence().removeByMessageId(messageId);
227 }
228
229 public static void removeByU_M(long userId, long messageId)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
232 getPersistence().removeByU_M(userId, messageId);
233 }
234
235 public static void removeAll() throws com.liferay.portal.SystemException {
236 getPersistence().removeAll();
237 }
238
239 public static int countByUserId(long userId)
240 throws com.liferay.portal.SystemException {
241 return getPersistence().countByUserId(userId);
242 }
243
244 public static int countByMessageId(long messageId)
245 throws com.liferay.portal.SystemException {
246 return getPersistence().countByMessageId(messageId);
247 }
248
249 public static int countByU_M(long userId, long messageId)
250 throws com.liferay.portal.SystemException {
251 return getPersistence().countByU_M(userId, messageId);
252 }
253
254 public static int countAll() throws com.liferay.portal.SystemException {
255 return getPersistence().countAll();
256 }
257
258 public static MBMessageFlagPersistence getPersistence() {
259 return _getUtil()._persistence;
260 }
261
262 public void setPersistence(MBMessageFlagPersistence persistence) {
263 _persistence = persistence;
264 }
265
266 private static MBMessageFlagUtil _getUtil() {
267 if (_util == null) {
268 _util = (MBMessageFlagUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
269 }
270
271 return _util;
272 }
273
274 private static final String _UTIL = MBMessageFlagUtil.class.getName();
275 private static MBMessageFlagUtil _util;
276 private MBMessageFlagPersistence _persistence;
277 }