1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.expando.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
22  
23  /**
24   * <a href="ExpandoColumnLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.expando.service.impl.ExpandoColumnLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       ExpandoColumnLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface ExpandoColumnLocalService {
50      public com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
51          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
55          long columnId);
56  
57      public void deleteExpandoColumn(long columnId)
58          throws com.liferay.portal.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteExpandoColumn(
62          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.kernel.exception.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
85          long columnId)
86          throws com.liferay.portal.kernel.exception.PortalException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
91          int start, int end)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public int getExpandoColumnsCount()
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
99          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
103         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
104         boolean merge)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
108         long tableId, java.lang.String name, int type)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException;
111 
112     public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
113         long tableId, java.lang.String name, int type,
114         java.lang.Object defaultData)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException;
117 
118     public void deleteColumn(
119         com.liferay.portlet.expando.model.ExpandoColumn column)
120         throws com.liferay.portal.kernel.exception.SystemException;
121 
122     public void deleteColumn(long columnId)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException;
125 
126     public void deleteColumn(long companyId, long classNameId,
127         java.lang.String tableName, java.lang.String name)
128         throws com.liferay.portal.kernel.exception.PortalException,
129             com.liferay.portal.kernel.exception.SystemException;
130 
131     public void deleteColumn(long tableId, java.lang.String name)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException;
134 
135     public void deleteColumn(long companyId, java.lang.String className,
136         java.lang.String tableName, java.lang.String name)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException;
139 
140     public void deleteColumns(long tableId)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public void deleteColumns(long companyId, long classNameId,
144         java.lang.String tableName)
145         throws com.liferay.portal.kernel.exception.PortalException,
146             com.liferay.portal.kernel.exception.SystemException;
147 
148     public void deleteColumns(long companyId, java.lang.String className,
149         java.lang.String tableName)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException;
152 
153     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
155         long columnId)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException;
158 
159     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
161         long companyId, long classNameId, java.lang.String tableName,
162         java.lang.String name)
163         throws com.liferay.portal.kernel.exception.SystemException;
164 
165     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
167         long tableId, java.lang.String name)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
173         long companyId, java.lang.String className, java.lang.String tableName,
174         java.lang.String name)
175         throws com.liferay.portal.kernel.exception.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
179         long tableId)
180         throws com.liferay.portal.kernel.exception.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
184         long companyId, long classNameId, java.lang.String tableName)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
189         long companyId, java.lang.String className, java.lang.String tableName)
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public int getColumnsCount(long tableId)
194         throws com.liferay.portal.kernel.exception.SystemException;
195 
196     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197     public int getColumnsCount(long companyId, long classNameId,
198         java.lang.String tableName)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202     public int getColumnsCount(long companyId, java.lang.String className,
203         java.lang.String tableName)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207     public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
208         long companyId, long classNameId, java.lang.String name)
209         throws com.liferay.portal.kernel.exception.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
213         long companyId, java.lang.String className, java.lang.String name)
214         throws com.liferay.portal.kernel.exception.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
218         long companyId, long classNameId)
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
223         long companyId, java.lang.String className)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227     public int getDefaultTableColumnsCount(long companyId, long classNameId)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231     public int getDefaultTableColumnsCount(long companyId,
232         java.lang.String className)
233         throws com.liferay.portal.kernel.exception.SystemException;
234 
235     public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
236         long columnId, java.lang.String name, int type)
237         throws com.liferay.portal.kernel.exception.PortalException,
238             com.liferay.portal.kernel.exception.SystemException;
239 
240     public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
241         long columnId, java.lang.String name, int type,
242         java.lang.Object defaultData)
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException;
245 
246     public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
247         long columnId, java.lang.String typeSettings)
248         throws com.liferay.portal.kernel.exception.PortalException,
249             com.liferay.portal.kernel.exception.SystemException;
250 }