001
014
015 package com.liferay.portlet.asset.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 AssetCategoryFinderUtil {
028 public static int countByG_C_N(long groupId, long classNameId,
029 java.lang.String name) {
030 return getFinder().countByG_C_N(groupId, classNameId, name);
031 }
032
033 public static int countByG_N_P(long groupId, java.lang.String name,
034 java.lang.String[] categoryProperties) {
035 return getFinder().countByG_N_P(groupId, name, categoryProperties);
036 }
037
038 public static com.liferay.portlet.asset.model.AssetCategory findByG_N(
039 long groupId, java.lang.String name)
040 throws com.liferay.portlet.asset.exception.NoSuchCategoryException {
041 return getFinder().findByG_N(groupId, name);
042 }
043
044 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
045 long groupId, java.lang.String name,
046 java.lang.String[] categoryProperties) {
047 return getFinder().findByG_N_P(groupId, name, categoryProperties);
048 }
049
050 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
051 long groupId, java.lang.String name,
052 java.lang.String[] categoryProperties, int start, int end) {
053 return getFinder()
054 .findByG_N_P(groupId, name, categoryProperties, start, end);
055 }
056
057 public static AssetCategoryFinder getFinder() {
058 if (_finder == null) {
059 _finder = (AssetCategoryFinder)PortalBeanLocatorUtil.locate(AssetCategoryFinder.class.getName());
060
061 ReferenceRegistry.registerReference(AssetCategoryFinderUtil.class,
062 "_finder");
063 }
064
065 return _finder;
066 }
067
068 public void setFinder(AssetCategoryFinder finder) {
069 _finder = finder;
070
071 ReferenceRegistry.registerReference(AssetCategoryFinderUtil.class,
072 "_finder");
073 }
074
075 private static AssetCategoryFinder _finder;
076 }