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 JournalArticleFinderUtil {
024            public static int countByKeywords(long companyId, long groupId,
025                    long classNameId, java.lang.String keywords, java.lang.Double version,
026                    java.lang.String type, java.lang.String structureId,
027                    java.lang.String templateId, java.util.Date displayDateGT,
028                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
029                    throws com.liferay.portal.kernel.exception.SystemException {
030                    return getFinder()
031                                       .countByKeywords(companyId, groupId, classNameId, keywords,
032                            version, type, structureId, templateId, displayDateGT,
033                            displayDateLT, status, reviewDate);
034            }
035    
036            public static int countByC_G_C_A_V_T_D_C_T_S_T_D_S_R(long companyId,
037                    long groupId, long classNameId, java.lang.String articleId,
038                    java.lang.Double version, java.lang.String title,
039                    java.lang.String description, java.lang.String content,
040                    java.lang.String type, java.lang.String structureId,
041                    java.lang.String templateId, java.util.Date displayDateGT,
042                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
043                    boolean andOperator)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return getFinder()
046                                       .countByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
047                            classNameId, articleId, version, title, description, content, type,
048                            structureId, templateId, displayDateGT, displayDateLT, status,
049                            reviewDate, andOperator);
050            }
051    
052            public static int countByC_G_C_A_V_T_D_C_T_S_T_D_S_R(long companyId,
053                    long groupId, long classNameId, java.lang.String articleId,
054                    java.lang.Double version, java.lang.String title,
055                    java.lang.String description, java.lang.String content,
056                    java.lang.String type, java.lang.String[] structureIds,
057                    java.lang.String[] templateIds, java.util.Date displayDateGT,
058                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
059                    boolean andOperator)
060                    throws com.liferay.portal.kernel.exception.SystemException {
061                    return getFinder()
062                                       .countByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
063                            classNameId, articleId, version, title, description, content, type,
064                            structureIds, templateIds, displayDateGT, displayDateLT, status,
065                            reviewDate, andOperator);
066            }
067    
068            public static int countByC_G_C_A_V_T_D_C_T_S_T_D_S_R(long companyId,
069                    long groupId, long classNameId, java.lang.String[] articleIds,
070                    java.lang.Double version, java.lang.String[] titles,
071                    java.lang.String[] descriptions, java.lang.String[] contents,
072                    java.lang.String type, java.lang.String[] structureIds,
073                    java.lang.String[] templateIds, java.util.Date displayDateGT,
074                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
075                    boolean andOperator)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    return getFinder()
078                                       .countByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
079                            classNameId, articleIds, version, titles, descriptions, contents,
080                            type, structureIds, templateIds, displayDateGT, displayDateLT,
081                            status, reviewDate, andOperator);
082            }
083    
084            public static int filterCountByKeywords(long companyId, long groupId,
085                    long classNameId, java.lang.String keywords, java.lang.Double version,
086                    java.lang.String type, java.lang.String structureId,
087                    java.lang.String templateId, java.util.Date displayDateGT,
088                    java.util.Date displayDateLT, int status, java.util.Date reviewDate)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getFinder()
091                                       .filterCountByKeywords(companyId, groupId, classNameId,
092                            keywords, version, type, structureId, templateId, displayDateGT,
093                            displayDateLT, status, reviewDate);
094            }
095    
096            public static int filterCountByC_G_C_A_V_T_D_C_T_S_T_D_S_R(long companyId,
097                    long groupId, long classNameId, java.lang.String articleId,
098                    java.lang.Double version, java.lang.String title,
099                    java.lang.String description, java.lang.String content,
100                    java.lang.String type, java.lang.String structureId,
101                    java.lang.String templateId, java.util.Date displayDateGT,
102                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
103                    boolean andOperator)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return getFinder()
106                                       .filterCountByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId,
107                            groupId, classNameId, articleId, version, title, description,
108                            content, type, structureId, templateId, displayDateGT,
109                            displayDateLT, status, reviewDate, andOperator);
110            }
111    
112            public static int filterCountByC_G_C_A_V_T_D_C_T_S_T_D_S_R(long companyId,
113                    long groupId, long classNameId, java.lang.String articleId,
114                    java.lang.Double version, java.lang.String title,
115                    java.lang.String description, java.lang.String content,
116                    java.lang.String type, java.lang.String[] structureIds,
117                    java.lang.String[] templateIds, java.util.Date displayDateGT,
118                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
119                    boolean andOperator)
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return getFinder()
122                                       .filterCountByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId,
123                            groupId, classNameId, articleId, version, title, description,
124                            content, type, structureIds, templateIds, displayDateGT,
125                            displayDateLT, status, reviewDate, andOperator);
126            }
127    
128            public static int filterCountByC_G_C_A_V_T_D_C_T_S_T_D_S_R(long companyId,
129                    long groupId, long classNameId, java.lang.String[] articleIds,
130                    java.lang.Double version, java.lang.String[] titles,
131                    java.lang.String[] descriptions, java.lang.String[] contents,
132                    java.lang.String type, java.lang.String[] structureIds,
133                    java.lang.String[] templateIds, java.util.Date displayDateGT,
134                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
135                    boolean andOperator)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getFinder()
138                                       .filterCountByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId,
139                            groupId, classNameId, articleIds, version, titles, descriptions,
140                            contents, type, structureIds, templateIds, displayDateGT,
141                            displayDateLT, status, reviewDate, andOperator);
142            }
143    
144            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> filterFindByKeywords(
145                    long companyId, long groupId, long classNameId,
146                    java.lang.String keywords, java.lang.Double version,
147                    java.lang.String type, java.lang.String structureId,
148                    java.lang.String templateId, java.util.Date displayDateGT,
149                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
150                    int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getFinder()
154                                       .filterFindByKeywords(companyId, groupId, classNameId,
155                            keywords, version, type, structureId, templateId, displayDateGT,
156                            displayDateLT, status, reviewDate, start, end, orderByComparator);
157            }
158    
159            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> filterFindByC_G_C_A_V_T_D_C_T_S_T_D_S_R(
160                    long companyId, long groupId, long classNameId,
161                    java.lang.String articleId, java.lang.Double version,
162                    java.lang.String title, java.lang.String description,
163                    java.lang.String content, java.lang.String type,
164                    java.lang.String structureId, java.lang.String templateId,
165                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
166                    java.util.Date reviewDate, boolean andOperator, int start, int end,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return getFinder()
170                                       .filterFindByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
171                            classNameId, articleId, version, title, description, content, type,
172                            structureId, templateId, displayDateGT, displayDateLT, status,
173                            reviewDate, andOperator, start, end, orderByComparator);
174            }
175    
176            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> filterFindByC_G_C_A_V_T_D_C_T_S_T_D_S_R(
177                    long companyId, long groupId, long classNameId,
178                    java.lang.String articleId, java.lang.Double version,
179                    java.lang.String title, java.lang.String description,
180                    java.lang.String content, java.lang.String type,
181                    java.lang.String[] structureIds, java.lang.String[] templateIds,
182                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
183                    java.util.Date reviewDate, boolean andOperator, int start, int end,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return getFinder()
187                                       .filterFindByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
188                            classNameId, articleId, version, title, description, content, type,
189                            structureIds, templateIds, displayDateGT, displayDateLT, status,
190                            reviewDate, andOperator, start, end, orderByComparator);
191            }
192    
193            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> filterFindByC_G_C_A_V_T_D_C_T_S_T_D_S_R(
194                    long companyId, long groupId, long classNameId,
195                    java.lang.String[] articleIds, java.lang.Double version,
196                    java.lang.String[] titles, java.lang.String[] descriptions,
197                    java.lang.String[] contents, java.lang.String type,
198                    java.lang.String[] structureIds, java.lang.String[] templateIds,
199                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
200                    java.util.Date reviewDate, boolean andOperator, int start, int end,
201                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getFinder()
204                                       .filterFindByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
205                            classNameId, articleIds, version, titles, descriptions, contents,
206                            type, structureIds, templateIds, displayDateGT, displayDateLT,
207                            status, reviewDate, andOperator, start, end, orderByComparator);
208            }
209    
210            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByExpirationDate(
211                    long classNameId, int status, java.util.Date expirationDateLT)
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return getFinder()
214                                       .findByExpirationDate(classNameId, status, expirationDateLT);
215            }
216    
217            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByKeywords(
218                    long companyId, long groupId, long classNameId,
219                    java.lang.String keywords, java.lang.Double version,
220                    java.lang.String type, java.lang.String structureId,
221                    java.lang.String templateId, java.util.Date displayDateGT,
222                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
223                    int start, int end,
224                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getFinder()
227                                       .findByKeywords(companyId, groupId, classNameId, keywords,
228                            version, type, structureId, templateId, displayDateGT,
229                            displayDateLT, status, reviewDate, start, end, orderByComparator);
230            }
231    
232            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByReviewDate(
233                    long classNameId, java.util.Date reviewDateLT,
234                    java.util.Date reviewDateGT)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return getFinder()
237                                       .findByReviewDate(classNameId, reviewDateLT, reviewDateGT);
238            }
239    
240            public static com.liferay.portlet.journal.model.JournalArticle findByR_D(
241                    long resourcePrimKey, java.util.Date displayDate)
242                    throws com.liferay.portal.kernel.exception.SystemException,
243                            com.liferay.portlet.journal.NoSuchArticleException {
244                    return getFinder().findByR_D(resourcePrimKey, displayDate);
245            }
246    
247            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_C_A_V_T_D_C_T_S_T_D_S_R(
248                    long companyId, long groupId, long classNameId,
249                    java.lang.String articleId, java.lang.Double version,
250                    java.lang.String title, java.lang.String description,
251                    java.lang.String content, java.lang.String type,
252                    java.lang.String structureId, java.lang.String templateId,
253                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
254                    java.util.Date reviewDate, boolean andOperator, int start, int end,
255                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    return getFinder()
258                                       .findByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
259                            classNameId, articleId, version, title, description, content, type,
260                            structureId, templateId, displayDateGT, displayDateLT, status,
261                            reviewDate, andOperator, start, end, orderByComparator);
262            }
263    
264            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_C_A_V_T_D_C_T_S_T_D_S_R(
265                    long companyId, long groupId, long classNameId,
266                    java.lang.String articleId, java.lang.Double version,
267                    java.lang.String title, java.lang.String description,
268                    java.lang.String content, java.lang.String type,
269                    java.lang.String[] structureIds, java.lang.String[] templateIds,
270                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
271                    java.util.Date reviewDate, boolean andOperator, int start, int end,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return getFinder()
275                                       .findByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
276                            classNameId, articleId, version, title, description, content, type,
277                            structureIds, templateIds, displayDateGT, displayDateLT, status,
278                            reviewDate, andOperator, start, end, orderByComparator);
279            }
280    
281            public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_C_A_V_T_D_C_T_S_T_D_S_R(
282                    long companyId, long groupId, long classNameId,
283                    java.lang.String[] articleIds, java.lang.Double version,
284                    java.lang.String[] titles, java.lang.String[] descriptions,
285                    java.lang.String[] contents, java.lang.String type,
286                    java.lang.String[] structureIds, java.lang.String[] templateIds,
287                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
288                    java.util.Date reviewDate, boolean andOperator, int start, int end,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException {
291                    return getFinder()
292                                       .findByC_G_C_A_V_T_D_C_T_S_T_D_S_R(companyId, groupId,
293                            classNameId, articleIds, version, titles, descriptions, contents,
294                            type, structureIds, templateIds, displayDateGT, displayDateLT,
295                            status, reviewDate, andOperator, start, end, orderByComparator);
296            }
297    
298            public static JournalArticleFinder getFinder() {
299                    if (_finder == null) {
300                            _finder = (JournalArticleFinder)PortalBeanLocatorUtil.locate(JournalArticleFinder.class.getName());
301    
302                            ReferenceRegistry.registerReference(JournalArticleFinderUtil.class,
303                                    "_finder");
304                    }
305    
306                    return _finder;
307            }
308    
309            public void setFinder(JournalArticleFinder finder) {
310                    _finder = finder;
311    
312                    ReferenceRegistry.registerReference(JournalArticleFinderUtil.class,
313                            "_finder");
314            }
315    
316            private static JournalArticleFinder _finder;
317    }