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