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 start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUserId(userId, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
108 long userId, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUserId(userId, start, 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 start, int end)
144 throws com.liferay.portal.SystemException {
145 return getPersistence().findByMessageId(messageId, start, end);
146 }
147
148 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
149 long messageId, int start, int end,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException {
152 return getPersistence().findByMessageId(messageId, start, 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<Object> findWithDynamicQuery(
191 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findWithDynamicQuery(dynamicQuery);
194 }
195
196 public static java.util.List<Object> findWithDynamicQuery(
197 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
198 int end) throws com.liferay.portal.SystemException {
199 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
200 }
201
202 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
203 throws com.liferay.portal.SystemException {
204 return getPersistence().findAll();
205 }
206
207 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
208 int start, int end) throws com.liferay.portal.SystemException {
209 return getPersistence().findAll(start, end);
210 }
211
212 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
213 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException {
215 return getPersistence().findAll(start, end, obc);
216 }
217
218 public static void removeByUserId(long userId)
219 throws com.liferay.portal.SystemException {
220 getPersistence().removeByUserId(userId);
221 }
222
223 public static void removeByMessageId(long messageId)
224 throws com.liferay.portal.SystemException {
225 getPersistence().removeByMessageId(messageId);
226 }
227
228 public static void removeByU_M(long userId, long messageId)
229 throws com.liferay.portal.SystemException,
230 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
231 getPersistence().removeByU_M(userId, messageId);
232 }
233
234 public static void removeAll() throws com.liferay.portal.SystemException {
235 getPersistence().removeAll();
236 }
237
238 public static int countByUserId(long userId)
239 throws com.liferay.portal.SystemException {
240 return getPersistence().countByUserId(userId);
241 }
242
243 public static int countByMessageId(long messageId)
244 throws com.liferay.portal.SystemException {
245 return getPersistence().countByMessageId(messageId);
246 }
247
248 public static int countByU_M(long userId, long messageId)
249 throws com.liferay.portal.SystemException {
250 return getPersistence().countByU_M(userId, messageId);
251 }
252
253 public static int countAll() throws com.liferay.portal.SystemException {
254 return getPersistence().countAll();
255 }
256
257 public static void registerListener(
258 com.liferay.portal.model.ModelListener listener) {
259 getPersistence().registerListener(listener);
260 }
261
262 public static void unregisterListener(
263 com.liferay.portal.model.ModelListener listener) {
264 getPersistence().unregisterListener(listener);
265 }
266
267 public static MBMessageFlagPersistence getPersistence() {
268 return _persistence;
269 }
270
271 public void setPersistence(MBMessageFlagPersistence persistence) {
272 _persistence = persistence;
273 }
274
275 private static MBMessageFlagPersistence _persistence;
276 }