001
014
015 package com.liferay.portlet.expando.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class ExpandoColumnServiceUtil {
037 public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
038 long tableId, java.lang.String name, int type)
039 throws com.liferay.portal.kernel.exception.PortalException,
040 com.liferay.portal.kernel.exception.SystemException {
041 return getService().addColumn(tableId, name, type);
042 }
043
044 public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
045 long tableId, java.lang.String name, int type,
046 java.lang.Object defaultData)
047 throws com.liferay.portal.kernel.exception.PortalException,
048 com.liferay.portal.kernel.exception.SystemException {
049 return getService().addColumn(tableId, name, type, defaultData);
050 }
051
052 public static void deleteColumn(long columnId)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException {
055 getService().deleteColumn(columnId);
056 }
057
058 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
059 long columnId, java.lang.String name, int type)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException {
062 return getService().updateColumn(columnId, name, type);
063 }
064
065 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
066 long columnId, 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().updateColumn(columnId, name, type, defaultData);
071 }
072
073 public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
074 long columnId, java.lang.String typeSettings)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().updateTypeSettings(columnId, typeSettings);
078 }
079
080 public static ExpandoColumnService getService() {
081 if (_service == null) {
082 _service = (ExpandoColumnService)PortalBeanLocatorUtil.locate(ExpandoColumnService.class.getName());
083 }
084
085 return _service;
086 }
087
088 public void setService(ExpandoColumnService service) {
089 _service = service;
090 }
091
092 private static ExpandoColumnService _service;
093 }