com.liferay.counter.service.persistence.CounterFinderUtil 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.counter.service.persistence;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;
/**
* @author Brian Wing Shun Chan
*/
@ProviderType
public class CounterFinderUtil {
public static void afterPropertiesSet() {
getFinder().afterPropertiesSet();
}
public static java.util.List getNames()
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().getNames();
}
public static java.lang.String getRegistryName() {
return getFinder().getRegistryName();
}
public static long increment()
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().increment();
}
public static long increment(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().increment(name);
}
public static long increment(java.lang.String name, int size)
throws com.liferay.portal.kernel.exception.SystemException {
return getFinder().increment(name, size);
}
public static void invalidate() {
getFinder().invalidate();
}
public static void rename(java.lang.String oldName, java.lang.String newName)
throws com.liferay.portal.kernel.exception.SystemException {
getFinder().rename(oldName, newName);
}
public static void reset(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException {
getFinder().reset(name);
}
public static void reset(java.lang.String name, long size)
throws com.liferay.portal.kernel.exception.SystemException {
getFinder().reset(name, size);
}
public static CounterFinder getFinder() {
if (_finder == null) {
_finder = (CounterFinder)PortalBeanLocatorUtil.locate(CounterFinder.class.getName());
ReferenceRegistry.registerReference(CounterFinderUtil.class,
"_finder");
}
return _finder;
}
public void setFinder(CounterFinder finder) {
_finder = finder;
ReferenceRegistry.registerReference(CounterFinderUtil.class, "_finder");
}
private static CounterFinder _finder;
}