1
22
23 package com.liferay.portlet.expando.service;
24
25
26
47 public class ExpandoColumnServiceUtil {
48 public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
49 long tableId, java.lang.String name, int type)
50 throws com.liferay.portal.PortalException,
51 com.liferay.portal.SystemException {
52 return getService().addColumn(tableId, name, type);
53 }
54
55 public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
56 long tableId, java.lang.String name, int type,
57 java.lang.Object defaultData)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException {
60 return getService().addColumn(tableId, name, type, defaultData);
61 }
62
63 public static void deleteColumn(long columnId)
64 throws com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException {
66 getService().deleteColumn(columnId);
67 }
68
69 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
70 long columnId, java.lang.String name, int type)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException {
73 return getService().updateColumn(columnId, name, type);
74 }
75
76 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
77 long columnId, java.lang.String name, int type,
78 java.lang.Object defaultData)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException {
81 return getService().updateColumn(columnId, name, type, defaultData);
82 }
83
84 public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
85 long columnId, java.lang.String typeSettings)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException {
88 return getService().updateTypeSettings(columnId, typeSettings);
89 }
90
91 public static ExpandoColumnService getService() {
92 if (_service == null) {
93 throw new RuntimeException("ExpandoColumnService is not set");
94 }
95
96 return _service;
97 }
98
99 public void setService(ExpandoColumnService service) {
100 _service = service;
101 }
102
103 private static ExpandoColumnService _service;
104 }