001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.calendar.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    /**
023     * @author Brian Wing Shun Chan
024     */
025    @ProviderType
026    public class CalEventFinderUtil {
027            public static int countByG_SD_T(long groupId, java.util.Date startDateGT,
028                    java.util.Date startDateLT, boolean timeZoneSensitive,
029                    java.lang.String[] types) {
030                    return getFinder()
031                                       .countByG_SD_T(groupId, startDateGT, startDateLT,
032                            timeZoneSensitive, types);
033            }
034    
035            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByFutureReminders() {
036                    return getFinder().findByFutureReminders();
037            }
038    
039            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNoAssets() {
040                    return getFinder().findByNoAssets();
041            }
042    
043            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_SD_T(
044                    long groupId, java.util.Date startDateGT, java.util.Date startDateLT,
045                    boolean timeZoneSensitive, java.lang.String[] types) {
046                    return getFinder()
047                                       .findByG_SD_T(groupId, startDateGT, startDateLT,
048                            timeZoneSensitive, types);
049            }
050    
051            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_SD_T(
052                    long groupId, java.util.Date startDateGT, java.util.Date startDateLT,
053                    boolean timeZoneSensitive, java.lang.String[] types, int start, int end) {
054                    return getFinder()
055                                       .findByG_SD_T(groupId, startDateGT, startDateLT,
056                            timeZoneSensitive, types, start, end);
057            }
058    
059            public static CalEventFinder getFinder() {
060                    if (_finder == null) {
061                            _finder = (CalEventFinder)PortalBeanLocatorUtil.locate(CalEventFinder.class.getName());
062    
063                            ReferenceRegistry.registerReference(CalEventFinderUtil.class,
064                                    "_finder");
065                    }
066    
067                    return _finder;
068            }
069    
070            public void setFinder(CalEventFinder finder) {
071                    _finder = finder;
072    
073                    ReferenceRegistry.registerReference(CalEventFinderUtil.class, "_finder");
074            }
075    
076            private static CalEventFinder _finder;
077    }