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="JournalFeedFinderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class JournalFeedFinderUtil {
030: public static int countByKeywords(long companyId, long groupId,
031: java.lang.String keywords)
032: throws com.liferay.portal.SystemException {
033: return getFinder()
034: .countByKeywords(companyId, groupId, keywords);
035: }
036:
037: public static int countByC_G_F_N_D(long companyId, long groupId,
038: java.lang.String feedId, java.lang.String name,
039: java.lang.String description, boolean andOperator)
040: throws com.liferay.portal.SystemException {
041: return getFinder().countByC_G_F_N_D(companyId, groupId, feedId,
042: name, description, andOperator);
043: }
044:
045: public static int countByC_G_F_N_D(long companyId, long groupId,
046: java.lang.String[] feedIds, java.lang.String[] names,
047: java.lang.String[] descriptions, boolean andOperator)
048: throws com.liferay.portal.SystemException {
049: return getFinder().countByC_G_F_N_D(companyId, groupId,
050: feedIds, names, descriptions, andOperator);
051: }
052:
053: public static java.util.List findByKeywords(long companyId,
054: long groupId, java.lang.String keywords, int begin,
055: int end,
056: com.liferay.portal.kernel.util.OrderByComparator obc)
057: throws com.liferay.portal.SystemException {
058: return getFinder().findByKeywords(companyId, groupId, keywords,
059: begin, end, obc);
060: }
061:
062: public static java.util.List findByC_G_F_N_D(long companyId,
063: long groupId, java.lang.String feedId,
064: java.lang.String name, java.lang.String description,
065: boolean andOperator, int begin, int end,
066: com.liferay.portal.kernel.util.OrderByComparator obc)
067: throws com.liferay.portal.SystemException {
068: return getFinder().findByC_G_F_N_D(companyId, groupId, feedId,
069: name, description, andOperator, begin, end, obc);
070: }
071:
072: public static java.util.List findByC_G_F_N_D(long companyId,
073: long groupId, java.lang.String[] feedIds,
074: java.lang.String[] names, java.lang.String[] descriptions,
075: boolean andOperator, int begin, int end,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException {
078: return getFinder().findByC_G_F_N_D(companyId, groupId, feedIds,
079: names, descriptions, andOperator, begin, end, obc);
080: }
081:
082: public static JournalFeedFinder getFinder() {
083: return _getUtil()._finder;
084: }
085:
086: public void setFinder(JournalFeedFinder finder) {
087: _finder = finder;
088: }
089:
090: private static JournalFeedFinderUtil _getUtil() {
091: if (_util == null) {
092: _util = (JournalFeedFinderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
093: .locate(_UTIL);
094: }
095:
096: return _util;
097: }
098:
099: private static final String _UTIL = JournalFeedFinderUtil.class
100: .getName();
101: private static JournalFeedFinderUtil _util;
102: private JournalFeedFinder _finder;
103: }
|