1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.service.persistence;
21  
22  /**
23   * <a href="JournalTemplateFinderUtil.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class JournalTemplateFinderUtil {
29      public static int countByKeywords(long companyId, long groupId,
30          java.lang.String keywords, java.lang.String structureId,
31          java.lang.String structureIdComparator)
32          throws com.liferay.portal.SystemException {
33          return getFinder()
34                     .countByKeywords(companyId, groupId, keywords, structureId,
35              structureIdComparator);
36      }
37  
38      public static int countByC_G_T_S_N_D(long companyId, long groupId,
39          java.lang.String templateId, java.lang.String structureId,
40          java.lang.String structureIdComparator, java.lang.String name,
41          java.lang.String description, boolean andOperator)
42          throws com.liferay.portal.SystemException {
43          return getFinder()
44                     .countByC_G_T_S_N_D(companyId, groupId, templateId,
45              structureId, structureIdComparator, name, description, andOperator);
46      }
47  
48      public static int countByC_G_T_S_N_D(long companyId, long groupId,
49          java.lang.String[] templateIds, java.lang.String structureId,
50          java.lang.String structureIdComparator, java.lang.String[] names,
51          java.lang.String[] descriptions, boolean andOperator)
52          throws com.liferay.portal.SystemException {
53          return getFinder()
54                     .countByC_G_T_S_N_D(companyId, groupId, templateIds,
55              structureId, structureIdComparator, names, descriptions, andOperator);
56      }
57  
58      public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByKeywords(
59          long companyId, long groupId, java.lang.String keywords,
60          java.lang.String structureId, java.lang.String structureIdComparator,
61          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
62          throws com.liferay.portal.SystemException {
63          return getFinder()
64                     .findByKeywords(companyId, groupId, keywords, structureId,
65              structureIdComparator, start, end, obc);
66      }
67  
68      public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
69          long companyId, long groupId, java.lang.String templateId,
70          java.lang.String structureId, java.lang.String structureIdComparator,
71          java.lang.String name, java.lang.String description,
72          boolean andOperator, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.SystemException {
75          return getFinder()
76                     .findByC_G_T_S_N_D(companyId, groupId, templateId,
77              structureId, structureIdComparator, name, description, andOperator,
78              start, end, obc);
79      }
80  
81      public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
82          long companyId, long groupId, java.lang.String[] templateIds,
83          java.lang.String structureId, java.lang.String structureIdComparator,
84          java.lang.String[] names, java.lang.String[] descriptions,
85          boolean andOperator, int start, int end,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException {
88          return getFinder()
89                     .findByC_G_T_S_N_D(companyId, groupId, templateIds,
90              structureId, structureIdComparator, names, descriptions,
91              andOperator, start, end, obc);
92      }
93  
94      public static JournalTemplateFinder getFinder() {
95          return _finder;
96      }
97  
98      public void setFinder(JournalTemplateFinder finder) {
99          _finder = finder;
100     }
101 
102     private static JournalTemplateFinder _finder;
103 }