1
22
23 package com.liferay.portlet.expando.service;
24
25 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26
27
47 public class ExpandoColumnLocalServiceUtil {
48 public static com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
49 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
50 throws com.liferay.portal.SystemException {
51 return getService().addExpandoColumn(expandoColumn);
52 }
53
54 public static com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
55 long columnId) {
56 return getService().createExpandoColumn(columnId);
57 }
58
59 public static void deleteExpandoColumn(long columnId)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException {
62 getService().deleteExpandoColumn(columnId);
63 }
64
65 public static void deleteExpandoColumn(
66 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
67 throws com.liferay.portal.SystemException {
68 getService().deleteExpandoColumn(expandoColumn);
69 }
70
71 public static java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73 throws com.liferay.portal.SystemException {
74 return getService().dynamicQuery(dynamicQuery);
75 }
76
77 public static java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException {
80 return getService().dynamicQuery(dynamicQuery, start, end);
81 }
82
83 public static com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
84 long columnId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException {
87 return getService().getExpandoColumn(columnId);
88 }
89
90 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
91 int start, int end) throws com.liferay.portal.SystemException {
92 return getService().getExpandoColumns(start, end);
93 }
94
95 public static int getExpandoColumnsCount()
96 throws com.liferay.portal.SystemException {
97 return getService().getExpandoColumnsCount();
98 }
99
100 public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
101 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
102 throws com.liferay.portal.SystemException {
103 return getService().updateExpandoColumn(expandoColumn);
104 }
105
106 public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
107 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
108 boolean merge) throws com.liferay.portal.SystemException {
109 return getService().updateExpandoColumn(expandoColumn, merge);
110 }
111
112 public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
113 long tableId, java.lang.String name, int type)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException {
116 return getService().addColumn(tableId, name, type);
117 }
118
119 public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
120 long tableId, java.lang.String name, int type,
121 java.lang.Object defaultData)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException {
124 return getService().addColumn(tableId, name, type, defaultData);
125 }
126
127 public static void deleteColumn(
128 com.liferay.portlet.expando.model.ExpandoColumn column)
129 throws com.liferay.portal.SystemException {
130 getService().deleteColumn(column);
131 }
132
133 public static void deleteColumn(long columnId)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 getService().deleteColumn(columnId);
137 }
138
139 public static void deleteColumn(long tableId, java.lang.String name)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException {
142 getService().deleteColumn(tableId, name);
143 }
144
145 public static void deleteColumn(long classNameId,
146 java.lang.String tableName, java.lang.String name)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException {
149 getService().deleteColumn(classNameId, tableName, name);
150 }
151
152 public static void deleteColumn(java.lang.String className,
153 java.lang.String tableName, java.lang.String name)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 getService().deleteColumn(className, tableName, name);
157 }
158
159 public static void deleteColumns(long tableId)
160 throws com.liferay.portal.SystemException {
161 getService().deleteColumns(tableId);
162 }
163
164 public static void deleteColumns(long classNameId,
165 java.lang.String tableName)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException {
168 getService().deleteColumns(classNameId, tableName);
169 }
170
171 public static void deleteColumns(java.lang.String className,
172 java.lang.String tableName)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException {
175 getService().deleteColumns(className, tableName);
176 }
177
178 public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
179 long columnId)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException {
182 return getService().getColumn(columnId);
183 }
184
185 public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
186 long tableId, java.lang.String name)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException {
189 return getService().getColumn(tableId, name);
190 }
191
192 public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
193 long classNameId, java.lang.String tableName, java.lang.String name)
194 throws com.liferay.portal.SystemException {
195 return getService().getColumn(classNameId, tableName, name);
196 }
197
198 public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
199 java.lang.String className, java.lang.String tableName,
200 java.lang.String name) throws com.liferay.portal.SystemException {
201 return getService().getColumn(className, tableName, name);
202 }
203
204 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
205 long tableId) throws com.liferay.portal.SystemException {
206 return getService().getColumns(tableId);
207 }
208
209 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
210 long classNameId, java.lang.String tableName)
211 throws com.liferay.portal.SystemException {
212 return getService().getColumns(classNameId, tableName);
213 }
214
215 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
216 java.lang.String className, java.lang.String tableName)
217 throws com.liferay.portal.SystemException {
218 return getService().getColumns(className, tableName);
219 }
220
221 public static int getColumnsCount(long tableId)
222 throws com.liferay.portal.SystemException {
223 return getService().getColumnsCount(tableId);
224 }
225
226 public static int getColumnsCount(long classNameId,
227 java.lang.String tableName) throws com.liferay.portal.SystemException {
228 return getService().getColumnsCount(classNameId, tableName);
229 }
230
231 public static int getColumnsCount(java.lang.String className,
232 java.lang.String tableName) throws com.liferay.portal.SystemException {
233 return getService().getColumnsCount(className, tableName);
234 }
235
236 public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
237 long classNameId, java.lang.String name)
238 throws com.liferay.portal.SystemException {
239 return getService().getDefaultTableColumn(classNameId, name);
240 }
241
242 public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
243 java.lang.String className, java.lang.String name)
244 throws com.liferay.portal.SystemException {
245 return getService().getDefaultTableColumn(className, name);
246 }
247
248 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
249 long classNameId) throws com.liferay.portal.SystemException {
250 return getService().getDefaultTableColumns(classNameId);
251 }
252
253 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
254 java.lang.String className) throws com.liferay.portal.SystemException {
255 return getService().getDefaultTableColumns(className);
256 }
257
258 public static int getDefaultTableColumnsCount(long classNameId)
259 throws com.liferay.portal.SystemException {
260 return getService().getDefaultTableColumnsCount(classNameId);
261 }
262
263 public static int getDefaultTableColumnsCount(java.lang.String className)
264 throws com.liferay.portal.SystemException {
265 return getService().getDefaultTableColumnsCount(className);
266 }
267
268 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
269 long columnId, java.lang.String name, int type)
270 throws com.liferay.portal.PortalException,
271 com.liferay.portal.SystemException {
272 return getService().updateColumn(columnId, name, type);
273 }
274
275 public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
276 long columnId, java.lang.String name, int type,
277 java.lang.Object defaultData)
278 throws com.liferay.portal.PortalException,
279 com.liferay.portal.SystemException {
280 return getService().updateColumn(columnId, name, type, defaultData);
281 }
282
283 public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
284 long columnId, java.lang.String typeSettings)
285 throws com.liferay.portal.PortalException,
286 com.liferay.portal.SystemException {
287 return getService().updateTypeSettings(columnId, typeSettings);
288 }
289
290 public static ExpandoColumnLocalService getService() {
291 if (_service == null) {
292 _service = (ExpandoColumnLocalService)PortalBeanLocatorUtil.locate(ExpandoColumnLocalService.class.getName());
293 }
294
295 return _service;
296 }
297
298 public void setService(ExpandoColumnLocalService service) {
299 _service = service;
300 }
301
302 private static ExpandoColumnLocalService _service;
303 }