001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * @author Brian Wing Shun Chan
022     */
023    public class MBThreadFinderUtil {
024            public static int countByG_U_S(long groupId, long userId, int status)
025                    throws com.liferay.portal.kernel.exception.SystemException {
026                    return getFinder().countByG_U_S(groupId, userId, status);
027            }
028    
029            public static int countByG_C_S(long groupId, long categoryId, int status)
030                    throws com.liferay.portal.kernel.exception.SystemException {
031                    return getFinder().countByG_C_S(groupId, categoryId, status);
032            }
033    
034            public static int countByG_U_MD_S(long groupId, long userId,
035                    java.util.Date modifiedDate, int status)
036                    throws com.liferay.portal.kernel.exception.SystemException {
037                    return getFinder().countByG_U_MD_S(groupId, userId, modifiedDate, status);
038            }
039    
040            public static int countByG_U_A_S(long groupId, long userId,
041                    boolean anonymous, int status)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return getFinder().countByG_U_A_S(groupId, userId, anonymous, status);
044            }
045    
046            public static int countByS_G_U_S(long groupId, long userId, int status)
047                    throws com.liferay.portal.kernel.exception.SystemException {
048                    return getFinder().countByS_G_U_S(groupId, userId, status);
049            }
050    
051            public static int countByS_G_U_C_S(long groupId, long userId,
052                    long[] categoryIds, int status)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getFinder().countByS_G_U_C_S(groupId, userId, categoryIds, status);
055            }
056    
057            public static int filterCountByG_C(long groupId, long categoryId)
058                    throws com.liferay.portal.kernel.exception.SystemException {
059                    return getFinder().filterCountByG_C(groupId, categoryId);
060            }
061    
062            public static int filterCountByG_C_S(long groupId, long categoryId,
063                    int status) throws com.liferay.portal.kernel.exception.SystemException {
064                    return getFinder().filterCountByG_C_S(groupId, categoryId, status);
065            }
066    
067            public static int filterCountByS_G_U_C_S(long groupId, long userId,
068                    long[] categoryIds, int status)
069                    throws com.liferay.portal.kernel.exception.SystemException {
070                    return getFinder()
071                                       .filterCountByS_G_U_C_S(groupId, userId, categoryIds, status);
072            }
073    
074            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
075                    long groupId, long categoryId, int start, int end)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    return getFinder().filterFindByG_C(groupId, categoryId, start, end);
078            }
079    
080            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_S(
081                    long groupId, long categoryId, int status, int start, int end)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getFinder()
084                                       .filterFindByG_C_S(groupId, categoryId, status, start, end);
085            }
086    
087            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByS_G_U_C_S(
088                    long groupId, long userId, long[] categoryIds, int status, int start,
089                    int end) throws com.liferay.portal.kernel.exception.SystemException {
090                    return getFinder()
091                                       .filterFindByS_G_U_C_S(groupId, userId, categoryIds, status,
092                            start, end);
093            }
094    
095            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByNoAssets()
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return getFinder().findByNoAssets();
098            }
099    
100            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_S(
101                    long groupId, long userId, int status, int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getFinder().findByG_U_S(groupId, userId, status, start, end);
104            }
105    
106            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
107                    long groupId, long categoryId, int status, int start, int end)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return getFinder().findByG_C_S(groupId, categoryId, status, start, end);
110            }
111    
112            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_MD_S(
113                    long groupId, long userId, java.util.Date modifiedDate, int status,
114                    int start, int end)
115                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return getFinder()
117                                       .findByG_U_MD_S(groupId, userId, modifiedDate, status,
118                            start, end);
119            }
120    
121            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_A_S(
122                    long groupId, long userId, boolean anonymous, int status, int start,
123                    int end) throws com.liferay.portal.kernel.exception.SystemException {
124                    return getFinder()
125                                       .findByG_U_A_S(groupId, userId, anonymous, status, start, end);
126            }
127    
128            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByS_G_U_S(
129                    long groupId, long userId, int status, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException {
131                    return getFinder().findByS_G_U_S(groupId, userId, status, start, end);
132            }
133    
134            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByS_G_U_C_S(
135                    long groupId, long userId, long[] categoryIds, int status, int start,
136                    int end) throws com.liferay.portal.kernel.exception.SystemException {
137                    return getFinder()
138                                       .findByS_G_U_C_S(groupId, userId, categoryIds, status,
139                            start, end);
140            }
141    
142            public static MBThreadFinder getFinder() {
143                    if (_finder == null) {
144                            _finder = (MBThreadFinder)PortalBeanLocatorUtil.locate(MBThreadFinder.class.getName());
145    
146                            ReferenceRegistry.registerReference(MBThreadFinderUtil.class,
147                                    "_finder");
148                    }
149    
150                    return _finder;
151            }
152    
153            public void setFinder(MBThreadFinder finder) {
154                    _finder = finder;
155    
156                    ReferenceRegistry.registerReference(MBThreadFinderUtil.class, "_finder");
157            }
158    
159            private static MBThreadFinder _finder;
160    }