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.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.db.DB;
022    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029    import com.liferay.portal.kernel.dao.orm.Projection;
030    import com.liferay.portal.kernel.exception.PortalException;
031    import com.liferay.portal.kernel.exception.SystemException;
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.DLFileEntryMetadataPersistence;
044    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
045    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
046    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
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                    IdentifiableBean {
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 that match the dynamic query.
190             *
191             * @param dynamicQuery the dynamic query
192             * @return the number of rows that match 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 that match 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 that match 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 primary key.
221             *
222             * @param fileEntryMetadataId the primary key of the document library file entry metadata
223             * @return the document library file entry metadata
224             * @throws PortalException if a document library file entry metadata with the primary key could not be found
225             */
226            @Override
227            public DLFileEntryMetadata getDLFileEntryMetadata(long fileEntryMetadataId)
228                    throws PortalException {
229                    return dlFileEntryMetadataPersistence.findByPrimaryKey(fileEntryMetadataId);
230            }
231    
232            @Override
233            public ActionableDynamicQuery getActionableDynamicQuery() {
234                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
235    
236                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil.getService());
237                    actionableDynamicQuery.setClass(DLFileEntryMetadata.class);
238                    actionableDynamicQuery.setClassLoader(getClassLoader());
239    
240                    actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryMetadataId");
241    
242                    return actionableDynamicQuery;
243            }
244    
245            protected void initActionableDynamicQuery(
246                    ActionableDynamicQuery actionableDynamicQuery) {
247                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil.getService());
248                    actionableDynamicQuery.setClass(DLFileEntryMetadata.class);
249                    actionableDynamicQuery.setClassLoader(getClassLoader());
250    
251                    actionableDynamicQuery.setPrimaryKeyPropertyName("fileEntryMetadataId");
252            }
253    
254            /**
255             * @throws PortalException
256             */
257            @Override
258            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
259                    throws PortalException {
260                    return dlFileEntryMetadataLocalService.deleteDLFileEntryMetadata((DLFileEntryMetadata)persistedModel);
261            }
262    
263            @Override
264            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
265                    throws PortalException {
266                    return dlFileEntryMetadataPersistence.findByPrimaryKey(primaryKeyObj);
267            }
268    
269            /**
270             * Returns a range of all the document library file entry metadatas.
271             *
272             * <p>
273             * 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.
274             * </p>
275             *
276             * @param start the lower bound of the range of document library file entry metadatas
277             * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
278             * @return the range of document library file entry metadatas
279             */
280            @Override
281            public List<DLFileEntryMetadata> getDLFileEntryMetadatas(int start, int end) {
282                    return dlFileEntryMetadataPersistence.findAll(start, end);
283            }
284    
285            /**
286             * Returns the number of document library file entry metadatas.
287             *
288             * @return the number of document library file entry metadatas
289             */
290            @Override
291            public int getDLFileEntryMetadatasCount() {
292                    return dlFileEntryMetadataPersistence.countAll();
293            }
294    
295            /**
296             * 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.
297             *
298             * @param dlFileEntryMetadata the document library file entry metadata
299             * @return the document library file entry metadata that was updated
300             */
301            @Indexable(type = IndexableType.REINDEX)
302            @Override
303            public DLFileEntryMetadata updateDLFileEntryMetadata(
304                    DLFileEntryMetadata dlFileEntryMetadata) {
305                    return dlFileEntryMetadataPersistence.update(dlFileEntryMetadata);
306            }
307    
308            /**
309             * Returns the document library file entry metadata local service.
310             *
311             * @return the document library file entry metadata local service
312             */
313            public com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
314                    return dlFileEntryMetadataLocalService;
315            }
316    
317            /**
318             * Sets the document library file entry metadata local service.
319             *
320             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
321             */
322            public void setDLFileEntryMetadataLocalService(
323                    com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
324                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
325            }
326    
327            /**
328             * Returns the document library file entry metadata persistence.
329             *
330             * @return the document library file entry metadata persistence
331             */
332            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
333                    return dlFileEntryMetadataPersistence;
334            }
335    
336            /**
337             * Sets the document library file entry metadata persistence.
338             *
339             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
340             */
341            public void setDLFileEntryMetadataPersistence(
342                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
343                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
344            }
345    
346            /**
347             * Returns the counter local service.
348             *
349             * @return the counter local service
350             */
351            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
352                    return counterLocalService;
353            }
354    
355            /**
356             * Sets the counter local service.
357             *
358             * @param counterLocalService the counter local service
359             */
360            public void setCounterLocalService(
361                    com.liferay.counter.service.CounterLocalService counterLocalService) {
362                    this.counterLocalService = counterLocalService;
363            }
364    
365            /**
366             * Returns the class name local service.
367             *
368             * @return the class name local service
369             */
370            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
371                    return classNameLocalService;
372            }
373    
374            /**
375             * Sets the class name local service.
376             *
377             * @param classNameLocalService the class name local service
378             */
379            public void setClassNameLocalService(
380                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
381                    this.classNameLocalService = classNameLocalService;
382            }
383    
384            /**
385             * Returns the class name remote service.
386             *
387             * @return the class name remote service
388             */
389            public com.liferay.portal.service.ClassNameService getClassNameService() {
390                    return classNameService;
391            }
392    
393            /**
394             * Sets the class name remote service.
395             *
396             * @param classNameService the class name remote service
397             */
398            public void setClassNameService(
399                    com.liferay.portal.service.ClassNameService classNameService) {
400                    this.classNameService = classNameService;
401            }
402    
403            /**
404             * Returns the class name persistence.
405             *
406             * @return the class name persistence
407             */
408            public ClassNamePersistence getClassNamePersistence() {
409                    return classNamePersistence;
410            }
411    
412            /**
413             * Sets the class name persistence.
414             *
415             * @param classNamePersistence the class name persistence
416             */
417            public void setClassNamePersistence(
418                    ClassNamePersistence classNamePersistence) {
419                    this.classNamePersistence = classNamePersistence;
420            }
421    
422            /**
423             * Returns the d d m structure link local service.
424             *
425             * @return the d d m structure link local service
426             */
427            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
428                    return ddmStructureLinkLocalService;
429            }
430    
431            /**
432             * Sets the d d m structure link local service.
433             *
434             * @param ddmStructureLinkLocalService the d d m structure link local service
435             */
436            public void setDDMStructureLinkLocalService(
437                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
438                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
439            }
440    
441            /**
442             * Returns the d d m structure link persistence.
443             *
444             * @return the d d m structure link persistence
445             */
446            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
447                    return ddmStructureLinkPersistence;
448            }
449    
450            /**
451             * Sets the d d m structure link persistence.
452             *
453             * @param ddmStructureLinkPersistence the d d m structure link persistence
454             */
455            public void setDDMStructureLinkPersistence(
456                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
457                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
458            }
459    
460            /**
461             * Returns the document library file entry type local service.
462             *
463             * @return the document library file entry type local service
464             */
465            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
466                    return dlFileEntryTypeLocalService;
467            }
468    
469            /**
470             * Sets the document library file entry type local service.
471             *
472             * @param dlFileEntryTypeLocalService the document library file entry type local service
473             */
474            public void setDLFileEntryTypeLocalService(
475                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
476                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
477            }
478    
479            /**
480             * Returns the document library file entry type remote service.
481             *
482             * @return the document library file entry type remote service
483             */
484            public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
485                    return dlFileEntryTypeService;
486            }
487    
488            /**
489             * Sets the document library file entry type remote service.
490             *
491             * @param dlFileEntryTypeService the document library file entry type remote service
492             */
493            public void setDLFileEntryTypeService(
494                    com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
495                    this.dlFileEntryTypeService = dlFileEntryTypeService;
496            }
497    
498            /**
499             * Returns the document library file entry type persistence.
500             *
501             * @return the document library file entry type persistence
502             */
503            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
504                    return dlFileEntryTypePersistence;
505            }
506    
507            /**
508             * Sets the document library file entry type persistence.
509             *
510             * @param dlFileEntryTypePersistence the document library file entry type persistence
511             */
512            public void setDLFileEntryTypePersistence(
513                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
514                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
515            }
516    
517            /**
518             * Returns the document library file entry type finder.
519             *
520             * @return the document library file entry type finder
521             */
522            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
523                    return dlFileEntryTypeFinder;
524            }
525    
526            /**
527             * Sets the document library file entry type finder.
528             *
529             * @param dlFileEntryTypeFinder the document library file entry type finder
530             */
531            public void setDLFileEntryTypeFinder(
532                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
533                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
534            }
535    
536            public void afterPropertiesSet() {
537                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata",
538                            dlFileEntryMetadataLocalService);
539            }
540    
541            public void destroy() {
542                    persistedModelLocalServiceRegistry.unregister(
543                            "com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata");
544            }
545    
546            /**
547             * Returns the Spring bean ID for this bean.
548             *
549             * @return the Spring bean ID for this bean
550             */
551            @Override
552            public String getBeanIdentifier() {
553                    return _beanIdentifier;
554            }
555    
556            /**
557             * Sets the Spring bean ID for this bean.
558             *
559             * @param beanIdentifier the Spring bean ID for this bean
560             */
561            @Override
562            public void setBeanIdentifier(String beanIdentifier) {
563                    _beanIdentifier = beanIdentifier;
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 com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
600            @BeanReference(type = DLFileEntryMetadataPersistence.class)
601            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
602            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
603            protected com.liferay.counter.service.CounterLocalService counterLocalService;
604            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
605            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
606            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
607            protected com.liferay.portal.service.ClassNameService classNameService;
608            @BeanReference(type = ClassNamePersistence.class)
609            protected ClassNamePersistence classNamePersistence;
610            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
611            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
612            @BeanReference(type = DDMStructureLinkPersistence.class)
613            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
614            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
615            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
616            @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
617            protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
618            @BeanReference(type = DLFileEntryTypePersistence.class)
619            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
620            @BeanReference(type = DLFileEntryTypeFinder.class)
621            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
622            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
623            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
624            private String _beanIdentifier;
625    }