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