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.journal.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 JournalTemplateFinderUtil {
024            public static int countByKeywords(long companyId, long[] groupIds,
025                    java.lang.String keywords, java.lang.String structureId,
026                    java.lang.String structureIdComparator)
027                    throws com.liferay.portal.kernel.exception.SystemException {
028                    return getFinder()
029                                       .countByKeywords(companyId, groupIds, keywords, structureId,
030                            structureIdComparator);
031            }
032    
033            public static int countByC_G_T_S_N_D(long companyId, long[] groupIds,
034                    java.lang.String templateId, java.lang.String structureId,
035                    java.lang.String structureIdComparator, java.lang.String name,
036                    java.lang.String description, boolean andOperator)
037                    throws com.liferay.portal.kernel.exception.SystemException {
038                    return getFinder()
039                                       .countByC_G_T_S_N_D(companyId, groupIds, templateId,
040                            structureId, structureIdComparator, name, description, andOperator);
041            }
042    
043            public static int filterCountByKeywords(long companyId, long[] groupIds,
044                    java.lang.String keywords, java.lang.String structureId,
045                    java.lang.String structureIdComparator)
046                    throws com.liferay.portal.kernel.exception.SystemException {
047                    return getFinder()
048                                       .filterCountByKeywords(companyId, groupIds, keywords,
049                            structureId, structureIdComparator);
050            }
051    
052            public static int filterCountByC_G_T_S_N_D(long companyId, long[] groupIds,
053                    java.lang.String templateId, java.lang.String structureId,
054                    java.lang.String structureIdComparator, java.lang.String name,
055                    java.lang.String description, boolean andOperator)
056                    throws com.liferay.portal.kernel.exception.SystemException {
057                    return getFinder()
058                                       .filterCountByC_G_T_S_N_D(companyId, groupIds, templateId,
059                            structureId, structureIdComparator, name, description, andOperator);
060            }
061    
062            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByKeywords(
063                    long companyId, long[] groupIds, java.lang.String keywords,
064                    java.lang.String structureId, java.lang.String structureIdComparator,
065                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
066                    throws com.liferay.portal.kernel.exception.SystemException {
067                    return getFinder()
068                                       .filterFindByKeywords(companyId, groupIds, keywords,
069                            structureId, structureIdComparator, start, end, obc);
070            }
071    
072            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByC_G_T_S_N_D(
073                    long companyId, long[] groupIds, java.lang.String templateId,
074                    java.lang.String structureId, java.lang.String structureIdComparator,
075                    java.lang.String name, java.lang.String description,
076                    boolean andOperator, int start, int end,
077                    com.liferay.portal.kernel.util.OrderByComparator obc)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return getFinder()
080                                       .filterFindByC_G_T_S_N_D(companyId, groupIds, templateId,
081                            structureId, structureIdComparator, name, description, andOperator,
082                            start, end, obc);
083            }
084    
085            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByKeywords(
086                    long companyId, long[] groupIds, java.lang.String keywords,
087                    java.lang.String structureId, java.lang.String structureIdComparator,
088                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getFinder()
091                                       .findByKeywords(companyId, groupIds, keywords, structureId,
092                            structureIdComparator, start, end, obc);
093            }
094    
095            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
096                    long companyId, long[] groupIds, java.lang.String templateId,
097                    java.lang.String structureId, java.lang.String structureIdComparator,
098                    java.lang.String name, java.lang.String description,
099                    boolean andOperator, int start, int end,
100                    com.liferay.portal.kernel.util.OrderByComparator obc)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return getFinder()
103                                       .findByC_G_T_S_N_D(companyId, groupIds, templateId,
104                            structureId, structureIdComparator, name, description, andOperator,
105                            start, end, obc);
106            }
107    
108            public static JournalTemplateFinder getFinder() {
109                    if (_finder == null) {
110                            _finder = (JournalTemplateFinder)PortalBeanLocatorUtil.locate(JournalTemplateFinder.class.getName());
111    
112                            ReferenceRegistry.registerReference(JournalTemplateFinderUtil.class,
113                                    "_finder");
114                    }
115    
116                    return _finder;
117            }
118    
119            public void setFinder(JournalTemplateFinder finder) {
120                    _finder = finder;
121    
122                    ReferenceRegistry.registerReference(JournalTemplateFinderUtil.class,
123                            "_finder");
124            }
125    
126            private static JournalTemplateFinder _finder;
127    }