1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.expando.service;
24  
25  
26  /**
27   * <a href="ExpandoColumnLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.expando.service.impl.ExpandoColumnLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.expando.service.ExpandoColumnLocalServiceFactory
48   * @see com.liferay.portlet.expando.service.ExpandoColumnLocalServiceUtil
49   *
50   */
51  public interface ExpandoColumnLocalService {
52      public com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
53          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteExpandoColumn(long columnId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteExpandoColumn(
61          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portal.PortalException;
64  
65      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> dynamicQuery(
66          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> dynamicQuery(
70          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
71          int begin, int end) throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
74          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
78          long tableId, java.lang.String name, int type)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portal.PortalException;
81  
82      public void deleteColumn(long columnId)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portal.PortalException;
85  
86      public void deleteColumns(long tableId)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portal.PortalException;
89  
90      public void deleteColumns(java.lang.String className,
91          java.lang.String tableName)
92          throws com.liferay.portal.SystemException,
93              com.liferay.portal.PortalException;
94  
95      public void deleteColumns(long classNameId, java.lang.String tableName)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portal.PortalException;
98  
99      public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
100         long columnId)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portal.PortalException;
103 
104     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
105         long tableId, java.lang.String name)
106         throws com.liferay.portal.SystemException,
107             com.liferay.portal.PortalException;
108 
109     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
110         java.lang.String className, java.lang.String tableName,
111         java.lang.String name)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portal.PortalException;
114 
115     public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
116         long classNameId, java.lang.String tableName, java.lang.String name)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portal.PortalException;
119 
120     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
121         long tableId) throws com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
124         java.lang.String className, java.lang.String tableName)
125         throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
128         long classNameId, java.lang.String tableName)
129         throws com.liferay.portal.SystemException;
130 
131     public int getColumnsCount(long tableId)
132         throws com.liferay.portal.SystemException;
133 
134     public int getColumnsCount(java.lang.String className,
135         java.lang.String tableName) throws com.liferay.portal.SystemException;
136 
137     public int getColumnsCount(long classNameId, java.lang.String tableName)
138         throws com.liferay.portal.SystemException;
139 
140     public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
141         java.lang.String className, java.lang.String name)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portal.PortalException;
144 
145     public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
146         long classNameId, java.lang.String name)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portal.PortalException;
149 
150     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
151         java.lang.String className) throws com.liferay.portal.SystemException;
152 
153     public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
154         long classNameId) throws com.liferay.portal.SystemException;
155 
156     public int getDefaultTableColumnsCount(java.lang.String className)
157         throws com.liferay.portal.SystemException;
158 
159     public int getDefaultTableColumnsCount(long classNameId)
160         throws com.liferay.portal.SystemException;
161 
162     public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
163         long columnId, java.lang.String name, int type)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portal.PortalException;
166 }