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 JournalStructureFinderUtil {
024            public static int countByKeywords(long companyId, long[] groupIds,
025                    java.lang.String keywords)
026                    throws com.liferay.portal.kernel.exception.SystemException {
027                    return getFinder().countByKeywords(companyId, groupIds, keywords);
028            }
029    
030            public static int countByC_G_S_N_D(long companyId, long[] groupIds,
031                    java.lang.String structureId, java.lang.String name,
032                    java.lang.String description, boolean andOperator)
033                    throws com.liferay.portal.kernel.exception.SystemException {
034                    return getFinder()
035                                       .countByC_G_S_N_D(companyId, groupIds, structureId, name,
036                            description, andOperator);
037            }
038    
039            public static int countByC_G_S_N_D(long companyId, long[] groupIds,
040                    java.lang.String[] structureIds, java.lang.String[] names,
041                    java.lang.String[] descriptions, boolean andOperator)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return getFinder()
044                                       .countByC_G_S_N_D(companyId, groupIds, structureIds, names,
045                            descriptions, andOperator);
046            }
047    
048            public static int filterCountByKeywords(long companyId, long[] groupIds,
049                    java.lang.String keywords)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getFinder().filterCountByKeywords(companyId, groupIds, keywords);
052            }
053    
054            public static int filterCountByC_G_S_N_D(long companyId, long[] groupIds,
055                    java.lang.String structureId, java.lang.String name,
056                    java.lang.String description, boolean andOperator)
057                    throws com.liferay.portal.kernel.exception.SystemException {
058                    return getFinder()
059                                       .filterCountByC_G_S_N_D(companyId, groupIds, structureId,
060                            name, description, andOperator);
061            }
062    
063            public static int filterCountByC_G_S_N_D(long companyId, long[] groupIds,
064                    java.lang.String[] structureIds, java.lang.String[] names,
065                    java.lang.String[] descriptions, boolean andOperator)
066                    throws com.liferay.portal.kernel.exception.SystemException {
067                    return getFinder()
068                                       .filterCountByC_G_S_N_D(companyId, groupIds, structureIds,
069                            names, descriptions, andOperator);
070            }
071    
072            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByKeywords(
073                    long companyId, long[] groupIds, java.lang.String keywords, int start,
074                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getFinder()
077                                       .filterFindByKeywords(companyId, groupIds, keywords, start,
078                            end, obc);
079            }
080    
081            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByC_G_S_N_D(
082                    long companyId, long[] groupIds, java.lang.String structureId,
083                    java.lang.String name, java.lang.String description,
084                    boolean andOperator, int start, int end,
085                    com.liferay.portal.kernel.util.OrderByComparator obc)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    return getFinder()
088                                       .filterFindByC_G_S_N_D(companyId, groupIds, structureId,
089                            name, description, andOperator, start, end, obc);
090            }
091    
092            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByC_G_S_N_D(
093                    long companyId, long[] groupIds, java.lang.String[] structureIds,
094                    java.lang.String[] names, java.lang.String[] descriptions,
095                    boolean andOperator, int start, int end,
096                    com.liferay.portal.kernel.util.OrderByComparator obc)
097                    throws com.liferay.portal.kernel.exception.SystemException {
098                    return getFinder()
099                                       .filterFindByC_G_S_N_D(companyId, groupIds, structureIds,
100                            names, descriptions, andOperator, start, end, obc);
101            }
102    
103            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByKeywords(
104                    long companyId, long[] groupIds, java.lang.String keywords, int start,
105                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getFinder()
108                                       .findByKeywords(companyId, groupIds, keywords, start, end,
109                            obc);
110            }
111    
112            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByC_G_S_N_D(
113                    long companyId, long[] groupIds, java.lang.String structureId,
114                    java.lang.String name, java.lang.String description,
115                    boolean andOperator, int start, int end,
116                    com.liferay.portal.kernel.util.OrderByComparator obc)
117                    throws com.liferay.portal.kernel.exception.SystemException {
118                    return getFinder()
119                                       .findByC_G_S_N_D(companyId, groupIds, structureId, name,
120                            description, andOperator, start, end, obc);
121            }
122    
123            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByC_G_S_N_D(
124                    long companyId, long[] groupIds, java.lang.String[] structureIds,
125                    java.lang.String[] names, java.lang.String[] descriptions,
126                    boolean andOperator, int start, int end,
127                    com.liferay.portal.kernel.util.OrderByComparator obc)
128                    throws com.liferay.portal.kernel.exception.SystemException {
129                    return getFinder()
130                                       .findByC_G_S_N_D(companyId, groupIds, structureIds, names,
131                            descriptions, andOperator, start, end, obc);
132            }
133    
134            public static JournalStructureFinder getFinder() {
135                    if (_finder == null) {
136                            _finder = (JournalStructureFinder)PortalBeanLocatorUtil.locate(JournalStructureFinder.class.getName());
137    
138                            ReferenceRegistry.registerReference(JournalStructureFinderUtil.class,
139                                    "_finder");
140                    }
141    
142                    return _finder;
143            }
144    
145            public void setFinder(JournalStructureFinder finder) {
146                    _finder = finder;
147    
148                    ReferenceRegistry.registerReference(JournalStructureFinderUtil.class,
149                            "_finder");
150            }
151    
152            private static JournalStructureFinder _finder;
153    }