001
014
015 package com.liferay.portlet.expando.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class ExpandoColumnServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
063 long tableId, java.lang.String name, int type)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 return getService().addColumn(tableId, name, type);
067 }
068
069 public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
070 long tableId, java.lang.String name, int type,
071 java.lang.Object defaultData)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException {
074 return getService().addColumn(tableId, name, type, defaultData);
075 }
076
077 public static void deleteColumn(long columnId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 getService().deleteColumn(columnId);
081 }
082
083 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
084 long columnId, java.lang.String name, int type)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return getService().updateColumn(columnId, name, type);
088 }
089
090 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
091 long columnId, java.lang.String name, int type,
092 java.lang.Object defaultData)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 return getService().updateColumn(columnId, name, type, defaultData);
096 }
097
098 public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
099 long columnId, java.lang.String typeSettings)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 return getService().updateTypeSettings(columnId, typeSettings);
103 }
104
105 public static ExpandoColumnService getService() {
106 if (_service == null) {
107 _service = (ExpandoColumnService)PortalBeanLocatorUtil.locate(ExpandoColumnService.class.getName());
108
109 ReferenceRegistry.registerReference(ExpandoColumnServiceUtil.class,
110 "_service");
111 }
112
113 return _service;
114 }
115
116
119 public void setService(ExpandoColumnService service) {
120 }
121
122 private static ExpandoColumnService _service;
123 }