1
14
15 package com.liferay.portlet.messageboards.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
24 public class MBMessageFinderUtil {
25 public static int countByG_U(long groupId, long userId)
26 throws com.liferay.portal.SystemException {
27 return getFinder().countByG_U(groupId, userId);
28 }
29
30 public static int countByC_T(java.util.Date createDate, long threadId)
31 throws com.liferay.portal.SystemException {
32 return getFinder().countByC_T(createDate, threadId);
33 }
34
35 public static int countByG_U_A(long groupId, long userId, boolean anonymous)
36 throws com.liferay.portal.SystemException {
37 return getFinder().countByG_U_A(groupId, userId, anonymous);
38 }
39
40 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByNoAssets()
41 throws com.liferay.portal.SystemException {
42 return getFinder().findByNoAssets();
43 }
44
45 public static java.util.List<Long> findByG_U(long groupId, long userId,
46 int start, int end) throws com.liferay.portal.SystemException {
47 return getFinder().findByG_U(groupId, userId, start, end);
48 }
49
50 public static java.util.List<Long> findByG_U_A(long groupId, long userId,
51 boolean anonymous, int start, int end)
52 throws com.liferay.portal.SystemException {
53 return getFinder().findByG_U_A(groupId, userId, anonymous, start, end);
54 }
55
56 public static MBMessageFinder getFinder() {
57 if (_finder == null) {
58 _finder = (MBMessageFinder)PortalBeanLocatorUtil.locate(MBMessageFinder.class.getName());
59 }
60
61 return _finder;
62 }
63
64 public void setFinder(MBMessageFinder finder) {
65 _finder = finder;
66 }
67
68 private static MBMessageFinder _finder;
69 }