001    /**
002     * Copyright (c) 2000-2010 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    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class JournalArticleFinderUtil {
023            public static int countByKeywords(long companyId, long groupId,
024                    java.lang.String keywords, java.lang.Double version,
025                    java.lang.String type, java.lang.String structureId,
026                    java.lang.String templateId, java.util.Date displayDateGT,
027                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
028                    throws com.liferay.portal.kernel.exception.SystemException {
029                    return getFinder()
030                                       .countByKeywords(companyId, groupId, keywords, version,
031                            type, structureId, templateId, displayDateGT, displayDateLT,
032                            status, reviewDate);
033            }
034    
035            public static int countByC_G_A_V_T_D_C_T_S_T_D_S_R(long companyId,
036                    long groupId, java.lang.String articleId, java.lang.Double version,
037                    java.lang.String title, java.lang.String description,
038                    java.lang.String content, java.lang.String type,
039                    java.lang.String structureId, java.lang.String templateId,
040                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
041                    java.util.Date reviewDate, boolean andOperator)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return getFinder()
044                                       .countByC_G_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
045                            articleId, version, title, description, content, type, structureId,
046                            templateId, displayDateGT, displayDateLT, status, reviewDate,
047                            andOperator);
048            }
049    
050            public static int countByC_G_A_V_T_D_C_T_S_T_D_S_R(long companyId,
051                    long groupId, java.lang.String articleId, java.lang.Double version,
052                    java.lang.String title, java.lang.String description,
053                    java.lang.String content, java.lang.String type,
054                    java.lang.String[] structureIds, java.lang.String[] templateIds,
055                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
056                    java.util.Date reviewDate, boolean andOperator)
057                    throws com.liferay.portal.kernel.exception.SystemException {
058                    return getFinder()
059                                       .countByC_G_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
060                            articleId, version, title, description, content, type,
061                            structureIds, templateIds, displayDateGT, displayDateLT, status,
062                            reviewDate, andOperator);
063            }
064    
065            public static int countByC_G_A_V_T_D_C_T_S_T_D_S_R(long companyId,
066                    long groupId, java.lang.String[] articleIds, java.lang.Double version,
067                    java.lang.String[] titles, java.lang.String[] descriptions,
068                    java.lang.String[] contents, java.lang.String type,
069                    java.lang.String[] structureIds, java.lang.String[] templateIds,
070                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
071                    java.util.Date reviewDate, boolean andOperator)
072                    throws com.liferay.portal.kernel.exception.SystemException {
073                    return getFinder()
074                                       .countByC_G_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
075                            articleIds, version, titles, descriptions, contents, type,
076                            structureIds, templateIds, displayDateGT, displayDateLT, status,
077                            reviewDate, andOperator);
078            }
079    
080            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByExpirationDate(
081                    int status, java.util.Date expirationDateLT,
082                    java.util.Date expirationDateGT)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return getFinder()
085                                       .findByExpirationDate(status, expirationDateLT,
086                            expirationDateGT);
087            }
088    
089            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByKeywords(
090                    long companyId, long groupId, java.lang.String keywords,
091                    java.lang.Double version, java.lang.String type,
092                    java.lang.String structureId, java.lang.String templateId,
093                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
094                    java.util.Date reviewDate, int start, int end,
095                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return getFinder()
098                                       .findByKeywords(companyId, groupId, keywords, version, type,
099                            structureId, templateId, displayDateGT, displayDateLT, status,
100                            reviewDate, start, end, orderByComparator);
101            }
102    
103            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByReviewDate(
104                    java.util.Date reviewDateLT, java.util.Date reviewDateGT)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return getFinder().findByReviewDate(reviewDateLT, reviewDateGT);
107            }
108    
109            public static com.liferay.portlet.journal.model.JournalArticle findByR_D(
110                    long resourcePrimKey, java.util.Date displayDate)
111                    throws com.liferay.portal.kernel.exception.SystemException,
112                            com.liferay.portlet.journal.NoSuchArticleException {
113                    return getFinder().findByR_D(resourcePrimKey, displayDate);
114            }
115    
116            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_S_R(
117                    long companyId, long groupId, java.lang.String articleId,
118                    java.lang.Double version, java.lang.String title,
119                    java.lang.String description, java.lang.String content,
120                    java.lang.String type, java.lang.String structureId,
121                    java.lang.String templateId, java.util.Date displayDateGT,
122                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
123                    boolean andOperator, int start, int end,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return getFinder()
127                                       .findByC_G_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
128                            articleId, version, title, description, content, type, structureId,
129                            templateId, displayDateGT, displayDateLT, status, reviewDate,
130                            andOperator, start, end, orderByComparator);
131            }
132    
133            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_S_R(
134                    long companyId, long groupId, java.lang.String articleId,
135                    java.lang.Double version, java.lang.String title,
136                    java.lang.String description, java.lang.String content,
137                    java.lang.String type, java.lang.String[] structureIds,
138                    java.lang.String[] templateIds, java.util.Date displayDateGT,
139                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
140                    boolean andOperator, int start, int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return getFinder()
144                                       .findByC_G_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
145                            articleId, version, title, description, content, type,
146                            structureIds, templateIds, displayDateGT, displayDateLT, status,
147                            reviewDate, andOperator, start, end, orderByComparator);
148            }
149    
150            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_S_R(
151                    long companyId, long groupId, java.lang.String[] articleIds,
152                    java.lang.Double version, java.lang.String[] titles,
153                    java.lang.String[] descriptions, java.lang.String[] contents,
154                    java.lang.String type, java.lang.String[] structureIds,
155                    java.lang.String[] templateIds, java.util.Date displayDateGT,
156                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
157                    boolean andOperator, int start, int end,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return getFinder()
161                                       .findByC_G_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
162                            articleIds, version, titles, descriptions, contents, type,
163                            structureIds, templateIds, displayDateGT, displayDateLT, status,
164                            reviewDate, andOperator, start, end, orderByComparator);
165            }
166    
167            public static JournalArticleFinder getFinder() {
168                    if (_finder == null) {
169                            _finder = (JournalArticleFinder)PortalBeanLocatorUtil.locate(JournalArticleFinder.class.getName());
170                    }
171    
172                    return _finder;
173            }
174    
175            public void setFinder(JournalArticleFinder finder) {
176                    _finder = finder;
177            }
178    
179            private static JournalArticleFinder _finder;
180    }