001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for ExpandoValue. This utility wraps
024     * {@link com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see ExpandoValueLocalService
032     * @see com.liferay.portlet.expando.service.base.ExpandoValueLocalServiceBaseImpl
033     * @see com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class ExpandoValueLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Adds the expando value to the database. Also notifies the appropriate model listeners.
046            *
047            * @param expandoValue the expando value
048            * @return the expando value that was added
049            */
050            public static com.liferay.portlet.expando.model.ExpandoValue addExpandoValue(
051                    com.liferay.portlet.expando.model.ExpandoValue expandoValue) {
052                    return getService().addExpandoValue(expandoValue);
053            }
054    
055            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
056                    long classNameId, long tableId, long columnId, long classPK,
057                    java.lang.String data)
058                    throws com.liferay.portal.kernel.exception.PortalException {
059                    return getService()
060                                       .addValue(classNameId, tableId, columnId, classPK, data);
061            }
062    
063            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
064                    long companyId, java.lang.String className, java.lang.String tableName,
065                    java.lang.String columnName, long classPK, short data)
066                    throws com.liferay.portal.kernel.exception.PortalException {
067                    return getService()
068                                       .addValue(companyId, className, tableName, columnName,
069                            classPK, data);
070            }
071    
072            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
073                    long companyId, java.lang.String className, java.lang.String tableName,
074                    java.lang.String columnName, long classPK, int data)
075                    throws com.liferay.portal.kernel.exception.PortalException {
076                    return getService()
077                                       .addValue(companyId, className, tableName, columnName,
078                            classPK, data);
079            }
080    
081            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
082                    long companyId, java.lang.String className, java.lang.String tableName,
083                    java.lang.String columnName, long classPK, java.util.Date[] data)
084                    throws com.liferay.portal.kernel.exception.PortalException {
085                    return getService()
086                                       .addValue(companyId, className, tableName, columnName,
087                            classPK, data);
088            }
089    
090            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
091                    long companyId, java.lang.String className, java.lang.String tableName,
092                    java.lang.String columnName, long classPK, double data)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return getService()
095                                       .addValue(companyId, className, tableName, columnName,
096                            classPK, data);
097            }
098    
099            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
100                    long companyId, java.lang.String className, java.lang.String tableName,
101                    java.lang.String columnName, long classPK, java.lang.Number[] data)
102                    throws com.liferay.portal.kernel.exception.PortalException {
103                    return getService()
104                                       .addValue(companyId, className, tableName, columnName,
105                            classPK, data);
106            }
107    
108            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
109                    long companyId, java.lang.String className, java.lang.String tableName,
110                    java.lang.String columnName, long classPK, double[] data)
111                    throws com.liferay.portal.kernel.exception.PortalException {
112                    return getService()
113                                       .addValue(companyId, className, tableName, columnName,
114                            classPK, data);
115            }
116    
117            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
118                    long companyId, java.lang.String className, java.lang.String tableName,
119                    java.lang.String columnName, long classPK, long[] data)
120                    throws com.liferay.portal.kernel.exception.PortalException {
121                    return getService()
122                                       .addValue(companyId, className, tableName, columnName,
123                            classPK, data);
124            }
125    
126            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
127                    long companyId, java.lang.String className, java.lang.String tableName,
128                    java.lang.String columnName, long classPK, float[] data)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return getService()
131                                       .addValue(companyId, className, tableName, columnName,
132                            classPK, data);
133            }
134    
135            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
136                    long companyId, java.lang.String className, java.lang.String tableName,
137                    java.lang.String columnName, long classPK, boolean data)
138                    throws com.liferay.portal.kernel.exception.PortalException {
139                    return getService()
140                                       .addValue(companyId, className, tableName, columnName,
141                            classPK, data);
142            }
143    
144            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
145                    long companyId, java.lang.String className, java.lang.String tableName,
146                    java.lang.String columnName, long classPK, boolean[] data)
147                    throws com.liferay.portal.kernel.exception.PortalException {
148                    return getService()
149                                       .addValue(companyId, className, tableName, columnName,
150                            classPK, data);
151            }
152    
153            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
154                    long companyId, java.lang.String className, java.lang.String tableName,
155                    java.lang.String columnName, long classPK, java.util.Date data)
156                    throws com.liferay.portal.kernel.exception.PortalException {
157                    return getService()
158                                       .addValue(companyId, className, tableName, columnName,
159                            classPK, data);
160            }
161    
162            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
163                    long companyId, java.lang.String className, java.lang.String tableName,
164                    java.lang.String columnName, long classPK, java.lang.String data)
165                    throws com.liferay.portal.kernel.exception.PortalException {
166                    return getService()
167                                       .addValue(companyId, className, tableName, columnName,
168                            classPK, data);
169            }
170    
171            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
172                    long companyId, java.lang.String className, java.lang.String tableName,
173                    java.lang.String columnName, long classPK, long data)
174                    throws com.liferay.portal.kernel.exception.PortalException {
175                    return getService()
176                                       .addValue(companyId, className, tableName, columnName,
177                            classPK, data);
178            }
179    
180            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
181                    long companyId, java.lang.String className, java.lang.String tableName,
182                    java.lang.String columnName, long classPK, java.lang.Object data)
183                    throws com.liferay.portal.kernel.exception.PortalException {
184                    return getService()
185                                       .addValue(companyId, className, tableName, columnName,
186                            classPK, data);
187            }
188    
189            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
190                    long companyId, java.lang.String className, java.lang.String tableName,
191                    java.lang.String columnName, long classPK, int[] data)
192                    throws com.liferay.portal.kernel.exception.PortalException {
193                    return getService()
194                                       .addValue(companyId, className, tableName, columnName,
195                            classPK, data);
196            }
197    
198            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
199                    long companyId, java.lang.String className, java.lang.String tableName,
200                    java.lang.String columnName, long classPK, java.lang.Number data)
201                    throws com.liferay.portal.kernel.exception.PortalException {
202                    return getService()
203                                       .addValue(companyId, className, tableName, columnName,
204                            classPK, data);
205            }
206    
207            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
208                    long companyId, java.lang.String className, java.lang.String tableName,
209                    java.lang.String columnName, long classPK, float data)
210                    throws com.liferay.portal.kernel.exception.PortalException {
211                    return getService()
212                                       .addValue(companyId, className, tableName, columnName,
213                            classPK, data);
214            }
215    
216            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
217                    long companyId, java.lang.String className, java.lang.String tableName,
218                    java.lang.String columnName, long classPK, java.lang.String[] data)
219                    throws com.liferay.portal.kernel.exception.PortalException {
220                    return getService()
221                                       .addValue(companyId, className, tableName, columnName,
222                            classPK, data);
223            }
224    
225            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
226                    long companyId, java.lang.String className, java.lang.String tableName,
227                    java.lang.String columnName, long classPK, short[] data)
228                    throws com.liferay.portal.kernel.exception.PortalException {
229                    return getService()
230                                       .addValue(companyId, className, tableName, columnName,
231                            classPK, data);
232            }
233    
234            public static com.liferay.portlet.expando.model.ExpandoValue addValue(
235                    long companyId, java.lang.String className, java.lang.String tableName,
236                    java.lang.String columnName, long classPK,
237                    java.util.Map<java.util.Locale, ?> dataMap,
238                    java.util.Locale defautlLocale)
239                    throws com.liferay.portal.kernel.exception.PortalException {
240                    return getService()
241                                       .addValue(companyId, className, tableName, columnName,
242                            classPK, dataMap, defautlLocale);
243            }
244    
245            public static void addValues(long classNameId, long tableId,
246                    java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> columns,
247                    long classPK, java.util.Map<java.lang.String, java.lang.String> data)
248                    throws com.liferay.portal.kernel.exception.PortalException {
249                    getService().addValues(classNameId, tableId, columns, classPK, data);
250            }
251    
252            public static void addValues(long companyId, java.lang.String className,
253                    java.lang.String tableName, long classPK,
254                    java.util.Map<java.lang.String, java.io.Serializable> attributes)
255                    throws com.liferay.portal.kernel.exception.PortalException {
256                    getService()
257                            .addValues(companyId, className, tableName, classPK, attributes);
258            }
259    
260            public static void addValues(long companyId, long classNameId,
261                    java.lang.String tableName, long classPK,
262                    java.util.Map<java.lang.String, java.io.Serializable> attributes)
263                    throws com.liferay.portal.kernel.exception.PortalException {
264                    getService()
265                            .addValues(companyId, classNameId, tableName, classPK, attributes);
266            }
267    
268            /**
269            * Creates a new expando value with the primary key. Does not add the expando value to the database.
270            *
271            * @param valueId the primary key for the new expando value
272            * @return the new expando value
273            */
274            public static com.liferay.portlet.expando.model.ExpandoValue createExpandoValue(
275                    long valueId) {
276                    return getService().createExpandoValue(valueId);
277            }
278    
279            public static void deleteColumnValues(long columnId) {
280                    getService().deleteColumnValues(columnId);
281            }
282    
283            /**
284            * Deletes the expando value from the database. Also notifies the appropriate model listeners.
285            *
286            * @param expandoValue the expando value
287            * @return the expando value that was removed
288            */
289            public static com.liferay.portlet.expando.model.ExpandoValue deleteExpandoValue(
290                    com.liferay.portlet.expando.model.ExpandoValue expandoValue) {
291                    return getService().deleteExpandoValue(expandoValue);
292            }
293    
294            /**
295            * Deletes the expando value with the primary key from the database. Also notifies the appropriate model listeners.
296            *
297            * @param valueId the primary key of the expando value
298            * @return the expando value that was removed
299            * @throws PortalException if a expando value with the primary key could not be found
300            */
301            public static com.liferay.portlet.expando.model.ExpandoValue deleteExpandoValue(
302                    long valueId)
303                    throws com.liferay.portal.kernel.exception.PortalException {
304                    return getService().deleteExpandoValue(valueId);
305            }
306    
307            /**
308            * @throws PortalException
309            */
310            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
311                    com.liferay.portal.model.PersistedModel persistedModel)
312                    throws com.liferay.portal.kernel.exception.PortalException {
313                    return getService().deletePersistedModel(persistedModel);
314            }
315    
316            public static void deleteRowValues(long rowId) {
317                    getService().deleteRowValues(rowId);
318            }
319    
320            public static void deleteTableValues(long tableId) {
321                    getService().deleteTableValues(tableId);
322            }
323    
324            public static void deleteValue(long columnId, long rowId)
325                    throws com.liferay.portal.kernel.exception.PortalException {
326                    getService().deleteValue(columnId, rowId);
327            }
328    
329            public static void deleteValue(long companyId, java.lang.String className,
330                    java.lang.String tableName, java.lang.String columnName, long classPK)
331                    throws com.liferay.portal.kernel.exception.PortalException {
332                    getService()
333                            .deleteValue(companyId, className, tableName, columnName, classPK);
334            }
335    
336            public static void deleteValue(long companyId, long classNameId,
337                    java.lang.String tableName, java.lang.String columnName, long classPK)
338                    throws com.liferay.portal.kernel.exception.PortalException {
339                    getService()
340                            .deleteValue(companyId, classNameId, tableName, columnName, classPK);
341            }
342    
343            public static void deleteValue(
344                    com.liferay.portlet.expando.model.ExpandoValue value) {
345                    getService().deleteValue(value);
346            }
347    
348            public static void deleteValue(long valueId)
349                    throws com.liferay.portal.kernel.exception.PortalException {
350                    getService().deleteValue(valueId);
351            }
352    
353            public static void deleteValues(java.lang.String className, long classPK) {
354                    getService().deleteValues(className, classPK);
355            }
356    
357            public static void deleteValues(long classNameId, long classPK) {
358                    getService().deleteValues(classNameId, classPK);
359            }
360    
361            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
362                    return getService().dynamicQuery();
363            }
364    
365            /**
366            * Performs a dynamic query on the database and returns the matching rows.
367            *
368            * @param dynamicQuery the dynamic query
369            * @return the matching rows
370            */
371            public static <T> java.util.List<T> dynamicQuery(
372                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
373                    return getService().dynamicQuery(dynamicQuery);
374            }
375    
376            /**
377            * Performs a dynamic query on the database and returns a range of the matching rows.
378            *
379            * <p>
380            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoValueModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
381            * </p>
382            *
383            * @param dynamicQuery the dynamic query
384            * @param start the lower bound of the range of model instances
385            * @param end the upper bound of the range of model instances (not inclusive)
386            * @return the range of matching rows
387            */
388            public static <T> java.util.List<T> dynamicQuery(
389                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
390                    int end) {
391                    return getService().dynamicQuery(dynamicQuery, start, end);
392            }
393    
394            /**
395            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
396            *
397            * <p>
398            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoValueModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
399            * </p>
400            *
401            * @param dynamicQuery the dynamic query
402            * @param start the lower bound of the range of model instances
403            * @param end the upper bound of the range of model instances (not inclusive)
404            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
405            * @return the ordered range of matching rows
406            */
407            public static <T> java.util.List<T> dynamicQuery(
408                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
409                    int end,
410                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
411                    return getService()
412                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
413            }
414    
415            /**
416            * Returns the number of rows matching the dynamic query.
417            *
418            * @param dynamicQuery the dynamic query
419            * @return the number of rows matching the dynamic query
420            */
421            public static long dynamicQueryCount(
422                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
423                    return getService().dynamicQueryCount(dynamicQuery);
424            }
425    
426            /**
427            * Returns the number of rows matching the dynamic query.
428            *
429            * @param dynamicQuery the dynamic query
430            * @param projection the projection to apply to the query
431            * @return the number of rows matching the dynamic query
432            */
433            public static long dynamicQueryCount(
434                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
435                    com.liferay.portal.kernel.dao.orm.Projection projection) {
436                    return getService().dynamicQueryCount(dynamicQuery, projection);
437            }
438    
439            public static com.liferay.portlet.expando.model.ExpandoValue fetchExpandoValue(
440                    long valueId) {
441                    return getService().fetchExpandoValue(valueId);
442            }
443    
444            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
445                    return getService().getActionableDynamicQuery();
446            }
447    
448            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
449                    long columnId, int start, int end) {
450                    return getService().getColumnValues(columnId, start, end);
451            }
452    
453            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
454                    long companyId, java.lang.String className, java.lang.String tableName,
455                    java.lang.String columnName, java.lang.String data, int start, int end) {
456                    return getService()
457                                       .getColumnValues(companyId, className, tableName,
458                            columnName, data, start, end);
459            }
460    
461            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
462                    long companyId, java.lang.String className, java.lang.String tableName,
463                    java.lang.String columnName, int start, int end) {
464                    return getService()
465                                       .getColumnValues(companyId, className, tableName,
466                            columnName, start, end);
467            }
468    
469            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
470                    long companyId, long classNameId, java.lang.String tableName,
471                    java.lang.String columnName, java.lang.String data, int start, int end) {
472                    return getService()
473                                       .getColumnValues(companyId, classNameId, tableName,
474                            columnName, data, start, end);
475            }
476    
477            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
478                    long companyId, long classNameId, java.lang.String tableName,
479                    java.lang.String columnName, int start, int end) {
480                    return getService()
481                                       .getColumnValues(companyId, classNameId, tableName,
482                            columnName, start, end);
483            }
484    
485            public static int getColumnValuesCount(long columnId) {
486                    return getService().getColumnValuesCount(columnId);
487            }
488    
489            public static int getColumnValuesCount(long companyId,
490                    java.lang.String className, java.lang.String tableName,
491                    java.lang.String columnName) {
492                    return getService()
493                                       .getColumnValuesCount(companyId, className, tableName,
494                            columnName);
495            }
496    
497            public static int getColumnValuesCount(long companyId,
498                    java.lang.String className, java.lang.String tableName,
499                    java.lang.String columnName, java.lang.String data) {
500                    return getService()
501                                       .getColumnValuesCount(companyId, className, tableName,
502                            columnName, data);
503            }
504    
505            public static int getColumnValuesCount(long companyId, long classNameId,
506                    java.lang.String tableName, java.lang.String columnName) {
507                    return getService()
508                                       .getColumnValuesCount(companyId, classNameId, tableName,
509                            columnName);
510            }
511    
512            public static int getColumnValuesCount(long companyId, long classNameId,
513                    java.lang.String tableName, java.lang.String columnName,
514                    java.lang.String data) {
515                    return getService()
516                                       .getColumnValuesCount(companyId, classNameId, tableName,
517                            columnName, data);
518            }
519    
520            public static java.io.Serializable getData(long companyId,
521                    java.lang.String className, java.lang.String tableName,
522                    java.lang.String columnName, long classPK)
523                    throws com.liferay.portal.kernel.exception.PortalException {
524                    return getService()
525                                       .getData(companyId, className, tableName, columnName, classPK);
526            }
527    
528            public static java.lang.String getData(long companyId,
529                    java.lang.String className, java.lang.String tableName,
530                    java.lang.String columnName, long classPK, java.lang.String defaultData)
531                    throws com.liferay.portal.kernel.exception.PortalException {
532                    return getService()
533                                       .getData(companyId, className, tableName, columnName,
534                            classPK, defaultData);
535            }
536    
537            public static boolean getData(long companyId, java.lang.String className,
538                    java.lang.String tableName, java.lang.String columnName, long classPK,
539                    boolean defaultData)
540                    throws com.liferay.portal.kernel.exception.PortalException {
541                    return getService()
542                                       .getData(companyId, className, tableName, columnName,
543                            classPK, defaultData);
544            }
545    
546            public static java.util.Date[] getData(long companyId,
547                    java.lang.String className, java.lang.String tableName,
548                    java.lang.String columnName, long classPK, java.util.Date[] defaultData)
549                    throws com.liferay.portal.kernel.exception.PortalException {
550                    return getService()
551                                       .getData(companyId, className, tableName, columnName,
552                            classPK, defaultData);
553            }
554    
555            public static double[] getData(long companyId, java.lang.String className,
556                    java.lang.String tableName, java.lang.String columnName, long classPK,
557                    double[] defaultData)
558                    throws com.liferay.portal.kernel.exception.PortalException {
559                    return getService()
560                                       .getData(companyId, className, tableName, columnName,
561                            classPK, defaultData);
562            }
563    
564            public static java.lang.Number[] getData(long companyId,
565                    java.lang.String className, java.lang.String tableName,
566                    java.lang.String columnName, long classPK,
567                    java.lang.Number[] defaultData)
568                    throws com.liferay.portal.kernel.exception.PortalException {
569                    return getService()
570                                       .getData(companyId, className, tableName, columnName,
571                            classPK, defaultData);
572            }
573    
574            public static short getData(long companyId, java.lang.String className,
575                    java.lang.String tableName, java.lang.String columnName, long classPK,
576                    short defaultData)
577                    throws com.liferay.portal.kernel.exception.PortalException {
578                    return getService()
579                                       .getData(companyId, className, tableName, columnName,
580                            classPK, defaultData);
581            }
582    
583            public static float getData(long companyId, java.lang.String className,
584                    java.lang.String tableName, java.lang.String columnName, long classPK,
585                    float defaultData)
586                    throws com.liferay.portal.kernel.exception.PortalException {
587                    return getService()
588                                       .getData(companyId, className, tableName, columnName,
589                            classPK, defaultData);
590            }
591    
592            public static float[] getData(long companyId, java.lang.String className,
593                    java.lang.String tableName, java.lang.String columnName, long classPK,
594                    float[] defaultData)
595                    throws com.liferay.portal.kernel.exception.PortalException {
596                    return getService()
597                                       .getData(companyId, className, tableName, columnName,
598                            classPK, defaultData);
599            }
600    
601            public static java.util.Map<?, ?> getData(long companyId,
602                    java.lang.String className, java.lang.String tableName,
603                    java.lang.String columnName, long classPK,
604                    java.util.Map<?, ?> defaultData)
605                    throws com.liferay.portal.kernel.exception.PortalException {
606                    return getService()
607                                       .getData(companyId, className, tableName, columnName,
608                            classPK, defaultData);
609            }
610    
611            public static java.lang.String[] getData(long companyId,
612                    java.lang.String className, java.lang.String tableName,
613                    java.lang.String columnName, long classPK,
614                    java.lang.String[] defaultData)
615                    throws com.liferay.portal.kernel.exception.PortalException {
616                    return getService()
617                                       .getData(companyId, className, tableName, columnName,
618                            classPK, defaultData);
619            }
620    
621            public static short[] getData(long companyId, java.lang.String className,
622                    java.lang.String tableName, java.lang.String columnName, long classPK,
623                    short[] defaultData)
624                    throws com.liferay.portal.kernel.exception.PortalException {
625                    return getService()
626                                       .getData(companyId, className, tableName, columnName,
627                            classPK, defaultData);
628            }
629    
630            public static long[] getData(long companyId, java.lang.String className,
631                    java.lang.String tableName, java.lang.String columnName, long classPK,
632                    long[] defaultData)
633                    throws com.liferay.portal.kernel.exception.PortalException {
634                    return getService()
635                                       .getData(companyId, className, tableName, columnName,
636                            classPK, defaultData);
637            }
638    
639            public static boolean[] getData(long companyId, java.lang.String className,
640                    java.lang.String tableName, java.lang.String columnName, long classPK,
641                    boolean[] defaultData)
642                    throws com.liferay.portal.kernel.exception.PortalException {
643                    return getService()
644                                       .getData(companyId, className, tableName, columnName,
645                            classPK, defaultData);
646            }
647    
648            public static double getData(long companyId, java.lang.String className,
649                    java.lang.String tableName, java.lang.String columnName, long classPK,
650                    double defaultData)
651                    throws com.liferay.portal.kernel.exception.PortalException {
652                    return getService()
653                                       .getData(companyId, className, tableName, columnName,
654                            classPK, defaultData);
655            }
656    
657            public static long getData(long companyId, java.lang.String className,
658                    java.lang.String tableName, java.lang.String columnName, long classPK,
659                    long defaultData)
660                    throws com.liferay.portal.kernel.exception.PortalException {
661                    return getService()
662                                       .getData(companyId, className, tableName, columnName,
663                            classPK, defaultData);
664            }
665    
666            public static int[] getData(long companyId, java.lang.String className,
667                    java.lang.String tableName, java.lang.String columnName, long classPK,
668                    int[] defaultData)
669                    throws com.liferay.portal.kernel.exception.PortalException {
670                    return getService()
671                                       .getData(companyId, className, tableName, columnName,
672                            classPK, defaultData);
673            }
674    
675            public static java.util.Date getData(long companyId,
676                    java.lang.String className, java.lang.String tableName,
677                    java.lang.String columnName, long classPK, java.util.Date defaultData)
678                    throws com.liferay.portal.kernel.exception.PortalException {
679                    return getService()
680                                       .getData(companyId, className, tableName, columnName,
681                            classPK, defaultData);
682            }
683    
684            public static int getData(long companyId, java.lang.String className,
685                    java.lang.String tableName, java.lang.String columnName, long classPK,
686                    int defaultData)
687                    throws com.liferay.portal.kernel.exception.PortalException {
688                    return getService()
689                                       .getData(companyId, className, tableName, columnName,
690                            classPK, defaultData);
691            }
692    
693            public static java.lang.Number getData(long companyId,
694                    java.lang.String className, java.lang.String tableName,
695                    java.lang.String columnName, long classPK, java.lang.Number defaultData)
696                    throws com.liferay.portal.kernel.exception.PortalException {
697                    return getService()
698                                       .getData(companyId, className, tableName, columnName,
699                            classPK, defaultData);
700            }
701    
702            public static java.util.Map<java.lang.String, java.io.Serializable> getData(
703                    long companyId, java.lang.String className, java.lang.String tableName,
704                    java.util.Collection<java.lang.String> columnNames, long classPK)
705                    throws com.liferay.portal.kernel.exception.PortalException {
706                    return getService()
707                                       .getData(companyId, className, tableName, columnNames,
708                            classPK);
709            }
710    
711            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
712                    long companyId, java.lang.String className,
713                    java.lang.String columnName, int start, int end) {
714                    return getService()
715                                       .getDefaultTableColumnValues(companyId, className,
716                            columnName, start, end);
717            }
718    
719            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
720                    long companyId, long classNameId, java.lang.String columnName,
721                    int start, int end) {
722                    return getService()
723                                       .getDefaultTableColumnValues(companyId, classNameId,
724                            columnName, start, end);
725            }
726    
727            public static int getDefaultTableColumnValuesCount(long companyId,
728                    java.lang.String className, java.lang.String columnName) {
729                    return getService()
730                                       .getDefaultTableColumnValuesCount(companyId, className,
731                            columnName);
732            }
733    
734            public static int getDefaultTableColumnValuesCount(long companyId,
735                    long classNameId, java.lang.String columnName) {
736                    return getService()
737                                       .getDefaultTableColumnValuesCount(companyId, classNameId,
738                            columnName);
739            }
740    
741            /**
742            * Returns the expando value with the primary key.
743            *
744            * @param valueId the primary key of the expando value
745            * @return the expando value
746            * @throws PortalException if a expando value with the primary key could not be found
747            */
748            public static com.liferay.portlet.expando.model.ExpandoValue getExpandoValue(
749                    long valueId)
750                    throws com.liferay.portal.kernel.exception.PortalException {
751                    return getService().getExpandoValue(valueId);
752            }
753    
754            /**
755            * Returns a range of all the expando values.
756            *
757            * <p>
758            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoValueModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
759            * </p>
760            *
761            * @param start the lower bound of the range of expando values
762            * @param end the upper bound of the range of expando values (not inclusive)
763            * @return the range of expando values
764            */
765            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getExpandoValues(
766                    int start, int end) {
767                    return getService().getExpandoValues(start, end);
768            }
769    
770            /**
771            * Returns the number of expando values.
772            *
773            * @return the number of expando values
774            */
775            public static int getExpandoValuesCount() {
776                    return getService().getExpandoValuesCount();
777            }
778    
779            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
780                    return getService().getIndexableActionableDynamicQuery();
781            }
782    
783            /**
784            * Returns the OSGi service identifier.
785            *
786            * @return the OSGi service identifier
787            */
788            public static java.lang.String getOSGiServiceIdentifier() {
789                    return getService().getOSGiServiceIdentifier();
790            }
791    
792            public static com.liferay.portal.model.PersistedModel getPersistedModel(
793                    java.io.Serializable primaryKeyObj)
794                    throws com.liferay.portal.kernel.exception.PortalException {
795                    return getService().getPersistedModel(primaryKeyObj);
796            }
797    
798            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
799                    long companyId, java.lang.String className, java.lang.String tableName,
800                    long classPK, int start, int end) {
801                    return getService()
802                                       .getRowValues(companyId, className, tableName, classPK,
803                            start, end);
804            }
805    
806            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
807                    long companyId, long classNameId, java.lang.String tableName,
808                    long classPK, int start, int end) {
809                    return getService()
810                                       .getRowValues(companyId, classNameId, tableName, classPK,
811                            start, end);
812            }
813    
814            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
815                    long rowId) {
816                    return getService().getRowValues(rowId);
817            }
818    
819            public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
820                    long rowId, int start, int end) {
821                    return getService().getRowValues(rowId, start, end);
822            }
823    
824            public static int getRowValuesCount(long companyId,
825                    java.lang.String className, java.lang.String tableName, long classPK) {
826                    return getService()
827                                       .getRowValuesCount(companyId, className, tableName, classPK);
828            }
829    
830            public static int getRowValuesCount(long companyId, long classNameId,
831                    java.lang.String tableName, long classPK) {
832                    return getService()
833                                       .getRowValuesCount(companyId, classNameId, tableName, classPK);
834            }
835    
836            public static int getRowValuesCount(long rowId) {
837                    return getService().getRowValuesCount(rowId);
838            }
839    
840            public static com.liferay.portlet.expando.model.ExpandoValue getValue(
841                    long columnId, long rowId)
842                    throws com.liferay.portal.kernel.exception.PortalException {
843                    return getService().getValue(columnId, rowId);
844            }
845    
846            public static com.liferay.portlet.expando.model.ExpandoValue getValue(
847                    long companyId, java.lang.String className, java.lang.String tableName,
848                    java.lang.String columnName, long classPK) {
849                    return getService()
850                                       .getValue(companyId, className, tableName, columnName,
851                            classPK);
852            }
853    
854            public static com.liferay.portlet.expando.model.ExpandoValue getValue(
855                    long companyId, long classNameId, java.lang.String tableName,
856                    java.lang.String columnName, long classPK) {
857                    return getService()
858                                       .getValue(companyId, classNameId, tableName, columnName,
859                            classPK);
860            }
861    
862            public static com.liferay.portlet.expando.model.ExpandoValue getValue(
863                    long tableId, long columnId, long classPK) {
864                    return getService().getValue(tableId, columnId, classPK);
865            }
866    
867            public static com.liferay.portlet.expando.model.ExpandoValue getValue(
868                    long valueId)
869                    throws com.liferay.portal.kernel.exception.PortalException {
870                    return getService().getValue(valueId);
871            }
872    
873            /**
874            * Updates the expando value in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
875            *
876            * @param expandoValue the expando value
877            * @return the expando value that was updated
878            */
879            public static com.liferay.portlet.expando.model.ExpandoValue updateExpandoValue(
880                    com.liferay.portlet.expando.model.ExpandoValue expandoValue) {
881                    return getService().updateExpandoValue(expandoValue);
882            }
883    
884            public static ExpandoValueLocalService getService() {
885                    if (_service == null) {
886                            _service = (ExpandoValueLocalService)PortalBeanLocatorUtil.locate(ExpandoValueLocalService.class.getName());
887    
888                            ReferenceRegistry.registerReference(ExpandoValueLocalServiceUtil.class,
889                                    "_service");
890                    }
891    
892                    return _service;
893            }
894    
895            private static ExpandoValueLocalService _service;
896    }