001
014
015 package com.liferay.portlet.expando.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class ExpandoValueServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.expando.model.ExpandoValue addValue(
059 long companyId, java.lang.String className, java.lang.String tableName,
060 java.lang.String columnName, long classPK, java.lang.Object data)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 return getService()
064 .addValue(companyId, className, tableName, columnName,
065 classPK, data);
066 }
067
068 public static com.liferay.portlet.expando.model.ExpandoValue addValue(
069 long companyId, java.lang.String className, java.lang.String tableName,
070 java.lang.String columnName, long classPK, java.lang.String data)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return getService()
074 .addValue(companyId, className, tableName, columnName,
075 classPK, data);
076 }
077
078 public static void addValues(long companyId, java.lang.String className,
079 java.lang.String tableName, long classPK,
080 java.util.Map<java.lang.String, java.io.Serializable> attributeValues)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException {
083 getService()
084 .addValues(companyId, className, tableName, classPK, attributeValues);
085 }
086
087 public static java.util.Map<java.lang.String, java.io.Serializable> getData(
088 long companyId, java.lang.String className, java.lang.String tableName,
089 java.util.Collection<java.lang.String> columnNames, long classPK)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 return getService()
093 .getData(companyId, className, tableName, columnNames,
094 classPK);
095 }
096
097 public static java.io.Serializable getData(long companyId,
098 java.lang.String className, java.lang.String tableName,
099 java.lang.String columnName, long classPK)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 return getService()
103 .getData(companyId, className, tableName, columnName, classPK);
104 }
105
106 public static com.liferay.portal.kernel.json.JSONObject getJSONData(
107 long companyId, java.lang.String className, java.lang.String tableName,
108 java.lang.String columnName, long classPK)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException {
111 return getService()
112 .getJSONData(companyId, className, tableName, columnName,
113 classPK);
114 }
115
116 public static ExpandoValueService getService() {
117 if (_service == null) {
118 _service = (ExpandoValueService)PortalBeanLocatorUtil.locate(ExpandoValueService.class.getName());
119
120 ReferenceRegistry.registerReference(ExpandoValueServiceUtil.class,
121 "_service");
122 }
123
124 return _service;
125 }
126
127
130 public void setService(ExpandoValueService service) {
131 }
132
133 private static ExpandoValueService _service;
134 }