001
014
015 package com.liferay.portlet.asset.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
023 public class AssetCategoryFinderUtil {
024 public static int countByG_C_N(long groupId, long classNameId,
025 java.lang.String name)
026 throws com.liferay.portal.kernel.exception.SystemException {
027 return getFinder().countByG_C_N(groupId, classNameId, name);
028 }
029
030 public static int countByG_N_V(long groupId, java.lang.String name,
031 long vocabularyId)
032 throws com.liferay.portal.kernel.exception.SystemException {
033 return getFinder().countByG_N_V(groupId, name, vocabularyId);
034 }
035
036 public static int countByG_N_P(long groupId, java.lang.String name,
037 java.lang.String[] categoryProperties)
038 throws com.liferay.portal.kernel.exception.SystemException {
039 return getFinder().countByG_N_P(groupId, name, categoryProperties);
040 }
041
042 public static int filterCountByG_N_V(long groupId, java.lang.String name,
043 long vocabularyId)
044 throws com.liferay.portal.kernel.exception.SystemException {
045 return getFinder().filterCountByG_N_V(groupId, name, vocabularyId);
046 }
047
048 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_N_V(
049 long groupId, java.lang.String name, long vocabularyId, int start,
050 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
051 throws com.liferay.portal.kernel.exception.SystemException {
052 return getFinder()
053 .filterFindByG_N_V(groupId, name, vocabularyId, start, end,
054 obc);
055 }
056
057 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByEntryId(
058 long entryId)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getFinder().findByEntryId(entryId);
061 }
062
063 public static com.liferay.portlet.asset.model.AssetCategory findByG_N(
064 long groupId, java.lang.String name)
065 throws com.liferay.portal.kernel.exception.SystemException,
066 com.liferay.portlet.asset.NoSuchCategoryException {
067 return getFinder().findByG_N(groupId, name);
068 }
069
070 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByC_C(
071 long classNameId, long classPK)
072 throws com.liferay.portal.kernel.exception.SystemException {
073 return getFinder().findByC_C(classNameId, classPK);
074 }
075
076 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_V(
077 long groupId, java.lang.String name, long vocabularyId, int start,
078 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
079 throws com.liferay.portal.kernel.exception.SystemException {
080 return getFinder()
081 .findByG_N_V(groupId, name, vocabularyId, start, end, obc);
082 }
083
084 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
085 long groupId, java.lang.String name,
086 java.lang.String[] categoryProperties)
087 throws com.liferay.portal.kernel.exception.SystemException {
088 return getFinder().findByG_N_P(groupId, name, categoryProperties);
089 }
090
091 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
092 long groupId, java.lang.String name,
093 java.lang.String[] categoryProperties, int start, int end)
094 throws com.liferay.portal.kernel.exception.SystemException {
095 return getFinder()
096 .findByG_N_P(groupId, name, categoryProperties, start, end);
097 }
098
099 public static AssetCategoryFinder getFinder() {
100 if (_finder == null) {
101 _finder = (AssetCategoryFinder)PortalBeanLocatorUtil.locate(AssetCategoryFinder.class.getName());
102
103 ReferenceRegistry.registerReference(AssetCategoryFinderUtil.class,
104 "_finder");
105 }
106
107 return _finder;
108 }
109
110 public void setFinder(AssetCategoryFinder finder) {
111 _finder = finder;
112
113 ReferenceRegistry.registerReference(AssetCategoryFinderUtil.class,
114 "_finder");
115 }
116
117 private static AssetCategoryFinder _finder;
118 }