001
014
015 package com.liferay.portlet.expando.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface ExpandoColumnLocalService {
043
050 public com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
051 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
061 long columnId);
062
063
070 public void deleteExpandoColumn(long columnId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteExpandoColumn(
081 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
156 long columnId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
174 int start, int end)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public int getExpandoColumnsCount()
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187
194 public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
195 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198
206 public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
207 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
208 boolean merge)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
212 long tableId, java.lang.String name, int type)
213 throws com.liferay.portal.kernel.exception.PortalException,
214 com.liferay.portal.kernel.exception.SystemException;
215
216 public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
217 long tableId, java.lang.String name, int type,
218 java.lang.Object defaultData)
219 throws com.liferay.portal.kernel.exception.PortalException,
220 com.liferay.portal.kernel.exception.SystemException;
221
222 public void deleteColumn(
223 com.liferay.portlet.expando.model.ExpandoColumn column)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226 public void deleteColumn(long columnId)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException;
229
230 public void deleteColumn(long companyId, long classNameId,
231 java.lang.String tableName, java.lang.String name)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235 public void deleteColumn(long tableId, java.lang.String name)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException;
238
239 public void deleteColumn(long companyId, java.lang.String className,
240 java.lang.String tableName, java.lang.String name)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException;
243
244 public void deleteColumns(long tableId)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247 public void deleteColumns(long companyId, long classNameId,
248 java.lang.String tableName)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 public void deleteColumns(long companyId, java.lang.String className,
253 java.lang.String tableName)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
259 long columnId)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
265 long companyId, long classNameId, java.lang.String tableName,
266 java.lang.String name)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
271 long tableId, java.lang.String name)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
277 long companyId, java.lang.String className, java.lang.String tableName,
278 java.lang.String name)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
283 long tableId)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
288 long companyId, long classNameId, java.lang.String tableName)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
293 long companyId, java.lang.String className, java.lang.String tableName)
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public int getColumnsCount(long tableId)
298 throws com.liferay.portal.kernel.exception.SystemException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public int getColumnsCount(long companyId, long classNameId,
302 java.lang.String tableName)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public int getColumnsCount(long companyId, java.lang.String className,
307 java.lang.String tableName)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
312 long companyId, long classNameId, java.lang.String name)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
317 long companyId, java.lang.String className, java.lang.String name)
318 throws com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
322 long companyId, long classNameId)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
327 long companyId, java.lang.String className)
328 throws com.liferay.portal.kernel.exception.SystemException;
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public int getDefaultTableColumnsCount(long companyId, long classNameId)
332 throws com.liferay.portal.kernel.exception.SystemException;
333
334 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335 public int getDefaultTableColumnsCount(long companyId,
336 java.lang.String className)
337 throws com.liferay.portal.kernel.exception.SystemException;
338
339 public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
340 long columnId, java.lang.String name, int type)
341 throws com.liferay.portal.kernel.exception.PortalException,
342 com.liferay.portal.kernel.exception.SystemException;
343
344 public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
345 long columnId, java.lang.String name, int type,
346 java.lang.Object defaultData)
347 throws com.liferay.portal.kernel.exception.PortalException,
348 com.liferay.portal.kernel.exception.SystemException;
349
350 public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
351 long columnId, java.lang.String typeSettings)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException;
354 }