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="JournalTemplateFinderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class JournalTemplateFinderUtil {
32      public static int countByKeywords(long companyId, long groupId,
33          java.lang.String keywords, java.lang.String structureId,
34          java.lang.String structureIdComparator)
35          throws com.liferay.portal.SystemException {
36          return getFinder()
37                     .countByKeywords(companyId, groupId, keywords, structureId,
38              structureIdComparator);
39      }
40  
41      public static int countByC_G_T_S_N_D(long companyId, long groupId,
42          java.lang.String templateId, java.lang.String structureId,
43          java.lang.String structureIdComparator, java.lang.String name,
44          java.lang.String description, boolean andOperator)
45          throws com.liferay.portal.SystemException {
46          return getFinder()
47                     .countByC_G_T_S_N_D(companyId, groupId, templateId,
48              structureId, structureIdComparator, name, description, andOperator);
49      }
50  
51      public static int countByC_G_T_S_N_D(long companyId, long groupId,
52          java.lang.String[] templateIds, java.lang.String structureId,
53          java.lang.String structureIdComparator, java.lang.String[] names,
54          java.lang.String[] descriptions, boolean andOperator)
55          throws com.liferay.portal.SystemException {
56          return getFinder()
57                     .countByC_G_T_S_N_D(companyId, groupId, templateIds,
58              structureId, structureIdComparator, names, descriptions, andOperator);
59      }
60  
61      public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByKeywords(
62          long companyId, long groupId, java.lang.String keywords,
63          java.lang.String structureId, java.lang.String structureIdComparator,
64          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
65          throws com.liferay.portal.SystemException {
66          return getFinder()
67                     .findByKeywords(companyId, groupId, keywords, structureId,
68              structureIdComparator, start, end, obc);
69      }
70  
71      public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
72          long companyId, long groupId, java.lang.String templateId,
73          java.lang.String structureId, java.lang.String structureIdComparator,
74          java.lang.String name, java.lang.String description,
75          boolean andOperator, int start, int end,
76          com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.SystemException {
78          return getFinder()
79                     .findByC_G_T_S_N_D(companyId, groupId, templateId,
80              structureId, structureIdComparator, name, description, andOperator,
81              start, end, obc);
82      }
83  
84      public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
85          long companyId, long groupId, java.lang.String[] templateIds,
86          java.lang.String structureId, java.lang.String structureIdComparator,
87          java.lang.String[] names, java.lang.String[] descriptions,
88          boolean andOperator, int start, int end,
89          com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException {
91          return getFinder()
92                     .findByC_G_T_S_N_D(companyId, groupId, templateIds,
93              structureId, structureIdComparator, names, descriptions,
94              andOperator, start, end, obc);
95      }
96  
97      public static JournalTemplateFinder getFinder() {
98          return _finder;
99      }
100 
101     public void setFinder(JournalTemplateFinder finder) {
102         _finder = finder;
103     }
104 
105     private static JournalTemplateFinder _finder;
106 }