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