001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portlet.expando.service.impl.ExpandoColumnLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * 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.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       ExpandoColumnLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface ExpandoColumnLocalService {
043            public com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
044                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
048                    long columnId);
049    
050            public void deleteExpandoColumn(long columnId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteExpandoColumn(
055                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            @SuppressWarnings("unchecked")
059            public java.util.List dynamicQuery(
060                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException;
067    
068            @SuppressWarnings("unchecked")
069            public java.util.List dynamicQuery(
070                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071                    int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public long dynamicQueryCount(
076                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
081                    long columnId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
087                    int start, int end)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public int getExpandoColumnsCount()
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
095                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
099                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
100                    boolean merge)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
104                    long tableId, java.lang.String name, int type)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
109                    long tableId, java.lang.String name, int type,
110                    java.lang.Object defaultData)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            public void deleteColumn(
115                    com.liferay.portlet.expando.model.ExpandoColumn column)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            public void deleteColumn(long columnId)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            public void deleteColumn(long companyId, long classNameId,
123                    java.lang.String tableName, java.lang.String name)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException;
126    
127            public void deleteColumn(long tableId, 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 companyId, java.lang.String className,
132                    java.lang.String tableName, java.lang.String name)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException;
135    
136            public void deleteColumns(long tableId)
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public void deleteColumns(long companyId, long classNameId,
140                    java.lang.String tableName)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException;
143    
144            public void deleteColumns(long companyId, java.lang.String className,
145                    java.lang.String tableName)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException;
148    
149            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
151                    long columnId)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException;
154    
155            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
157                    long companyId, long classNameId, java.lang.String tableName,
158                    java.lang.String name)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
163                    long tableId, java.lang.String name)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    
167            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
169                    long companyId, java.lang.String className, java.lang.String tableName,
170                    java.lang.String name)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
175                    long tableId)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
180                    long companyId, long classNameId, java.lang.String tableName)
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
185                    long companyId, java.lang.String className, java.lang.String tableName)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189            public int getColumnsCount(long tableId)
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193            public int getColumnsCount(long companyId, long classNameId,
194                    java.lang.String tableName)
195                    throws com.liferay.portal.kernel.exception.SystemException;
196    
197            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198            public int getColumnsCount(long companyId, java.lang.String className,
199                    java.lang.String tableName)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
204                    long companyId, long classNameId, java.lang.String name)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
209                    long companyId, java.lang.String className, java.lang.String name)
210                    throws com.liferay.portal.kernel.exception.SystemException;
211    
212            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
214                    long companyId, long classNameId)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
219                    long companyId, java.lang.String className)
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223            public int getDefaultTableColumnsCount(long companyId, long classNameId)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227            public int getDefaultTableColumnsCount(long companyId,
228                    java.lang.String className)
229                    throws com.liferay.portal.kernel.exception.SystemException;
230    
231            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
232                    long columnId, java.lang.String name, int type)
233                    throws com.liferay.portal.kernel.exception.PortalException,
234                            com.liferay.portal.kernel.exception.SystemException;
235    
236            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
237                    long columnId, java.lang.String name, int type,
238                    java.lang.Object defaultData)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
243                    long columnId, java.lang.String typeSettings)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException;
246    }