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.ExpandoValue;
28  import com.liferay.portlet.expando.service.base.ExpandoValueServiceBaseImpl;
29  
30  import java.util.List;
31  
32  /**
33   * <a href="ExpandoValueServiceImpl.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 ExpandoValueServiceImpl extends ExpandoValueServiceBaseImpl {
40  
41      public ExpandoValue addValue(
42              long columnId, long rowId, long classPK, String data)
43          throws PortalException, SystemException {
44  
45          return expandoValueLocalService.addValue(
46              columnId, rowId, classPK, data);
47      }
48  
49      public void deleteColumnValues(long columnId) throws SystemException {
50          expandoValuePersistence.removeByColumnId(columnId);
51  
52          expandoValueLocalService.deleteColumnValues(columnId);
53      }
54  
55      public void deleteRowValues(long rowId) throws SystemException {
56          expandoValueLocalService.deleteRowValues(rowId);
57      }
58  
59      public void deleteTableValues(long tableId) throws SystemException {
60          expandoValueLocalService.deleteTableValues(tableId);
61      }
62  
63      public void deleteValue(long valueId)
64          throws PortalException, SystemException {
65  
66          expandoValueLocalService.deleteValue(valueId);
67      }
68  
69      public void deleteValues(String className, long classPK)
70          throws PortalException, SystemException {
71  
72          expandoValueLocalService.deleteValues(className, classPK);
73      }
74  
75      public void deleteValues(long classNameId, long classPK)
76          throws PortalException, SystemException {
77  
78          expandoValueLocalService.deleteValues(classNameId, classPK);
79      }
80  
81      public List<ExpandoValue> getColumnValues(long columnId, int begin, int end)
82          throws SystemException {
83  
84          return expandoValueLocalService.getColumnValues(columnId, begin, end);
85      }
86  
87      public List<ExpandoValue> getColumnValues(
88              String className, String tableName, String columnName, int begin,
89              int end)
90          throws SystemException {
91  
92          return expandoValueLocalService.getColumnValues(
93              className, tableName, columnName, begin, end);
94      }
95  
96      public List<ExpandoValue> getColumnValues(
97              long classNameId, String tableName, String columnName, int begin,
98              int end)
99          throws SystemException {
100 
101         return expandoValueLocalService.getColumnValues(
102             classNameId, tableName, columnName, begin, end);
103     }
104 
105     public int getColumnValuesCount(long columnId) throws SystemException {
106         return expandoValueLocalService.getColumnValuesCount(columnId);
107     }
108 
109     public int getColumnValuesCount(
110             String className, String tableName, String columnName)
111         throws SystemException {
112 
113         return expandoValueLocalService.getColumnValuesCount(
114             className, tableName, columnName);
115     }
116 
117     public int getColumnValuesCount(
118             long classNameId, String tableName, String columnName)
119         throws SystemException {
120 
121         return expandoValueLocalService.getColumnValuesCount(
122             classNameId, tableName, columnName);
123     }
124 
125     public List<ExpandoValue> getDefaultTableColumnValues(
126             String className, String columnName, int begin, int end)
127         throws SystemException {
128 
129         return expandoValueLocalService.getDefaultTableColumnValues(
130             className, columnName, begin, end);
131     }
132 
133     public List<ExpandoValue> getDefaultTableColumnValues(
134             long classNameId, String columnName, int begin, int end)
135         throws SystemException {
136 
137         return expandoValueLocalService.getDefaultTableColumnValues(
138             classNameId, columnName, begin, end);
139     }
140 
141     public int getDefaultTableColumnValuesCount(
142             String className, String columnName)
143         throws SystemException {
144 
145         return expandoValueLocalService.getDefaultTableColumnValuesCount(
146             className, columnName);
147     }
148 
149     public int getDefaultTableColumnValuesCount(
150             long classNameId, String columnName)
151         throws SystemException {
152 
153         return expandoValueLocalService.getDefaultTableColumnValuesCount(
154             classNameId, columnName);
155     }
156 
157     public List<ExpandoValue> getRowValues(long rowId) throws SystemException {
158         return expandoValueLocalService.getRowValues(rowId);
159     }
160 
161     public List<ExpandoValue> getRowValues(long rowId, int begin, int end)
162         throws SystemException {
163 
164         return expandoValueLocalService.getRowValues(rowId, begin, end);
165     }
166 
167     public int getRowValuesCount(long rowId) throws SystemException {
168         return expandoValueLocalService.getRowValuesCount(rowId);
169     }
170 
171     public ExpandoValue getValue(long valueId)
172         throws PortalException, SystemException {
173 
174         return expandoValueLocalService.getValue(valueId);
175     }
176 
177     public ExpandoValue getValue(long columnId, long rowId)
178         throws PortalException, SystemException {
179 
180         return expandoValueLocalService.getValue(columnId, rowId);
181     }
182 
183     public ExpandoValue getValue(
184             String className, String tableName, String name, long rowId)
185         throws PortalException, SystemException {
186 
187         return expandoValueLocalService.getValue(
188             className, tableName, name, rowId);
189     }
190 
191     public ExpandoValue getValue(
192             long classNameId, String tableName, String name, long rowId)
193         throws PortalException, SystemException {
194 
195         return expandoValueLocalService.getValue(
196             classNameId, tableName, name, rowId);
197     }
198 
199 }