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.documentlibrary.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.dao.db.DB;
021    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028    import com.liferay.portal.kernel.dao.orm.Projection;
029    import com.liferay.portal.kernel.exception.PortalException;
030    import com.liferay.portal.kernel.exception.SystemException;
031    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
032    import com.liferay.portal.kernel.search.Indexable;
033    import com.liferay.portal.kernel.search.IndexableType;
034    import com.liferay.portal.kernel.util.OrderByComparator;
035    import com.liferay.portal.model.PersistedModel;
036    import com.liferay.portal.service.BaseLocalServiceImpl;
037    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
038    import com.liferay.portal.service.persistence.ClassNamePersistence;
039    import com.liferay.portal.util.PortalUtil;
040    
041    import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata;
042    import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
043    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataFinder;
044    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
045    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
046    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
047    
048    import java.io.Serializable;
049    
050    import java.util.List;
051    
052    import javax.sql.DataSource;
053    
054    /**
055     * Provides the base implementation for the document library file entry metadata local service.
056     *
057     * <p>
058     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl}.
059     * </p>
060     *
061     * @author Brian Wing Shun Chan
062     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl
063     * @see com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil
064     * @generated
065     */
066    @ProviderType
067    public abstract class DLFileEntryMetadataLocalServiceBaseImpl
068            extends BaseLocalServiceImpl implements DLFileEntryMetadataLocalService,
069                    IdentifiableOSGiService {
070            /*
071             * NOTE FOR DEVELOPERS:
072             *
073             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil} to access the document library file entry metadata local service.
074             */
075    
076            /**
077             * Adds the document library file entry metadata to the database. Also notifies the appropriate model listeners.
078             *
079             * @param dlFileEntryMetadata the document library file entry metadata
080             * @return the document library file entry metadata that was added
081             */
082            @Indexable(type = IndexableType.REINDEX)
083            @Override
084            public DLFileEntryMetadata addDLFileEntryMetadata(
085                    DLFileEntryMetadata dlFileEntryMetadata) {
086                    dlFileEntryMetadata.setNew(true);
087    
088                    return dlFileEntryMetadataPersistence.update(dlFileEntryMetadata);
089            }
090    
091            /**
092             * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
093             *
094             * @param fileEntryMetadataId the primary key for the new document library file entry metadata
095             * @return the new document library file entry metadata
096             */
097            @Override
098            public DLFileEntryMetadata createDLFileEntryMetadata(
099                    long fileEntryMetadataId) {
100                    return dlFileEntryMetadataPersistence.create(fileEntryMetadataId);
101            }
102    
103            /**
104             * Deletes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
105             *
106             * @param fileEntryMetadataId the primary key of the document library file entry metadata
107             * @return the document library file entry metadata that was removed
108             * @throws PortalException if a document library file entry metadata with the primary key could not be found
109             */
110            @Indexable(type = IndexableType.DELETE)
111            @Override
112            public DLFileEntryMetadata deleteDLFileEntryMetadata(
113                    long fileEntryMetadataId) throws PortalException {
114                    return dlFileEntryMetadataPersistence.remove(fileEntryMetadataId);
115            }
116    
117            /**
118             * Deletes the document library file entry metadata from the database. Also notifies the appropriate model listeners.
119             *
120             * @param dlFileEntryMetadata the document library file entry metadata
121             * @return the document library file entry metadata that was removed
122             */
123            @Indexable(type = IndexableType.DELETE)
124            @Override
125            public DLFileEntryMetadata deleteDLFileEntryMetadata(
126                    DLFileEntryMetadata dlFileEntryMetadata) {
127                    return dlFileEntryMetadataPersistence.remove(dlFileEntryMetadata);
128            }
129    
130            @Override
131            public DynamicQuery dynamicQuery() {
132                    Class<?> clazz = getClass();
133    
134                    return DynamicQueryFactoryUtil.forClass(DLFileEntryMetadata.class,
135                            clazz.getClassLoader());
136            }
137    
138            /**
139             * Performs a dynamic query on the database and returns the matching rows.
140             *
141             * @param dynamicQuery the dynamic query
142             * @return the matching rows
143             */
144            @Override
145            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
146                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery);
147            }
148    
149            /**
150             * Performs a dynamic query on the database and returns a range of the matching rows.
151             *
152             * <p>
153             * 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.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. 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.
154             * </p>
155             *
156             * @param dynamicQuery the dynamic query
157             * @param start the lower bound of the range of model instances
158             * @param end the upper bound of the range of model instances (not inclusive)
159             * @return the range of matching rows
160             */
161            @Override
162            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
163                    int end) {
164                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery,
165                            start, end);
166            }
167    
168            /**
169             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
170             *
171             * <p>
172             * 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.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. 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.
173             * </p>
174             *
175             * @param dynamicQuery the dynamic query
176             * @param start the lower bound of the range of model instances
177             * @param end the upper bound of the range of model instances (not inclusive)
178             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
179             * @return the ordered range of matching rows
180             */
181            @Override
182            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
183                    int end, OrderByComparator<T> orderByComparator) {
184                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery,
185                            start, end, orderByComparator);
186            }
187    
188            /**
189             * Returns the number of rows matching the dynamic query.
190             *
191             * @param dynamicQuery the dynamic query
192             * @return the number of rows matching the dynamic query
193             */
194            @Override
195            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
196                    return dlFileEntryMetadataPersistence.countWithDynamicQuery(dynamicQuery);
197            }
198    
199            /**
200             * Returns the number of rows matching the dynamic query.
201             *
202             * @param dynamicQuery the dynamic query
203             * @param projection the projection to apply to the query
204             * @return the number of rows matching the dynamic query
205             */
206            @Override
207            public long dynamicQueryCount(DynamicQuery dynamicQuery,
208                    Projection projection) {
209                    return dlFileEntryMetadataPersistence.countWithDynamicQuery(dynamicQuery,
210                            projection);
211            }
212    
213            @Override
214            public DLFileEntryMetadata fetchDLFileEntryMetadata(
215                    long fileEntryMetadataId) {
216                    return dlFileEntryMetadataPersistence.fetchByPrimaryKey(fileEntryMetadataId);
217            }
218    
219            /**
220             * Returns the document library file entry metadata with the matching UUID and company.
221             *
222             * @param uuid the document library file entry metadata's UUID
223             * @param companyId the primary key of the company
224             * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
225             */
226            @Override
227            public DLFileEntryMetadata fetchDLFileEntryMetadataByUuidAndCompanyId(
228                    String uuid, long companyId) {
229                    return dlFileEntryMetadataPersistence.fetchByUuid_C_First(uuid,
230                            companyId, null);
231            }
232    
233            /**
234             * Returns the document library file entry metadata with the primary key.
235             *
236             * @param fileEntryMetadataId the primary key of the document library file entry metadata
237             * @return the document library file entry metadata
238             * @throws PortalException if a document library file entry metadata with the primary key could not be found
239             */
240            @Override
241            public DLFileEntryMetadata getDLFileEntryMetadata(long fileEntryMetadataId)
242                    throws PortalException {
243                    return dlFileEntryMetadataPersistence.findByPrimaryKey(fileEntryMetadataId);
244            }
245    
246            @Override
247            public ActionableDynamicQuery getActionableDynamicQuery() {
248                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
249    
250                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil.getService());
251                    actionableDynamicQuery.setClass(DLFileEntryMetadata.class);
252                    actionableDynamicQuery.setClassLoader(getClassLoader());
253    
254                    actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryMetadataId");
255    
256                    return actionableDynamicQuery;
257            }
258    
259            protected void initActionableDynamicQuery(
260                    ActionableDynamicQuery actionableDynamicQuery) {
261                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil.getService());
262                    actionableDynamicQuery.setClass(DLFileEntryMetadata.class);
263                    actionableDynamicQuery.setClassLoader(getClassLoader());
264    
265                    actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryMetadataId");
266            }
267    
268            /**
269             * @throws PortalException
270             */
271            @Override
272            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
273                    throws PortalException {
274                    return dlFileEntryMetadataLocalService.deleteDLFileEntryMetadata((DLFileEntryMetadata)persistedModel);
275            }
276    
277            @Override
278            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
279                    throws PortalException {
280                    return dlFileEntryMetadataPersistence.findByPrimaryKey(primaryKeyObj);
281            }
282    
283            /**
284             * Returns the document library file entry metadata with the matching UUID and company.
285             *
286             * @param uuid the document library file entry metadata's UUID
287             * @param companyId the primary key of the company
288             * @return the matching document library file entry metadata
289             * @throws PortalException if a matching document library file entry metadata could not be found
290             */
291            @Override
292            public DLFileEntryMetadata getDLFileEntryMetadataByUuidAndCompanyId(
293                    String uuid, long companyId) throws PortalException {
294                    return dlFileEntryMetadataPersistence.findByUuid_C_First(uuid,
295                            companyId, null);
296            }
297    
298            /**
299             * Returns a range of all the document library file entry metadatas.
300             *
301             * <p>
302             * 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.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. 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.
303             * </p>
304             *
305             * @param start the lower bound of the range of document library file entry metadatas
306             * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
307             * @return the range of document library file entry metadatas
308             */
309            @Override
310            public List<DLFileEntryMetadata> getDLFileEntryMetadatas(int start, int end) {
311                    return dlFileEntryMetadataPersistence.findAll(start, end);
312            }
313    
314            /**
315             * Returns the number of document library file entry metadatas.
316             *
317             * @return the number of document library file entry metadatas
318             */
319            @Override
320            public int getDLFileEntryMetadatasCount() {
321                    return dlFileEntryMetadataPersistence.countAll();
322            }
323    
324            /**
325             * Updates the document library file entry metadata in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
326             *
327             * @param dlFileEntryMetadata the document library file entry metadata
328             * @return the document library file entry metadata that was updated
329             */
330            @Indexable(type = IndexableType.REINDEX)
331            @Override
332            public DLFileEntryMetadata updateDLFileEntryMetadata(
333                    DLFileEntryMetadata dlFileEntryMetadata) {
334                    return dlFileEntryMetadataPersistence.update(dlFileEntryMetadata);
335            }
336    
337            /**
338             * Returns the document library file entry metadata local service.
339             *
340             * @return the document library file entry metadata local service
341             */
342            public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
343                    return dlFileEntryMetadataLocalService;
344            }
345    
346            /**
347             * Sets the document library file entry metadata local service.
348             *
349             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
350             */
351            public void setDLFileEntryMetadataLocalService(
352                    DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
353                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
354            }
355    
356            /**
357             * Returns the document library file entry metadata persistence.
358             *
359             * @return the document library file entry metadata persistence
360             */
361            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
362                    return dlFileEntryMetadataPersistence;
363            }
364    
365            /**
366             * Sets the document library file entry metadata persistence.
367             *
368             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
369             */
370            public void setDLFileEntryMetadataPersistence(
371                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
372                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
373            }
374    
375            /**
376             * Returns the document library file entry metadata finder.
377             *
378             * @return the document library file entry metadata finder
379             */
380            public DLFileEntryMetadataFinder getDLFileEntryMetadataFinder() {
381                    return dlFileEntryMetadataFinder;
382            }
383    
384            /**
385             * Sets the document library file entry metadata finder.
386             *
387             * @param dlFileEntryMetadataFinder the document library file entry metadata finder
388             */
389            public void setDLFileEntryMetadataFinder(
390                    DLFileEntryMetadataFinder dlFileEntryMetadataFinder) {
391                    this.dlFileEntryMetadataFinder = dlFileEntryMetadataFinder;
392            }
393    
394            /**
395             * Returns the counter local service.
396             *
397             * @return the counter local service
398             */
399            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
400                    return counterLocalService;
401            }
402    
403            /**
404             * Sets the counter local service.
405             *
406             * @param counterLocalService the counter local service
407             */
408            public void setCounterLocalService(
409                    com.liferay.counter.service.CounterLocalService counterLocalService) {
410                    this.counterLocalService = counterLocalService;
411            }
412    
413            /**
414             * Returns the class name local service.
415             *
416             * @return the class name local service
417             */
418            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
419                    return classNameLocalService;
420            }
421    
422            /**
423             * Sets the class name local service.
424             *
425             * @param classNameLocalService the class name local service
426             */
427            public void setClassNameLocalService(
428                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
429                    this.classNameLocalService = classNameLocalService;
430            }
431    
432            /**
433             * Returns the class name remote service.
434             *
435             * @return the class name remote service
436             */
437            public com.liferay.portal.service.ClassNameService getClassNameService() {
438                    return classNameService;
439            }
440    
441            /**
442             * Sets the class name remote service.
443             *
444             * @param classNameService the class name remote service
445             */
446            public void setClassNameService(
447                    com.liferay.portal.service.ClassNameService classNameService) {
448                    this.classNameService = classNameService;
449            }
450    
451            /**
452             * Returns the class name persistence.
453             *
454             * @return the class name persistence
455             */
456            public ClassNamePersistence getClassNamePersistence() {
457                    return classNamePersistence;
458            }
459    
460            /**
461             * Sets the class name persistence.
462             *
463             * @param classNamePersistence the class name persistence
464             */
465            public void setClassNamePersistence(
466                    ClassNamePersistence classNamePersistence) {
467                    this.classNamePersistence = classNamePersistence;
468            }
469    
470            /**
471             * Returns the document library file entry type local service.
472             *
473             * @return the document library file entry type local service
474             */
475            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
476                    return dlFileEntryTypeLocalService;
477            }
478    
479            /**
480             * Sets the document library file entry type local service.
481             *
482             * @param dlFileEntryTypeLocalService the document library file entry type local service
483             */
484            public void setDLFileEntryTypeLocalService(
485                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
486                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
487            }
488    
489            /**
490             * Returns the document library file entry type remote service.
491             *
492             * @return the document library file entry type remote service
493             */
494            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
495                    return dlFileEntryTypeService;
496            }
497    
498            /**
499             * Sets the document library file entry type remote service.
500             *
501             * @param dlFileEntryTypeService the document library file entry type remote service
502             */
503            public void setDLFileEntryTypeService(
504                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
505                    this.dlFileEntryTypeService = dlFileEntryTypeService;
506            }
507    
508            /**
509             * Returns the document library file entry type persistence.
510             *
511             * @return the document library file entry type persistence
512             */
513            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
514                    return dlFileEntryTypePersistence;
515            }
516    
517            /**
518             * Sets the document library file entry type persistence.
519             *
520             * @param dlFileEntryTypePersistence the document library file entry type persistence
521             */
522            public void setDLFileEntryTypePersistence(
523                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
524                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
525            }
526    
527            /**
528             * Returns the document library file entry type finder.
529             *
530             * @return the document library file entry type finder
531             */
532            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
533                    return dlFileEntryTypeFinder;
534            }
535    
536            /**
537             * Sets the document library file entry type finder.
538             *
539             * @param dlFileEntryTypeFinder the document library file entry type finder
540             */
541            public void setDLFileEntryTypeFinder(
542                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
543                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
544            }
545    
546            public void afterPropertiesSet() {
547                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata",
548                            dlFileEntryMetadataLocalService);
549            }
550    
551            public void destroy() {
552                    persistedModelLocalServiceRegistry.unregister(
553                            "com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata");
554            }
555    
556            /**
557             * Returns the OSGi service identifier.
558             *
559             * @return the OSGi service identifier
560             */
561            @Override
562            public String getOSGiServiceIdentifier() {
563                    return DLFileEntryMetadataLocalService.class.getName();
564            }
565    
566            protected Class<?> getModelClass() {
567                    return DLFileEntryMetadata.class;
568            }
569    
570            protected String getModelClassName() {
571                    return DLFileEntryMetadata.class.getName();
572            }
573    
574            /**
575             * Performs a SQL query.
576             *
577             * @param sql the sql query
578             */
579            protected void runSQL(String sql) {
580                    try {
581                            DataSource dataSource = dlFileEntryMetadataPersistence.getDataSource();
582    
583                            DB db = DBFactoryUtil.getDB();
584    
585                            sql = db.buildSQL(sql);
586                            sql = PortalUtil.transformSQL(sql);
587    
588                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
589                                            sql, new int[0]);
590    
591                            sqlUpdate.update();
592                    }
593                    catch (Exception e) {
594                            throw new SystemException(e);
595                    }
596            }
597    
598            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService.class)
599            protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
600            @BeanReference(type = DLFileEntryMetadataPersistence.class)
601            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
602            @BeanReference(type = DLFileEntryMetadataFinder.class)
603            protected DLFileEntryMetadataFinder dlFileEntryMetadataFinder;
604            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
605            protected com.liferay.counter.service.CounterLocalService counterLocalService;
606            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
607            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
608            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
609            protected com.liferay.portal.service.ClassNameService classNameService;
610            @BeanReference(type = ClassNamePersistence.class)
611            protected ClassNamePersistence classNamePersistence;
612            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
613            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
614            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
615            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
616            @BeanReference(type = DLFileEntryTypePersistence.class)
617            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
618            @BeanReference(type = DLFileEntryTypeFinder.class)
619            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
620            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
621            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
622    }