001
014
015 package com.liferay.portlet.dynamicdatalists.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 DDLRecordFinderUtil {
028 public static int countByR_S(long recordSetId, int status) {
029 return getFinder().countByR_S(recordSetId, status);
030 }
031
032 public static int countByC_S_S(long companyId, int status, int scope) {
033 return getFinder().countByC_S_S(companyId, status, scope);
034 }
035
036 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_S(
037 long recordSetId, int status, int start, int end,
038 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) {
039 return getFinder()
040 .findByR_S(recordSetId, status, start, end, orderByComparator);
041 }
042
043 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByC_S_S(
044 long companyId, int status, int scope, int start, int end,
045 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) {
046 return getFinder()
047 .findByC_S_S(companyId, status, scope, start, end,
048 orderByComparator);
049 }
050
051 public static java.lang.Long[] findByC_S_S_MinAndMax(long companyId,
052 int status, int scope) {
053 return getFinder().findByC_S_S_MinAndMax(companyId, status, scope);
054 }
055
056 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByC_S_S_MinAndMax(
057 long companyId, int status, int scope, long minRecordId,
058 long maxRecordId) {
059 return getFinder()
060 .findByC_S_S_MinAndMax(companyId, status, scope,
061 minRecordId, maxRecordId);
062 }
063
064 public static DDLRecordFinder getFinder() {
065 if (_finder == null) {
066 _finder = (DDLRecordFinder)PortalBeanLocatorUtil.locate(DDLRecordFinder.class.getName());
067
068 ReferenceRegistry.registerReference(DDLRecordFinderUtil.class,
069 "_finder");
070 }
071
072 return _finder;
073 }
074
075 public void setFinder(DDLRecordFinder finder) {
076 _finder = finder;
077
078 ReferenceRegistry.registerReference(DDLRecordFinderUtil.class, "_finder");
079 }
080
081 private static DDLRecordFinder _finder;
082 }