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.ExpandoTableLocalServiceImpl}.
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       ExpandoTableLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface ExpandoTableLocalService {
043            public com.liferay.portlet.expando.model.ExpandoTable addExpandoTable(
044                    com.liferay.portlet.expando.model.ExpandoTable expandoTable)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.expando.model.ExpandoTable createExpandoTable(
048                    long tableId);
049    
050            public void deleteExpandoTable(long tableId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteExpandoTable(
055                    com.liferay.portlet.expando.model.ExpandoTable expandoTable)
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.ExpandoTable getExpandoTable(
081                    long tableId)
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.ExpandoTable> getExpandoTables(
087                    int start, int end)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public int getExpandoTablesCount()
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
095                    com.liferay.portlet.expando.model.ExpandoTable expandoTable)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
099                    com.liferay.portlet.expando.model.ExpandoTable expandoTable,
100                    boolean merge)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
104                    long companyId, long classNameId)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            public com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
109                    long companyId, java.lang.String className)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            public com.liferay.portlet.expando.model.ExpandoTable addTable(
114                    long companyId, long classNameId, java.lang.String name)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * @deprecated {@link #addTable(long, long, String)}
120            */
121            public com.liferay.portlet.expando.model.ExpandoTable addTable(
122                    long classNameId, java.lang.String name)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            public com.liferay.portlet.expando.model.ExpandoTable addTable(
127                    long companyId, java.lang.String className, java.lang.String name)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * @deprecated {@link #addTable(long, String, String)}
133            */
134            public com.liferay.portlet.expando.model.ExpandoTable addTable(
135                    java.lang.String className, java.lang.String name)
136                    throws com.liferay.portal.kernel.exception.PortalException,
137                            com.liferay.portal.kernel.exception.SystemException;
138    
139            public void deleteTable(
140                    com.liferay.portlet.expando.model.ExpandoTable table)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public void deleteTable(long tableId)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            public void deleteTable(long companyId, long classNameId,
148                    java.lang.String name)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException;
151    
152            public void deleteTable(long companyId, java.lang.String className,
153                    java.lang.String name)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            public void deleteTables(long companyId, long classNameId)
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    
160            public void deleteTables(long companyId, java.lang.String className)
161                    throws com.liferay.portal.kernel.exception.SystemException;
162    
163            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164            public com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
165                    long companyId, long classNameId)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException;
168    
169            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170            public com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
171                    long companyId, java.lang.String className)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public com.liferay.portlet.expando.model.ExpandoTable getTable(long tableId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException;
179    
180            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181            public com.liferay.portlet.expando.model.ExpandoTable getTable(
182                    long companyId, long classNameId, java.lang.String name)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException;
185    
186            /**
187            * @deprecated {@link #getTable(long, long, String)}
188            */
189            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190            public com.liferay.portlet.expando.model.ExpandoTable getTable(
191                    long classNameId, java.lang.String name)
192                    throws com.liferay.portal.kernel.exception.PortalException,
193                            com.liferay.portal.kernel.exception.SystemException;
194    
195            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196            public com.liferay.portlet.expando.model.ExpandoTable getTable(
197                    long companyId, java.lang.String className, java.lang.String name)
198                    throws com.liferay.portal.kernel.exception.PortalException,
199                            com.liferay.portal.kernel.exception.SystemException;
200    
201            /**
202            * @deprecated {@link #getTable(long, String, String)}
203            */
204            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205            public com.liferay.portlet.expando.model.ExpandoTable getTable(
206                    java.lang.String className, java.lang.String name)
207                    throws com.liferay.portal.kernel.exception.PortalException,
208                            com.liferay.portal.kernel.exception.SystemException;
209    
210            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211            public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
212                    long companyId, long classNameId)
213                    throws com.liferay.portal.kernel.exception.SystemException;
214    
215            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216            public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
217                    long companyId, java.lang.String className)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            public com.liferay.portlet.expando.model.ExpandoTable updateTable(
221                    long tableId, java.lang.String name)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException;
224    }