1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service.persistence;
24  
25  /**
26   * <a href="JournalArticleFinderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class JournalArticleFinderUtil {
32      public static int countByKeywords(long companyId, long groupId,
33          java.lang.String keywords, java.lang.Double version,
34          java.lang.String type, java.lang.String structureId,
35          java.lang.String templateId, java.util.Date displayDateGT,
36          java.util.Date displayDateLT, java.lang.Boolean approved,
37          java.lang.Boolean expired, java.util.Date reviewDate)
38          throws com.liferay.portal.SystemException {
39          return getFinder()
40                     .countByKeywords(companyId, groupId, keywords, version,
41              type, structureId, templateId, displayDateGT, displayDateLT,
42              approved, expired, reviewDate);
43      }
44  
45      public static int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId,
46          long groupId, java.lang.String articleId, java.lang.Double version,
47          java.lang.String title, java.lang.String description,
48          java.lang.String content, java.lang.String type,
49          java.lang.String structureId, java.lang.String templateId,
50          java.util.Date displayDateGT, java.util.Date displayDateLT,
51          java.lang.Boolean approved, java.lang.Boolean expired,
52          java.util.Date reviewDate, boolean andOperator)
53          throws com.liferay.portal.SystemException {
54          return getFinder()
55                     .countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId, groupId,
56              articleId, version, title, description, content, type, structureId,
57              templateId, displayDateGT, displayDateLT, approved, expired,
58              reviewDate, andOperator);
59      }
60  
61      public static int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId,
62          long groupId, java.lang.String articleId, java.lang.Double version,
63          java.lang.String title, java.lang.String description,
64          java.lang.String content, java.lang.String type,
65          java.lang.String[] structureIds, java.lang.String[] templateIds,
66          java.util.Date displayDateGT, java.util.Date displayDateLT,
67          java.lang.Boolean approved, java.lang.Boolean expired,
68          java.util.Date reviewDate, boolean andOperator)
69          throws com.liferay.portal.SystemException {
70          return getFinder()
71                     .countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId, groupId,
72              articleId, version, title, description, content, type,
73              structureIds, templateIds, displayDateGT, displayDateLT, approved,
74              expired, reviewDate, andOperator);
75      }
76  
77      public static int countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(long companyId,
78          long groupId, java.lang.String[] articleIds, java.lang.Double version,
79          java.lang.String[] titles, java.lang.String[] descriptions,
80          java.lang.String[] contents, java.lang.String type,
81          java.lang.String[] structureIds, java.lang.String[] templateIds,
82          java.util.Date displayDateGT, java.util.Date displayDateLT,
83          java.lang.Boolean approved, java.lang.Boolean expired,
84          java.util.Date reviewDate, boolean andOperator)
85          throws com.liferay.portal.SystemException {
86          return getFinder()
87                     .countByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId, groupId,
88              articleIds, version, titles, descriptions, contents, type,
89              structureIds, templateIds, displayDateGT, displayDateLT, approved,
90              expired, reviewDate, andOperator);
91      }
92  
93      public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByExpirationDate(
94          java.lang.Boolean expired, java.util.Date expirationDateLT,
95          java.util.Date expirationDateGT)
96          throws com.liferay.portal.SystemException {
97          return getFinder()
98                     .findByExpirationDate(expired, expirationDateLT,
99              expirationDateGT);
100     }
101 
102     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByKeywords(
103         long companyId, long groupId, java.lang.String keywords,
104         java.lang.Double version, java.lang.String type,
105         java.lang.String structureId, java.lang.String templateId,
106         java.util.Date displayDateGT, java.util.Date displayDateLT,
107         java.lang.Boolean approved, java.lang.Boolean expired,
108         java.util.Date reviewDate, int start, int end,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException {
111         return getFinder()
112                    .findByKeywords(companyId, groupId, keywords, version, type,
113             structureId, templateId, displayDateGT, displayDateLT, approved,
114             expired, reviewDate, start, end, obc);
115     }
116 
117     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByReviewDate(
118         java.util.Date reviewDateLT, java.util.Date reviewDateGT)
119         throws com.liferay.portal.SystemException {
120         return getFinder().findByReviewDate(reviewDateLT, reviewDateGT);
121     }
122 
123     public static com.liferay.portlet.journal.model.JournalArticle findByR_D(
124         long resourcePrimKey, java.util.Date displayDate)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.journal.NoSuchArticleException {
127         return getFinder().findByR_D(resourcePrimKey, displayDate);
128     }
129 
130     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
131         long companyId, long groupId, java.lang.String articleId,
132         java.lang.Double version, java.lang.String title,
133         java.lang.String description, java.lang.String content,
134         java.lang.String type, java.lang.String structureId,
135         java.lang.String templateId, java.util.Date displayDateGT,
136         java.util.Date displayDateLT, java.lang.Boolean approved,
137         java.lang.Boolean expired, java.util.Date reviewDate,
138         boolean andOperator, int start, int end,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException {
141         return getFinder()
142                    .findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId, groupId,
143             articleId, version, title, description, content, type, structureId,
144             templateId, displayDateGT, displayDateLT, approved, expired,
145             reviewDate, andOperator, start, end, obc);
146     }
147 
148     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
149         long companyId, long groupId, java.lang.String articleId,
150         java.lang.Double version, java.lang.String title,
151         java.lang.String description, java.lang.String content,
152         java.lang.String type, java.lang.String[] structureIds,
153         java.lang.String[] templateIds, java.util.Date displayDateGT,
154         java.util.Date displayDateLT, java.lang.Boolean approved,
155         java.lang.Boolean expired, java.util.Date reviewDate,
156         boolean andOperator, int start, int end,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException {
159         return getFinder()
160                    .findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId, groupId,
161             articleId, version, title, description, content, type,
162             structureIds, templateIds, displayDateGT, displayDateLT, approved,
163             expired, reviewDate, andOperator, start, end, obc);
164     }
165 
166     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(
167         long companyId, long groupId, java.lang.String[] articleIds,
168         java.lang.Double version, java.lang.String[] titles,
169         java.lang.String[] descriptions, java.lang.String[] contents,
170         java.lang.String type, java.lang.String[] structureIds,
171         java.lang.String[] templateIds, java.util.Date displayDateGT,
172         java.util.Date displayDateLT, java.lang.Boolean approved,
173         java.lang.Boolean expired, java.util.Date reviewDate,
174         boolean andOperator, int start, int end,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException {
177         return getFinder()
178                    .findByC_G_A_V_T_D_C_T_S_T_D_A_E_R(companyId, groupId,
179             articleIds, version, titles, descriptions, contents, type,
180             structureIds, templateIds, displayDateGT, displayDateLT, approved,
181             expired, reviewDate, andOperator, start, end, obc);
182     }
183 
184     public static JournalArticleFinder getFinder() {
185         return _finder;
186     }
187 
188     public void setFinder(JournalArticleFinder finder) {
189         _finder = finder;
190     }
191 
192     private static JournalArticleFinder _finder;
193 }