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