001    /**
002     * Copyright (c) 2000-2013 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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * @author Brian Wing Shun Chan
022     */
023    public class CalEventFinderUtil {
024            public static int countByG_SD_T(long groupId, java.util.Date startDateGT,
025                    java.util.Date startDateLT, boolean timeZoneSensitive,
026                    java.lang.String[] types)
027                    throws com.liferay.portal.kernel.exception.SystemException {
028                    return getFinder()
029                                       .countByG_SD_T(groupId, startDateGT, startDateLT,
030                            timeZoneSensitive, types);
031            }
032    
033            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByFutureReminders()
034                    throws com.liferay.portal.kernel.exception.SystemException {
035                    return getFinder().findByFutureReminders();
036            }
037    
038            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNoAssets()
039                    throws com.liferay.portal.kernel.exception.SystemException {
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                    throws com.liferay.portal.kernel.exception.SystemException {
047                    return getFinder()
048                                       .findByG_SD_T(groupId, startDateGT, startDateLT,
049                            timeZoneSensitive, types);
050            }
051    
052            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_SD_T(
053                    long groupId, java.util.Date startDateGT, java.util.Date startDateLT,
054                    boolean timeZoneSensitive, java.lang.String[] types, int start, int end)
055                    throws com.liferay.portal.kernel.exception.SystemException {
056                    return getFinder()
057                                       .findByG_SD_T(groupId, startDateGT, startDateLT,
058                            timeZoneSensitive, types, start, end);
059            }
060    
061            public static CalEventFinder getFinder() {
062                    if (_finder == null) {
063                            _finder = (CalEventFinder)PortalBeanLocatorUtil.locate(CalEventFinder.class.getName());
064    
065                            ReferenceRegistry.registerReference(CalEventFinderUtil.class,
066                                    "_finder");
067                    }
068    
069                    return _finder;
070            }
071    
072            public void setFinder(CalEventFinder finder) {
073                    _finder = finder;
074    
075                    ReferenceRegistry.registerReference(CalEventFinderUtil.class, "_finder");
076            }
077    
078            private static CalEventFinder _finder;
079    }