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