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 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 public static com.liferay.portlet.messageboards.model.MBMessageFlag update(
57 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
58 boolean merge) throws com.liferay.portal.SystemException {
59 return getPersistence().update(mbMessageFlag, merge);
60 }
61
62 public static com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
63 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
64 boolean merge) throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(mbMessageFlag, merge);
66 }
67
68 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
69 long messageFlagId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
72 return getPersistence().findByPrimaryKey(messageFlagId);
73 }
74
75 public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
76 long messageFlagId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(messageFlagId);
78 }
79
80 public static java.util.List findByUserId(long userId)
81 throws com.liferay.portal.SystemException {
82 return getPersistence().findByUserId(userId);
83 }
84
85 public static java.util.List findByUserId(long userId, int begin, int end)
86 throws com.liferay.portal.SystemException {
87 return getPersistence().findByUserId(userId, begin, end);
88 }
89
90 public static java.util.List findByUserId(long userId, int begin, int end,
91 com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().findByUserId(userId, begin, end, obc);
94 }
95
96 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
97 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
100 return getPersistence().findByUserId_First(userId, obc);
101 }
102
103 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
104 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
107 return getPersistence().findByUserId_Last(userId, obc);
108 }
109
110 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
111 long messageFlagId, long userId,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
115 return getPersistence().findByUserId_PrevAndNext(messageFlagId, userId,
116 obc);
117 }
118
119 public static java.util.List findByMessageId(long messageId)
120 throws com.liferay.portal.SystemException {
121 return getPersistence().findByMessageId(messageId);
122 }
123
124 public static java.util.List findByMessageId(long messageId, int begin,
125 int end) throws com.liferay.portal.SystemException {
126 return getPersistence().findByMessageId(messageId, begin, end);
127 }
128
129 public static java.util.List findByMessageId(long messageId, int begin,
130 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findByMessageId(messageId, begin, end, obc);
133 }
134
135 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
136 long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
139 return getPersistence().findByMessageId_First(messageId, obc);
140 }
141
142 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
143 long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
146 return getPersistence().findByMessageId_Last(messageId, obc);
147 }
148
149 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
150 long messageFlagId, long messageId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
154 return getPersistence().findByMessageId_PrevAndNext(messageFlagId,
155 messageId, obc);
156 }
157
158 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M(
159 long userId, long messageId)
160 throws com.liferay.portal.SystemException,
161 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
162 return getPersistence().findByU_M(userId, messageId);
163 }
164
165 public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M(
166 long userId, long messageId) throws com.liferay.portal.SystemException {
167 return getPersistence().fetchByU_M(userId, messageId);
168 }
169
170 public static java.util.List findWithDynamicQuery(
171 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
172 throws com.liferay.portal.SystemException {
173 return getPersistence().findWithDynamicQuery(queryInitializer);
174 }
175
176 public static java.util.List findWithDynamicQuery(
177 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
178 int begin, int end) throws com.liferay.portal.SystemException {
179 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
180 end);
181 }
182
183 public static java.util.List findAll()
184 throws com.liferay.portal.SystemException {
185 return getPersistence().findAll();
186 }
187
188 public static java.util.List findAll(int begin, int end)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().findAll(begin, end);
191 }
192
193 public static java.util.List findAll(int begin, int end,
194 com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().findAll(begin, end, obc);
197 }
198
199 public static void removeByUserId(long userId)
200 throws com.liferay.portal.SystemException {
201 getPersistence().removeByUserId(userId);
202 }
203
204 public static void removeByMessageId(long messageId)
205 throws com.liferay.portal.SystemException {
206 getPersistence().removeByMessageId(messageId);
207 }
208
209 public static void removeByU_M(long userId, long messageId)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
212 getPersistence().removeByU_M(userId, messageId);
213 }
214
215 public static void removeAll() throws com.liferay.portal.SystemException {
216 getPersistence().removeAll();
217 }
218
219 public static int countByUserId(long userId)
220 throws com.liferay.portal.SystemException {
221 return getPersistence().countByUserId(userId);
222 }
223
224 public static int countByMessageId(long messageId)
225 throws com.liferay.portal.SystemException {
226 return getPersistence().countByMessageId(messageId);
227 }
228
229 public static int countByU_M(long userId, long messageId)
230 throws com.liferay.portal.SystemException {
231 return getPersistence().countByU_M(userId, messageId);
232 }
233
234 public static int countAll() throws com.liferay.portal.SystemException {
235 return getPersistence().countAll();
236 }
237
238 public static MBMessageFlagPersistence getPersistence() {
239 return _getUtil()._persistence;
240 }
241
242 public void setPersistence(MBMessageFlagPersistence persistence) {
243 _persistence = persistence;
244 }
245
246 private static MBMessageFlagUtil _getUtil() {
247 if (_util == null) {
248 _util = (MBMessageFlagUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
249 }
250
251 return _util;
252 }
253
254 private static final String _UTIL = MBMessageFlagUtil.class.getName();
255 private static MBMessageFlagUtil _util;
256 private MBMessageFlagPersistence _persistence;
257 }