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