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