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.ExpandoRow;
28  import com.liferay.portlet.expando.service.base.ExpandoRowServiceBaseImpl;
29  
30  import java.util.List;
31  
32  /**
33   * <a href="ExpandoRowServiceImpl.java.html"><b><i>View Source</i></b></a>
34   *
35   * @author Brian Wing Shun Chan
36   *
37   */
38  public class ExpandoRowServiceImpl extends ExpandoRowServiceBaseImpl {
39  
40      public ExpandoRow addRow(long tableId)
41          throws PortalException, SystemException {
42  
43          return expandoRowLocalService.addRow(tableId);
44      }
45  
46      public void deleteRow(long rowId)
47          throws PortalException, SystemException {
48  
49          expandoRowLocalService.deleteRow(rowId);
50      }
51  
52      public List<ExpandoRow> getDefaultTableRows(
53              String className, int begin, int end)
54          throws SystemException {
55  
56          return expandoRowLocalService.getDefaultTableRows(
57              className, begin, end);
58      }
59  
60      public List<ExpandoRow> getDefaultTableRows(
61              long classNameId, int begin, int end)
62          throws SystemException {
63  
64          return expandoRowLocalService.getDefaultTableRows(
65              classNameId, begin, end);
66      }
67  
68      public int getDefaultTableRowsCount(String className)
69          throws SystemException {
70  
71          return expandoRowLocalService.getDefaultTableRowsCount(className);
72      }
73  
74      public int getDefaultTableRowsCount(long classNameId)
75          throws SystemException {
76  
77          return expandoRowLocalService.getDefaultTableRowsCount(classNameId);
78      }
79  
80      public List<ExpandoRow> getRows(long tableId, int begin, int end)
81          throws SystemException {
82  
83          return expandoRowLocalService.getRows(tableId, begin, end);
84      }
85  
86      public List<ExpandoRow> getRows(
87              String className, String tableName, int begin, int end)
88          throws SystemException {
89  
90          return expandoRowLocalService.getRows(className, tableName, begin, end);
91      }
92  
93      public List<ExpandoRow> getRows(
94              long classNameId, String tableName, int begin, int end)
95          throws SystemException {
96  
97          return expandoRowLocalService.getRows(
98              classNameId, tableName, begin, end);
99      }
100 
101     public int getRowsCount(long tableId) throws SystemException {
102         return expandoRowLocalService.getRowsCount(tableId);
103     }
104 
105     public int getRowsCount(String className, String tableName)
106         throws SystemException {
107 
108         return expandoRowLocalService.getRowsCount(className, tableName);
109     }
110 
111     public int getRowsCount(long classNameId, String tableName)
112         throws SystemException {
113 
114         return expandoRowLocalService.getRowsCount(classNameId, tableName);
115     }
116 
117 }