1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.expando.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
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.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.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public void deleteExpandoColumn(
62          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.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.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.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.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.PortalException,
87              com.liferay.portal.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) throws com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public int getExpandoColumnsCount()
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
98          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
99          throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
102         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
103         boolean merge) throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
106         long tableId, java.lang.String name, int type)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
111         long tableId, java.lang.String name, int type,
112         java.lang.Object defaultData)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public void deleteColumn(
117         com.liferay.portlet.expando.model.ExpandoColumn column)
118         throws com.liferay.portal.SystemException;
119 
120     public void deleteColumn(long columnId)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     public void deleteColumn(long tableId, java.lang.String name)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public void deleteColumn(long classNameId, java.lang.String tableName,
129         java.lang.String name)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public void deleteColumn(java.lang.String className,
134         java.lang.String tableName, java.lang.String name)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public void deleteColumns(long tableId)
139         throws com.liferay.portal.SystemException;
140 
141     public void deleteColumns(long classNameId, java.lang.String tableName)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException;
144 
145     public void deleteColumns(java.lang.String className,
146         java.lang.String tableName)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
152         long columnId)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
158         long tableId, java.lang.String name)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
164         long classNameId, java.lang.String tableName, java.lang.String name)
165         throws com.liferay.portal.SystemException;
166 
167     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
169         java.lang.String className, java.lang.String tableName,
170         java.lang.String name) throws com.liferay.portal.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
174         long tableId) throws com.liferay.portal.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
178         long classNameId, java.lang.String tableName)
179         throws com.liferay.portal.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
183         java.lang.String className, java.lang.String tableName)
184         throws com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public int getColumnsCount(long tableId)
188         throws com.liferay.portal.SystemException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public int getColumnsCount(long classNameId, java.lang.String tableName)
192         throws com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public int getColumnsCount(java.lang.String className,
196         java.lang.String tableName) throws com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
200         long classNameId, java.lang.String name)
201         throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
205         java.lang.String className, java.lang.String name)
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
210         long classNameId) throws com.liferay.portal.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
214         java.lang.String className) throws com.liferay.portal.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public int getDefaultTableColumnsCount(long classNameId)
218         throws com.liferay.portal.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public int getDefaultTableColumnsCount(java.lang.String className)
222         throws com.liferay.portal.SystemException;
223 
224     public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
225         long columnId, java.lang.String name, int type)
226         throws com.liferay.portal.PortalException,
227             com.liferay.portal.SystemException;
228 
229     public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
230         long columnId, java.lang.String name, int type,
231         java.lang.Object defaultData)
232         throws com.liferay.portal.PortalException,
233             com.liferay.portal.SystemException;
234 
235     public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
236         long columnId, java.lang.String typeSettings)
237         throws com.liferay.portal.PortalException,
238             com.liferay.portal.SystemException;
239 }