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.impl;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portlet.expando.model.ExpandoColumn;
28  import com.liferay.portlet.expando.service.base.ExpandoColumnServiceBaseImpl;
29  
30  import java.util.List;
31  
32  /**
33   * <a href="ExpandoColumnServiceImpl.java.html"><b><i>View Source</i></b></a>
34   *
35   * @author Raymond Augé
36   * @author Brian Wing Shun Chan
37   *
38   */
39  public class ExpandoColumnServiceImpl extends ExpandoColumnServiceBaseImpl {
40  
41      public ExpandoColumn addColumn(long tableId, String name, int type)
42          throws PortalException, SystemException {
43  
44          return expandoColumnLocalService.addColumn(tableId, name, type);
45      }
46  
47      public void deleteColumn(long columnId)
48          throws PortalException, SystemException {
49  
50          expandoColumnLocalService.deleteColumn(columnId);
51      }
52  
53      public void deleteColumns(long tableId)
54          throws PortalException, SystemException {
55  
56          expandoColumnLocalService.deleteColumns(tableId);
57      }
58  
59      public void deleteColumns(String className, String tableName)
60          throws PortalException, SystemException {
61  
62          expandoColumnLocalService.deleteColumns(className, tableName);
63      }
64  
65      public void deleteColumns(long classNameId, String tableName)
66          throws PortalException, SystemException {
67  
68          expandoColumnLocalService.deleteColumns(classNameId, tableName);
69      }
70  
71      public ExpandoColumn getColumn(long columnId)
72          throws PortalException, SystemException {
73  
74          return expandoColumnLocalService.getColumn(columnId);
75      }
76  
77      public ExpandoColumn getColumn(long tableId, String name)
78          throws PortalException, SystemException {
79  
80          return expandoColumnLocalService.getColumn(tableId, name);
81      }
82  
83      public ExpandoColumn getColumn(
84              String className, String tableName, String name)
85          throws PortalException, SystemException {
86  
87          return expandoColumnLocalService.getColumn(className, tableName, name);
88      }
89  
90      public ExpandoColumn getColumn(
91              long classNameId, String tableName, String name)
92          throws PortalException, SystemException {
93  
94          return expandoColumnLocalService.getColumn(
95              classNameId, tableName, name);
96      }
97  
98      public List<ExpandoColumn> getColumns(long tableId)
99          throws SystemException {
100 
101         return expandoColumnLocalService.getColumns(tableId);
102     }
103 
104     public List<ExpandoColumn> getColumns(String className, String tableName)
105         throws SystemException {
106 
107         return expandoColumnLocalService.getColumns(className, tableName);
108     }
109 
110     public List<ExpandoColumn> getColumns(long classNameId, String tableName)
111         throws SystemException {
112 
113         return expandoColumnLocalService.getColumns(classNameId, tableName);
114     }
115 
116     public int getColumnsCount(long tableId) throws SystemException {
117         return expandoColumnLocalService.getColumnsCount(tableId);
118     }
119 
120     public int getColumnsCount(String className, String tableName)
121         throws SystemException {
122 
123         return expandoColumnLocalService.getColumnsCount(className, tableName);
124     }
125 
126     public int getColumnsCount(long classNameId, String tableName)
127         throws SystemException {
128 
129         return expandoColumnLocalService.getColumnsCount(
130             classNameId, tableName);
131     }
132 
133     public ExpandoColumn getDefaultTableColumn(String className, String name)
134         throws PortalException, SystemException {
135 
136         return expandoColumnLocalService.getDefaultTableColumn(className, name);
137     }
138 
139     public ExpandoColumn getDefaultTableColumn(long classNameId, String name)
140         throws PortalException, SystemException {
141 
142         return expandoColumnLocalService.getDefaultTableColumn(
143             classNameId, name);
144     }
145 
146     public List<ExpandoColumn> getDefaultTableColumns(String className)
147         throws SystemException {
148 
149         return expandoColumnLocalService.getDefaultTableColumns(className);
150     }
151 
152     public List<ExpandoColumn> getDefaultTableColumns(long classNameId)
153         throws SystemException {
154 
155         return expandoColumnLocalService.getDefaultTableColumns(classNameId);
156     }
157 
158     public int getDefaultTableColumnsCount(String className)
159         throws SystemException {
160 
161         return expandoColumnLocalService.getDefaultTableColumnsCount(className);
162     }
163 
164     public int getDefaultTableColumnsCount(long classNameId)
165         throws SystemException {
166 
167         return expandoColumnLocalService.getDefaultTableColumnsCount(
168             classNameId);
169     }
170 
171     public ExpandoColumn updateColumn(long columnId, String name, int type)
172         throws PortalException, SystemException {
173 
174         return expandoColumnLocalService.updateColumn(columnId, name, type);
175     }
176 
177 }