001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link ExpandoValueService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       ExpandoValueService
030     * @generated
031     */
032    public class ExpandoValueServiceUtil {
033            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
034                    long companyId, java.lang.String className, java.lang.String tableName,
035                    java.lang.String columnName, long classPK, java.lang.Object data)
036                    throws com.liferay.portal.kernel.exception.PortalException,
037                            com.liferay.portal.kernel.exception.SystemException {
038                    return getService()
039                                       .addValue(companyId, className, tableName, columnName,
040                            classPK, data);
041            }
042    
043            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
044                    long companyId, java.lang.String className, java.lang.String tableName,
045                    java.lang.String columnName, long classPK, java.lang.String data)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    return getService()
049                                       .addValue(companyId, className, tableName, columnName,
050                            classPK, data);
051            }
052    
053            public static java.io.Serializable getData(long companyId,
054                    java.lang.String className, java.lang.String tableName,
055                    java.lang.String columnName, long classPK)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    return getService()
059                                       .getData(companyId, className, tableName, columnName, classPK);
060            }
061    
062            public static com.liferay.portal.kernel.json.JSONObject getJSONData(
063                    long companyId, java.lang.String className, java.lang.String tableName,
064                    java.lang.String columnName, long classPK)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return getService()
068                                       .getJSONData(companyId, className, tableName, columnName,
069                            classPK);
070            }
071    
072            public static ExpandoValueService getService() {
073                    if (_service == null) {
074                            _service = (ExpandoValueService)PortalBeanLocatorUtil.locate(ExpandoValueService.class.getName());
075                    }
076    
077                    return _service;
078            }
079    
080            public void setService(ExpandoValueService service) {
081                    _service = service;
082            }
083    
084            private static ExpandoValueService _service;
085    }