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="ExpandoValueServiceUtil.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 class provides static methods for the
36   * <code>com.liferay.portlet.expando.service.ExpandoValueService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * <p>
43   * <code>com.liferay.portlet.expando.service.ExpandoValueServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.expando.service.ExpandoValueService
50   * @see com.liferay.portlet.expando.service.ExpandoValueServiceFactory
51   *
52   */
53  public class ExpandoValueServiceUtil {
54      public static com.liferay.portlet.expando.model.ExpandoValue addValue(
55          long columnId, long rowId, long classPK, java.lang.String data)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException, java.rmi.RemoteException {
58          ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
59  
60          return expandoValueService.addValue(columnId, rowId, classPK, data);
61      }
62  
63      public static void deleteColumnValues(long columnId)
64          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
65          ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
66  
67          expandoValueService.deleteColumnValues(columnId);
68      }
69  
70      public static void deleteRowValues(long rowId)
71          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
72          ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
73  
74          expandoValueService.deleteRowValues(rowId);
75      }
76  
77      public static void deleteTableValues(long tableId)
78          throws com.liferay.portal.SystemException, java.rmi.RemoteException {
79          ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
80  
81          expandoValueService.deleteTableValues(tableId);
82      }
83  
84      public static void deleteValue(long valueId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException, java.rmi.RemoteException {
87          ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
88  
89          expandoValueService.deleteValue(valueId);
90      }
91  
92      public static void deleteValues(java.lang.String className, long classPK)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException, java.rmi.RemoteException {
95          ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
96  
97          expandoValueService.deleteValues(className, classPK);
98      }
99  
100     public static void deleteValues(long classNameId, long classPK)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException, java.rmi.RemoteException {
103         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
104 
105         expandoValueService.deleteValues(classNameId, classPK);
106     }
107 
108     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
109         long columnId, int begin, int end)
110         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
111         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
112 
113         return expandoValueService.getColumnValues(columnId, begin, end);
114     }
115 
116     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
117         java.lang.String className, java.lang.String tableName,
118         java.lang.String columnName, int begin, int end)
119         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
120         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
121 
122         return expandoValueService.getColumnValues(className, tableName,
123             columnName, begin, end);
124     }
125 
126     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
127         long classNameId, java.lang.String tableName,
128         java.lang.String columnName, int begin, int end)
129         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
130         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
131 
132         return expandoValueService.getColumnValues(classNameId, tableName,
133             columnName, begin, end);
134     }
135 
136     public static int getColumnValuesCount(long columnId)
137         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
138         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
139 
140         return expandoValueService.getColumnValuesCount(columnId);
141     }
142 
143     public static int getColumnValuesCount(java.lang.String className,
144         java.lang.String tableName, java.lang.String columnName)
145         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
146         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
147 
148         return expandoValueService.getColumnValuesCount(className, tableName,
149             columnName);
150     }
151 
152     public static int getColumnValuesCount(long classNameId,
153         java.lang.String tableName, java.lang.String columnName)
154         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
155         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
156 
157         return expandoValueService.getColumnValuesCount(classNameId, tableName,
158             columnName);
159     }
160 
161     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
162         java.lang.String className, java.lang.String columnName, int begin,
163         int end)
164         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
165         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
166 
167         return expandoValueService.getDefaultTableColumnValues(className,
168             columnName, begin, end);
169     }
170 
171     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
172         long classNameId, java.lang.String columnName, int begin, int end)
173         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
174         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
175 
176         return expandoValueService.getDefaultTableColumnValues(classNameId,
177             columnName, begin, end);
178     }
179 
180     public static int getDefaultTableColumnValuesCount(
181         java.lang.String className, java.lang.String columnName)
182         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
183         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
184 
185         return expandoValueService.getDefaultTableColumnValuesCount(className,
186             columnName);
187     }
188 
189     public static int getDefaultTableColumnValuesCount(long classNameId,
190         java.lang.String columnName)
191         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
192         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
193 
194         return expandoValueService.getDefaultTableColumnValuesCount(classNameId,
195             columnName);
196     }
197 
198     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
199         long rowId)
200         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
201         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
202 
203         return expandoValueService.getRowValues(rowId);
204     }
205 
206     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
207         long rowId, int begin, int end)
208         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
209         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
210 
211         return expandoValueService.getRowValues(rowId, begin, end);
212     }
213 
214     public static int getRowValuesCount(long rowId)
215         throws com.liferay.portal.SystemException, java.rmi.RemoteException {
216         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
217 
218         return expandoValueService.getRowValuesCount(rowId);
219     }
220 
221     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
222         long valueId)
223         throws com.liferay.portal.PortalException,
224             com.liferay.portal.SystemException, java.rmi.RemoteException {
225         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
226 
227         return expandoValueService.getValue(valueId);
228     }
229 
230     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
231         long columnId, long rowId)
232         throws com.liferay.portal.PortalException,
233             com.liferay.portal.SystemException, java.rmi.RemoteException {
234         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
235 
236         return expandoValueService.getValue(columnId, rowId);
237     }
238 
239     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
240         java.lang.String className, java.lang.String tableName,
241         java.lang.String name, long rowId)
242         throws com.liferay.portal.PortalException,
243             com.liferay.portal.SystemException, java.rmi.RemoteException {
244         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
245 
246         return expandoValueService.getValue(className, tableName, name, rowId);
247     }
248 
249     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
250         long classNameId, java.lang.String tableName, java.lang.String name,
251         long rowId)
252         throws com.liferay.portal.PortalException,
253             com.liferay.portal.SystemException, java.rmi.RemoteException {
254         ExpandoValueService expandoValueService = ExpandoValueServiceFactory.getService();
255 
256         return expandoValueService.getValue(classNameId, tableName, name, rowId);
257     }
258 }