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 ExpandoColumnServiceUtil {
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.ExpandoColumn addColumn(
059 long tableId, java.lang.String name, int type)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException {
062 return getService().addColumn(tableId, name, type);
063 }
064
065 public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
066 long tableId, java.lang.String name, int type,
067 java.lang.Object defaultData)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService().addColumn(tableId, name, type, defaultData);
071 }
072
073 public static void deleteColumn(long columnId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 getService().deleteColumn(columnId);
077 }
078
079 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
080 long columnId, java.lang.String name, int type)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException {
083 return getService().updateColumn(columnId, name, type);
084 }
085
086 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
087 long columnId, java.lang.String name, int type,
088 java.lang.Object defaultData)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return getService().updateColumn(columnId, name, type, defaultData);
092 }
093
094 public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
095 long columnId, java.lang.String typeSettings)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return getService().updateTypeSettings(columnId, typeSettings);
099 }
100
101 public static ExpandoColumnService getService() {
102 if (_service == null) {
103 _service = (ExpandoColumnService)PortalBeanLocatorUtil.locate(ExpandoColumnService.class.getName());
104
105 ReferenceRegistry.registerReference(ExpandoColumnServiceUtil.class,
106 "_service");
107 }
108
109 return _service;
110 }
111
112
115 public void setService(ExpandoColumnService service) {
116 }
117
118 private static ExpandoColumnService _service;
119 }