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="ExpandoValueLocalServiceUtil.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.ExpandoValueLocalService</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.ExpandoValueLocalServiceFactory</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.ExpandoValueLocalService
50   * @see com.liferay.portlet.expando.service.ExpandoValueLocalServiceFactory
51   *
52   */
53  public class ExpandoValueLocalServiceUtil {
54      public static com.liferay.portlet.expando.model.ExpandoValue addExpandoValue(
55          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
56          throws com.liferay.portal.SystemException {
57          ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
58  
59          return expandoValueLocalService.addExpandoValue(expandoValue);
60      }
61  
62      public static void deleteExpandoValue(long valueId)
63          throws com.liferay.portal.PortalException,
64              com.liferay.portal.SystemException {
65          ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
66  
67          expandoValueLocalService.deleteExpandoValue(valueId);
68      }
69  
70      public static void deleteExpandoValue(
71          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
72          throws com.liferay.portal.PortalException,
73              com.liferay.portal.SystemException {
74          ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
75  
76          expandoValueLocalService.deleteExpandoValue(expandoValue);
77      }
78  
79      public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> dynamicQuery(
80          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
81          throws com.liferay.portal.SystemException {
82          ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
83  
84          return expandoValueLocalService.dynamicQuery(queryInitializer);
85      }
86  
87      public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> dynamicQuery(
88          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89          int begin, int end) throws com.liferay.portal.SystemException {
90          ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
91  
92          return expandoValueLocalService.dynamicQuery(queryInitializer, begin,
93              end);
94      }
95  
96      public static com.liferay.portlet.expando.model.ExpandoValue updateExpandoValue(
97          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
98          throws com.liferay.portal.SystemException {
99          ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
100 
101         return expandoValueLocalService.updateExpandoValue(expandoValue);
102     }
103 
104     public static com.liferay.portlet.expando.model.ExpandoValue addValue(
105         long columnId, long rowId, long classPK, java.lang.String data)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
109 
110         return expandoValueLocalService.addValue(columnId, rowId, classPK, data);
111     }
112 
113     public static void deleteColumnValues(long columnId)
114         throws com.liferay.portal.SystemException {
115         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
116 
117         expandoValueLocalService.deleteColumnValues(columnId);
118     }
119 
120     public static void deleteRowValues(long rowId)
121         throws com.liferay.portal.SystemException {
122         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
123 
124         expandoValueLocalService.deleteRowValues(rowId);
125     }
126 
127     public static void deleteTableValues(long tableId)
128         throws com.liferay.portal.SystemException {
129         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
130 
131         expandoValueLocalService.deleteTableValues(tableId);
132     }
133 
134     public static void deleteValue(long valueId)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
138 
139         expandoValueLocalService.deleteValue(valueId);
140     }
141 
142     public static void deleteValues(java.lang.String className, long classPK)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException {
145         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
146 
147         expandoValueLocalService.deleteValues(className, classPK);
148     }
149 
150     public static void deleteValues(long classNameId, long classPK)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
154 
155         expandoValueLocalService.deleteValues(classNameId, classPK);
156     }
157 
158     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
159         long columnId, int begin, int end)
160         throws com.liferay.portal.SystemException {
161         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
162 
163         return expandoValueLocalService.getColumnValues(columnId, begin, end);
164     }
165 
166     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
167         java.lang.String className, java.lang.String tableName,
168         java.lang.String columnName, int begin, int end)
169         throws com.liferay.portal.SystemException {
170         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
171 
172         return expandoValueLocalService.getColumnValues(className, tableName,
173             columnName, begin, end);
174     }
175 
176     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
177         long classNameId, java.lang.String tableName,
178         java.lang.String columnName, int begin, int end)
179         throws com.liferay.portal.SystemException {
180         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
181 
182         return expandoValueLocalService.getColumnValues(classNameId, tableName,
183             columnName, begin, end);
184     }
185 
186     public static int getColumnValuesCount(long columnId)
187         throws com.liferay.portal.SystemException {
188         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
189 
190         return expandoValueLocalService.getColumnValuesCount(columnId);
191     }
192 
193     public static int getColumnValuesCount(java.lang.String className,
194         java.lang.String tableName, java.lang.String columnName)
195         throws com.liferay.portal.SystemException {
196         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
197 
198         return expandoValueLocalService.getColumnValuesCount(className,
199             tableName, columnName);
200     }
201 
202     public static int getColumnValuesCount(long classNameId,
203         java.lang.String tableName, java.lang.String columnName)
204         throws com.liferay.portal.SystemException {
205         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
206 
207         return expandoValueLocalService.getColumnValuesCount(classNameId,
208             tableName, columnName);
209     }
210 
211     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
212         java.lang.String className, java.lang.String columnName, int begin,
213         int end) throws com.liferay.portal.SystemException {
214         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
215 
216         return expandoValueLocalService.getDefaultTableColumnValues(className,
217             columnName, begin, end);
218     }
219 
220     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
221         long classNameId, java.lang.String columnName, int begin, int end)
222         throws com.liferay.portal.SystemException {
223         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
224 
225         return expandoValueLocalService.getDefaultTableColumnValues(classNameId,
226             columnName, begin, end);
227     }
228 
229     public static int getDefaultTableColumnValuesCount(
230         java.lang.String className, java.lang.String columnName)
231         throws com.liferay.portal.SystemException {
232         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
233 
234         return expandoValueLocalService.getDefaultTableColumnValuesCount(className,
235             columnName);
236     }
237 
238     public static int getDefaultTableColumnValuesCount(long classNameId,
239         java.lang.String columnName) throws com.liferay.portal.SystemException {
240         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
241 
242         return expandoValueLocalService.getDefaultTableColumnValuesCount(classNameId,
243             columnName);
244     }
245 
246     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
247         long rowId) throws com.liferay.portal.SystemException {
248         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
249 
250         return expandoValueLocalService.getRowValues(rowId);
251     }
252 
253     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
254         long rowId, int begin, int end)
255         throws com.liferay.portal.SystemException {
256         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
257 
258         return expandoValueLocalService.getRowValues(rowId, begin, end);
259     }
260 
261     public static int getRowValuesCount(long rowId)
262         throws com.liferay.portal.SystemException {
263         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
264 
265         return expandoValueLocalService.getRowValuesCount(rowId);
266     }
267 
268     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
269         long valueId)
270         throws com.liferay.portal.PortalException,
271             com.liferay.portal.SystemException {
272         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
273 
274         return expandoValueLocalService.getValue(valueId);
275     }
276 
277     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
278         long columnId, long rowId)
279         throws com.liferay.portal.PortalException,
280             com.liferay.portal.SystemException {
281         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
282 
283         return expandoValueLocalService.getValue(columnId, rowId);
284     }
285 
286     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
287         java.lang.String className, java.lang.String tableName,
288         java.lang.String name, long rowId)
289         throws com.liferay.portal.PortalException,
290             com.liferay.portal.SystemException {
291         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
292 
293         return expandoValueLocalService.getValue(className, tableName, name,
294             rowId);
295     }
296 
297     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
298         long classNameId, java.lang.String tableName, java.lang.String name,
299         long rowId)
300         throws com.liferay.portal.PortalException,
301             com.liferay.portal.SystemException {
302         ExpandoValueLocalService expandoValueLocalService = ExpandoValueLocalServiceFactory.getService();
303 
304         return expandoValueLocalService.getValue(classNameId, tableName, name,
305             rowId);
306     }
307 }