001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.service.persistence;
022:
023: /**
024: * <a href="JournalTemplateFinderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class JournalTemplateFinderUtil {
030: public static int countByKeywords(long companyId, long groupId,
031: java.lang.String keywords, java.lang.String structureId,
032: java.lang.String structureIdComparator)
033: throws com.liferay.portal.SystemException {
034: return getFinder().countByKeywords(companyId, groupId,
035: keywords, structureId, structureIdComparator);
036: }
037:
038: public static int countByC_G_T_S_N_D(long companyId, long groupId,
039: java.lang.String templateId, java.lang.String structureId,
040: java.lang.String structureIdComparator,
041: java.lang.String name, java.lang.String description,
042: boolean andOperator)
043: throws com.liferay.portal.SystemException {
044: return getFinder().countByC_G_T_S_N_D(companyId, groupId,
045: templateId, structureId, structureIdComparator, name,
046: description, andOperator);
047: }
048:
049: public static int countByC_G_T_S_N_D(long companyId, long groupId,
050: java.lang.String[] templateIds,
051: java.lang.String structureId,
052: java.lang.String structureIdComparator,
053: java.lang.String[] names, java.lang.String[] descriptions,
054: boolean andOperator)
055: throws com.liferay.portal.SystemException {
056: return getFinder().countByC_G_T_S_N_D(companyId, groupId,
057: templateIds, structureId, structureIdComparator, names,
058: descriptions, andOperator);
059: }
060:
061: public static java.util.List findByKeywords(long companyId,
062: long groupId, java.lang.String keywords,
063: java.lang.String structureId,
064: java.lang.String structureIdComparator, int begin, int end,
065: com.liferay.portal.kernel.util.OrderByComparator obc)
066: throws com.liferay.portal.SystemException {
067: return getFinder().findByKeywords(companyId, groupId, keywords,
068: structureId, structureIdComparator, begin, end, obc);
069: }
070:
071: public static java.util.List findByC_G_T_S_N_D(long companyId,
072: long groupId, java.lang.String templateId,
073: java.lang.String structureId,
074: java.lang.String structureIdComparator,
075: java.lang.String name, java.lang.String description,
076: boolean andOperator, int begin, int end,
077: com.liferay.portal.kernel.util.OrderByComparator obc)
078: throws com.liferay.portal.SystemException {
079: return getFinder().findByC_G_T_S_N_D(companyId, groupId,
080: templateId, structureId, structureIdComparator, name,
081: description, andOperator, begin, end, obc);
082: }
083:
084: public static java.util.List findByC_G_T_S_N_D(long companyId,
085: long groupId, java.lang.String[] templateIds,
086: java.lang.String structureId,
087: java.lang.String structureIdComparator,
088: java.lang.String[] names, java.lang.String[] descriptions,
089: boolean andOperator, int begin, int end,
090: com.liferay.portal.kernel.util.OrderByComparator obc)
091: throws com.liferay.portal.SystemException {
092: return getFinder().findByC_G_T_S_N_D(companyId, groupId,
093: templateIds, structureId, structureIdComparator, names,
094: descriptions, andOperator, begin, end, obc);
095: }
096:
097: public static JournalTemplateFinder getFinder() {
098: return _getUtil()._finder;
099: }
100:
101: public void setFinder(JournalTemplateFinder finder) {
102: _finder = finder;
103: }
104:
105: private static JournalTemplateFinderUtil _getUtil() {
106: if (_util == null) {
107: _util = (JournalTemplateFinderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
108: .locate(_UTIL);
109: }
110:
111: return _util;
112: }
113:
114: private static final String _UTIL = JournalTemplateFinderUtil.class
115: .getName();
116: private static JournalTemplateFinderUtil _util;
117: private JournalTemplateFinder _finder;
118: }
|