com.liferay.portlet.shopping.service.persistence.ShoppingItemFinderUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portlet.shopping.service.persistence;
import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;
/**
* @author Brian Wing Shun Chan
*/
public class ShoppingItemFinderUtil {
public static int countByG_C(long groupId,
java.util.List categoryIds)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().countByG_C(groupId, categoryIds);
}
public static int countByFeatured(long groupId, long[] categoryIds)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().countByFeatured(groupId, categoryIds);
}
public static int countByKeywords(long groupId, long[] categoryIds,
java.lang.String keywords)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().countByKeywords(groupId, categoryIds, keywords);
}
public static int countBySale(long groupId, long[] categoryIds)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().countBySale(groupId, categoryIds);
}
public static int filterCountByG_C(long groupId,
java.util.List categoryIds)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().filterCountByG_C(groupId, categoryIds);
}
public static java.util.List findByFeatured(
long groupId, long[] categoryIds, int numOfItems)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().findByFeatured(groupId, categoryIds, numOfItems);
}
public static java.util.List findByKeywords(
long groupId, long[] categoryIds, java.lang.String keywords, int start,
int end) throws com.liferay.portal.kernel.exception.SystemException {
return getFinder()
.findByKeywords(groupId, categoryIds, keywords, start, end);
}
public static java.util.List findBySale(
long groupId, long[] categoryIds, int numOfItems)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().findBySale(groupId, categoryIds, numOfItems);
}
public static ShoppingItemFinder getFinder() {
if (_finder == null) {
_finder = (ShoppingItemFinder)PortalBeanLocatorUtil.locate(ShoppingItemFinder.class.getName());
ReferenceRegistry.registerReference(ShoppingItemFinderUtil.class,
"_finder");
}
return _finder;
}
public void setFinder(ShoppingItemFinder finder) {
_finder = finder;
ReferenceRegistry.registerReference(ShoppingItemFinderUtil.class,
"_finder");
}
private static ShoppingItemFinder _finder;
}