1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  public class JournalTemplateFinderUtil {
31      public static int countByKeywords(long companyId, long groupId,
32          java.lang.String keywords, java.lang.String structureId,
33          java.lang.String structureIdComparator)
34          throws com.liferay.portal.SystemException {
35          return getFinder()
36                     .countByKeywords(companyId, groupId, keywords, structureId,
37              structureIdComparator);
38      }
39  
40      public static int countByC_G_T_S_N_D(long companyId, long groupId,
41          java.lang.String templateId, java.lang.String structureId,
42          java.lang.String structureIdComparator, java.lang.String name,
43          java.lang.String description, boolean andOperator)
44          throws com.liferay.portal.SystemException {
45          return getFinder()
46                     .countByC_G_T_S_N_D(companyId, groupId, templateId,
47              structureId, structureIdComparator, name, description, andOperator);
48      }
49  
50      public static int countByC_G_T_S_N_D(long companyId, long groupId,
51          java.lang.String[] templateIds, java.lang.String structureId,
52          java.lang.String structureIdComparator, java.lang.String[] names,
53          java.lang.String[] descriptions, boolean andOperator)
54          throws com.liferay.portal.SystemException {
55          return getFinder()
56                     .countByC_G_T_S_N_D(companyId, groupId, templateIds,
57              structureId, structureIdComparator, names, descriptions, andOperator);
58      }
59  
60      public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByKeywords(
61          long companyId, long groupId, java.lang.String keywords,
62          java.lang.String structureId, java.lang.String structureIdComparator,
63          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
64          throws com.liferay.portal.SystemException {
65          return getFinder()
66                     .findByKeywords(companyId, groupId, keywords, structureId,
67              structureIdComparator, start, end, obc);
68      }
69  
70      public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
71          long companyId, long groupId, java.lang.String templateId,
72          java.lang.String structureId, java.lang.String structureIdComparator,
73          java.lang.String name, java.lang.String description,
74          boolean andOperator, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException {
77          return getFinder()
78                     .findByC_G_T_S_N_D(companyId, groupId, templateId,
79              structureId, structureIdComparator, name, description, andOperator,
80              start, end, obc);
81      }
82  
83      public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByC_G_T_S_N_D(
84          long companyId, long groupId, java.lang.String[] templateIds,
85          java.lang.String structureId, java.lang.String structureIdComparator,
86          java.lang.String[] names, java.lang.String[] descriptions,
87          boolean andOperator, int start, int end,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException {
90          return getFinder()
91                     .findByC_G_T_S_N_D(companyId, groupId, templateIds,
92              structureId, structureIdComparator, names, descriptions,
93              andOperator, start, end, obc);
94      }
95  
96      public static JournalTemplateFinder getFinder() {
97          return _finder;
98      }
99  
100     public void setFinder(JournalTemplateFinder finder) {
101         _finder = finder;
102     }
103 
104     private static JournalTemplateFinder _finder;
105 }