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      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
75          long columnId)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException;
78  
79      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
81          int start, int end) throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public int getExpandoColumnsCount()
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
88          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
89          throws com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
92          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
93          boolean merge) throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
96          long tableId, java.lang.String name, int type)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException;
99  
100     public void deleteColumn(
101         com.liferay.portlet.expando.model.ExpandoColumn column)
102         throws com.liferay.portal.SystemException;
103 
104     public void deleteColumn(long columnId)
105         throws com.liferay.portal.PortalException,
106             com.liferay.portal.SystemException;
107 
108     public void deleteColumn(long tableId, java.lang.String name)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException;
111 
112     public void deleteColumn(long classNameId, java.lang.String tableName,
113         java.lang.String name)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException;
116 
117     public void deleteColumn(java.lang.String className,
118         java.lang.String tableName, java.lang.String name)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     public void deleteColumns(long tableId)
123         throws com.liferay.portal.SystemException;
124 
125     public void deleteColumns(long classNameId, java.lang.String tableName)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException;
128 
129     public void deleteColumns(java.lang.String className,
130         java.lang.String tableName)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
136         long columnId)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
142         long tableId, java.lang.String name)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
148         long classNameId, java.lang.String tableName, java.lang.String name)
149         throws com.liferay.portal.SystemException;
150 
151     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
153         java.lang.String className, java.lang.String tableName,
154         java.lang.String name) throws com.liferay.portal.SystemException;
155 
156     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
158         long tableId) throws com.liferay.portal.SystemException;
159 
160     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
162         long classNameId, java.lang.String tableName)
163         throws com.liferay.portal.SystemException;
164 
165     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
167         java.lang.String className, java.lang.String tableName)
168         throws com.liferay.portal.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public int getColumnsCount(long tableId)
172         throws com.liferay.portal.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public int getColumnsCount(long classNameId, java.lang.String tableName)
176         throws com.liferay.portal.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public int getColumnsCount(java.lang.String className,
180         java.lang.String tableName) throws com.liferay.portal.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
184         long classNameId, java.lang.String name)
185         throws com.liferay.portal.SystemException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
189         java.lang.String className, java.lang.String name)
190         throws com.liferay.portal.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
194         long classNameId) throws com.liferay.portal.SystemException;
195 
196     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
198         java.lang.String className) throws com.liferay.portal.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public int getDefaultTableColumnsCount(long classNameId)
202         throws com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public int getDefaultTableColumnsCount(java.lang.String className)
206         throws com.liferay.portal.SystemException;
207 
208     public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
209         long columnId, java.lang.String name, int type)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException;
212 }