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.dynamicdatalists.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 DDLRecord. This utility wraps
024     * {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordLocalServiceImpl} 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 DDLRecordLocalService
032     * @see com.liferay.portlet.dynamicdatalists.service.base.DDLRecordLocalServiceBaseImpl
033     * @see com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class DDLRecordLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Adds the d d l record to the database. Also notifies the appropriate model listeners.
046            *
047            * @param ddlRecord the d d l record
048            * @return the d d l record that was added
049            */
050            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addDDLRecord(
051                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord) {
052                    return getService().addDDLRecord(ddlRecord);
053            }
054    
055            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
056                    long userId, long groupId, long recordSetId, int displayIndex,
057                    com.liferay.portlet.dynamicdatamapping.storage.DDMFormValues ddmFormValues,
058                    com.liferay.portal.service.ServiceContext serviceContext)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    return getService()
061                                       .addRecord(userId, groupId, recordSetId, displayIndex,
062                            ddmFormValues, serviceContext);
063            }
064    
065            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
066                    long userId, long groupId, long recordSetId, int displayIndex,
067                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
068                    com.liferay.portal.service.ServiceContext serviceContext)
069                    throws com.liferay.portal.kernel.exception.PortalException {
070                    return getService()
071                                       .addRecord(userId, groupId, recordSetId, displayIndex,
072                            fields, serviceContext);
073            }
074    
075            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
076                    long userId, long groupId, long recordSetId, int displayIndex,
077                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
078                    com.liferay.portal.service.ServiceContext serviceContext)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    return getService()
081                                       .addRecord(userId, groupId, recordSetId, displayIndex,
082                            fieldsMap, serviceContext);
083            }
084    
085            /**
086            * Creates a new d d l record with the primary key. Does not add the d d l record to the database.
087            *
088            * @param recordId the primary key for the new d d l record
089            * @return the new d d l record
090            */
091            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord createDDLRecord(
092                    long recordId) {
093                    return getService().createDDLRecord(recordId);
094            }
095    
096            /**
097            * Deletes the d d l record from the database. Also notifies the appropriate model listeners.
098            *
099            * @param ddlRecord the d d l record
100            * @return the d d l record that was removed
101            */
102            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteDDLRecord(
103                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord) {
104                    return getService().deleteDDLRecord(ddlRecord);
105            }
106    
107            /**
108            * Deletes the d d l record with the primary key from the database. Also notifies the appropriate model listeners.
109            *
110            * @param recordId the primary key of the d d l record
111            * @return the d d l record that was removed
112            * @throws PortalException if a d d l record with the primary key could not be found
113            */
114            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteDDLRecord(
115                    long recordId)
116                    throws com.liferay.portal.kernel.exception.PortalException {
117                    return getService().deleteDDLRecord(recordId);
118            }
119    
120            /**
121            * @throws PortalException
122            */
123            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
124                    com.liferay.portal.model.PersistedModel persistedModel)
125                    throws com.liferay.portal.kernel.exception.PortalException {
126                    return getService().deletePersistedModel(persistedModel);
127            }
128    
129            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteRecord(
130                    com.liferay.portlet.dynamicdatalists.model.DDLRecord record)
131                    throws com.liferay.portal.kernel.exception.PortalException {
132                    return getService().deleteRecord(record);
133            }
134    
135            public static void deleteRecord(long recordId)
136                    throws com.liferay.portal.kernel.exception.PortalException {
137                    getService().deleteRecord(recordId);
138            }
139    
140            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteRecordLocale(
141                    long recordId, java.util.Locale locale,
142                    com.liferay.portal.service.ServiceContext serviceContext)
143                    throws com.liferay.portal.kernel.exception.PortalException {
144                    return getService().deleteRecordLocale(recordId, locale, serviceContext);
145            }
146    
147            public static void deleteRecords(long recordSetId)
148                    throws com.liferay.portal.kernel.exception.PortalException {
149                    getService().deleteRecords(recordSetId);
150            }
151    
152            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
153                    return getService().dynamicQuery();
154            }
155    
156            /**
157            * Performs a dynamic query on the database and returns the matching rows.
158            *
159            * @param dynamicQuery the dynamic query
160            * @return the matching rows
161            */
162            public static <T> java.util.List<T> dynamicQuery(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
164                    return getService().dynamicQuery(dynamicQuery);
165            }
166    
167            /**
168            * Performs a dynamic query on the database and returns a range of the matching rows.
169            *
170            * <p>
171            * 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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.
172            * </p>
173            *
174            * @param dynamicQuery the dynamic query
175            * @param start the lower bound of the range of model instances
176            * @param end the upper bound of the range of model instances (not inclusive)
177            * @return the range of matching rows
178            */
179            public static <T> java.util.List<T> dynamicQuery(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
181                    int end) {
182                    return getService().dynamicQuery(dynamicQuery, start, end);
183            }
184    
185            /**
186            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
187            *
188            * <p>
189            * 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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.
190            * </p>
191            *
192            * @param dynamicQuery the dynamic query
193            * @param start the lower bound of the range of model instances
194            * @param end the upper bound of the range of model instances (not inclusive)
195            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
196            * @return the ordered range of matching rows
197            */
198            public static <T> java.util.List<T> dynamicQuery(
199                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
200                    int end,
201                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
202                    return getService()
203                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
204            }
205    
206            /**
207            * Returns the number of rows matching the dynamic query.
208            *
209            * @param dynamicQuery the dynamic query
210            * @return the number of rows matching the dynamic query
211            */
212            public static long dynamicQueryCount(
213                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
214                    return getService().dynamicQueryCount(dynamicQuery);
215            }
216    
217            /**
218            * Returns the number of rows matching the dynamic query.
219            *
220            * @param dynamicQuery the dynamic query
221            * @param projection the projection to apply to the query
222            * @return the number of rows matching the dynamic query
223            */
224            public static long dynamicQueryCount(
225                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
226                    com.liferay.portal.kernel.dao.orm.Projection projection) {
227                    return getService().dynamicQueryCount(dynamicQuery, projection);
228            }
229    
230            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchDDLRecord(
231                    long recordId) {
232                    return getService().fetchDDLRecord(recordId);
233            }
234    
235            /**
236            * Returns the d d l record matching the UUID and group.
237            *
238            * @param uuid the d d l record's UUID
239            * @param groupId the primary key of the group
240            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
241            */
242            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchDDLRecordByUuidAndGroupId(
243                    java.lang.String uuid, long groupId) {
244                    return getService().fetchDDLRecordByUuidAndGroupId(uuid, groupId);
245            }
246    
247            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchRecord(
248                    long recordId) {
249                    return getService().fetchRecord(recordId);
250            }
251    
252            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
253                    return getService().getActionableDynamicQuery();
254            }
255    
256            /**
257            * Returns the Spring bean ID for this bean.
258            *
259            * @return the Spring bean ID for this bean
260            */
261            public static java.lang.String getBeanIdentifier() {
262                    return getService().getBeanIdentifier();
263            }
264    
265            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getCompanyRecords(
266                    long companyId, int status, int scope, int start, int end,
267                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) {
268                    return getService()
269                                       .getCompanyRecords(companyId, status, scope, start, end,
270                            orderByComparator);
271            }
272    
273            public static int getCompanyRecordsCount(long companyId, int status,
274                    int scope) {
275                    return getService().getCompanyRecordsCount(companyId, status, scope);
276            }
277    
278            /**
279            * Returns the d d l record with the primary key.
280            *
281            * @param recordId the primary key of the d d l record
282            * @return the d d l record
283            * @throws PortalException if a d d l record with the primary key could not be found
284            */
285            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord getDDLRecord(
286                    long recordId)
287                    throws com.liferay.portal.kernel.exception.PortalException {
288                    return getService().getDDLRecord(recordId);
289            }
290    
291            /**
292            * Returns the d d l record matching the UUID and group.
293            *
294            * @param uuid the d d l record's UUID
295            * @param groupId the primary key of the group
296            * @return the matching d d l record
297            * @throws PortalException if a matching d d l record could not be found
298            */
299            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord getDDLRecordByUuidAndGroupId(
300                    java.lang.String uuid, long groupId)
301                    throws com.liferay.portal.kernel.exception.PortalException {
302                    return getService().getDDLRecordByUuidAndGroupId(uuid, groupId);
303            }
304    
305            /**
306            * Returns a range of all the d d l records.
307            *
308            * <p>
309            * 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.dynamicdatalists.model.impl.DDLRecordModelImpl}. 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.
310            * </p>
311            *
312            * @param start the lower bound of the range of d d l records
313            * @param end the upper bound of the range of d d l records (not inclusive)
314            * @return the range of d d l records
315            */
316            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getDDLRecords(
317                    int start, int end) {
318                    return getService().getDDLRecords(start, end);
319            }
320    
321            /**
322            * Returns all the d d l records matching the UUID and company.
323            *
324            * @param uuid the UUID of the d d l records
325            * @param companyId the primary key of the company
326            * @return the matching d d l records, or an empty list if no matches were found
327            */
328            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getDDLRecordsByUuidAndCompanyId(
329                    java.lang.String uuid, long companyId) {
330                    return getService().getDDLRecordsByUuidAndCompanyId(uuid, companyId);
331            }
332    
333            /**
334            * Returns a range of d d l records matching the UUID and company.
335            *
336            * @param uuid the UUID of the d d l records
337            * @param companyId the primary key of the company
338            * @param start the lower bound of the range of d d l records
339            * @param end the upper bound of the range of d d l records (not inclusive)
340            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
341            * @return the range of matching d d l records, or an empty list if no matches were found
342            */
343            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getDDLRecordsByUuidAndCompanyId(
344                    java.lang.String uuid, long companyId, int start, int end,
345                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) {
346                    return getService()
347                                       .getDDLRecordsByUuidAndCompanyId(uuid, companyId, start,
348                            end, orderByComparator);
349            }
350    
351            /**
352            * Returns the number of d d l records.
353            *
354            * @return the number of d d l records
355            */
356            public static int getDDLRecordsCount() {
357                    return getService().getDDLRecordsCount();
358            }
359    
360            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
361                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
362                    return getService().getExportActionableDynamicQuery(portletDataContext);
363            }
364    
365            /**
366            * @deprecated As of 7.0.0, replaced by {@link
367            DDLRecordVersionLocalServiceImpl#getLatestRecordVersion(
368            long)}
369            */
370            @Deprecated
371            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getLatestRecordVersion(
372                    long recordId)
373                    throws com.liferay.portal.kernel.exception.PortalException {
374                    return getService().getLatestRecordVersion(recordId);
375            }
376    
377            public static java.lang.Long[] getMinAndMaxCompanyRecordIds(
378                    long companyId, int status, int scope) {
379                    return getService()
380                                       .getMinAndMaxCompanyRecordIds(companyId, status, scope);
381            }
382    
383            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getMinAndMaxCompanyRecords(
384                    long companyId, int status, int scope, long minRecordId,
385                    long maxRecordId) {
386                    return getService()
387                                       .getMinAndMaxCompanyRecords(companyId, status, scope,
388                            minRecordId, maxRecordId);
389            }
390    
391            public static com.liferay.portal.model.PersistedModel getPersistedModel(
392                    java.io.Serializable primaryKeyObj)
393                    throws com.liferay.portal.kernel.exception.PortalException {
394                    return getService().getPersistedModel(primaryKeyObj);
395            }
396    
397            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
398                    long recordId)
399                    throws com.liferay.portal.kernel.exception.PortalException {
400                    return getService().getRecord(recordId);
401            }
402    
403            /**
404            * @deprecated As of 7.0.0, replaced by {@link
405            DDLRecordVersionLocalServiceImpl#getRecordVersion(long,
406            String)}
407            */
408            @Deprecated
409            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
410                    long recordId, java.lang.String version)
411                    throws com.liferay.portal.kernel.exception.PortalException {
412                    return getService().getRecordVersion(recordId, version);
413            }
414    
415            /**
416            * @deprecated As of 7.0.0, replaced by {@link
417            DDLRecordVersionLocalServiceImpl#getRecordVersion(long)}
418            */
419            @Deprecated
420            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion(
421                    long recordVersionId)
422                    throws com.liferay.portal.kernel.exception.PortalException {
423                    return getService().getRecordVersion(recordVersionId);
424            }
425    
426            /**
427            * @deprecated As of 7.0.0, replaced by {@link
428            DDLRecordVersionLocalServiceImpl#getRecordVersions(long, int,
429            int, OrderByComparator)}
430            */
431            @Deprecated
432            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions(
433                    long recordId, int start, int end,
434                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator) {
435                    return getService()
436                                       .getRecordVersions(recordId, start, end, orderByComparator);
437            }
438    
439            /**
440            * @deprecated As of 7.0.0, replaced by {@link
441            DDLRecordVersionLocalServiceImpl#getRecordVersionsCount(
442            long)}
443            */
444            @Deprecated
445            public static int getRecordVersionsCount(long recordId) {
446                    return getService().getRecordVersionsCount(recordId);
447            }
448    
449            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
450                    long recordSetId) {
451                    return getService().getRecords(recordSetId);
452            }
453    
454            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
455                    long recordSetId, int status, int start, int end,
456                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecord> orderByComparator) {
457                    return getService()
458                                       .getRecords(recordSetId, status, start, end,
459                            orderByComparator);
460            }
461    
462            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords(
463                    long recordSetId, long userId) {
464                    return getService().getRecords(recordSetId, userId);
465            }
466    
467            public static int getRecordsCount(long recordSetId, int status) {
468                    return getService().getRecordsCount(recordSetId, status);
469            }
470    
471            public static void revertRecord(long userId, long recordId,
472                    java.lang.String version,
473                    com.liferay.portal.service.ServiceContext serviceContext)
474                    throws com.liferay.portal.kernel.exception.PortalException {
475                    getService().revertRecord(userId, recordId, version, serviceContext);
476            }
477    
478            /**
479            * @deprecated As of 7.0.0, replaced by {@link #revertRecord(long, long,
480            String, ServiceContext)}
481            */
482            @Deprecated
483            public static void revertRecordVersion(long userId, long recordId,
484                    java.lang.String version,
485                    com.liferay.portal.service.ServiceContext serviceContext)
486                    throws com.liferay.portal.kernel.exception.PortalException {
487                    getService()
488                            .revertRecordVersion(userId, recordId, version, serviceContext);
489            }
490    
491            public static com.liferay.portal.kernel.search.Hits search(
492                    com.liferay.portal.kernel.search.SearchContext searchContext) {
493                    return getService().search(searchContext);
494            }
495    
496            public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.dynamicdatalists.model.DDLRecord> searchDDLRecords(
497                    com.liferay.portal.kernel.search.SearchContext searchContext) {
498                    return getService().searchDDLRecords(searchContext);
499            }
500    
501            /**
502            * Sets the Spring bean ID for this bean.
503            *
504            * @param beanIdentifier the Spring bean ID for this bean
505            */
506            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
507                    getService().setBeanIdentifier(beanIdentifier);
508            }
509    
510            public static void updateAsset(long userId,
511                    com.liferay.portlet.dynamicdatalists.model.DDLRecord record,
512                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion recordVersion,
513                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
514                    java.util.Locale locale)
515                    throws com.liferay.portal.kernel.exception.PortalException {
516                    getService()
517                            .updateAsset(userId, record, recordVersion, assetCategoryIds,
518                            assetTagNames, locale);
519            }
520    
521            /**
522            * Updates the d d l record in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
523            *
524            * @param ddlRecord the d d l record
525            * @return the d d l record that was updated
526            */
527            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateDDLRecord(
528                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord) {
529                    return getService().updateDDLRecord(ddlRecord);
530            }
531    
532            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
533                    long userId, long recordId, int displayIndex,
534                    java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
535                    boolean mergeFields,
536                    com.liferay.portal.service.ServiceContext serviceContext)
537                    throws com.liferay.portal.kernel.exception.PortalException {
538                    return getService()
539                                       .updateRecord(userId, recordId, displayIndex, fieldsMap,
540                            mergeFields, serviceContext);
541            }
542    
543            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
544                    long userId, long recordId, boolean majorVersion, int displayIndex,
545                    com.liferay.portlet.dynamicdatamapping.storage.DDMFormValues ddmFormValues,
546                    com.liferay.portal.service.ServiceContext serviceContext)
547                    throws com.liferay.portal.kernel.exception.PortalException {
548                    return getService()
549                                       .updateRecord(userId, recordId, majorVersion, displayIndex,
550                            ddmFormValues, serviceContext);
551            }
552    
553            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
554                    long userId, long recordId, boolean majorVersion, int displayIndex,
555                    com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
556                    boolean mergeFields,
557                    com.liferay.portal.service.ServiceContext serviceContext)
558                    throws com.liferay.portal.kernel.exception.PortalException {
559                    return getService()
560                                       .updateRecord(userId, recordId, majorVersion, displayIndex,
561                            fields, mergeFields, serviceContext);
562            }
563    
564            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateStatus(
565                    long userId, long recordVersionId, int status,
566                    com.liferay.portal.service.ServiceContext serviceContext)
567                    throws com.liferay.portal.kernel.exception.PortalException {
568                    return getService()
569                                       .updateStatus(userId, recordVersionId, status, serviceContext);
570            }
571    
572            public static DDLRecordLocalService getService() {
573                    if (_service == null) {
574                            _service = (DDLRecordLocalService)PortalBeanLocatorUtil.locate(DDLRecordLocalService.class.getName());
575    
576                            ReferenceRegistry.registerReference(DDLRecordLocalServiceUtil.class,
577                                    "_service");
578                    }
579    
580                    return _service;
581            }
582    
583            /**
584             * @deprecated As of 6.2.0
585             */
586            @Deprecated
587            public void setService(DDLRecordLocalService service) {
588            }
589    
590            private static DDLRecordLocalService _service;
591    }