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