001
014
015 package com.liferay.portlet.messageboards.service.persistence;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
026 @ProviderType
027 public class MBCategoryFinderUtil {
028 public static int countByS_G_U_P(long groupId, long userId,
029 long[] parentCategoryIds,
030 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
031 return getFinder()
032 .countByS_G_U_P(groupId, userId, parentCategoryIds,
033 queryDefinition);
034 }
035
036 public static int filterCountByS_G_U_P(long groupId, long userId,
037 long[] parentCategoryIds,
038 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
039 return getFinder()
040 .filterCountByS_G_U_P(groupId, userId, parentCategoryIds,
041 queryDefinition);
042 }
043
044 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByS_G_U_P(
045 long groupId, long userId, long[] parentCategoryIds,
046 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
047 return getFinder()
048 .filterFindByS_G_U_P(groupId, userId, parentCategoryIds,
049 queryDefinition);
050 }
051
052 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByS_G_U_P(
053 long groupId, long userId, long[] parentCategoryIds,
054 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
055 return getFinder()
056 .findByS_G_U_P(groupId, userId, parentCategoryIds,
057 queryDefinition);
058 }
059
060 public static MBCategoryFinder getFinder() {
061 if (_finder == null) {
062 _finder = (MBCategoryFinder)PortalBeanLocatorUtil.locate(MBCategoryFinder.class.getName());
063
064 ReferenceRegistry.registerReference(MBCategoryFinderUtil.class,
065 "_finder");
066 }
067
068 return _finder;
069 }
070
071 public void setFinder(MBCategoryFinder finder) {
072 _finder = finder;
073
074 ReferenceRegistry.registerReference(MBCategoryFinderUtil.class,
075 "_finder");
076 }
077
078 private static MBCategoryFinder _finder;
079 }