001    /**
002     * Copyright (c) 2000-2012 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 com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
033    import com.liferay.portal.service.ResourceLocalService;
034    import com.liferay.portal.service.UserLocalService;
035    import com.liferay.portal.service.UserService;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    
039    import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata;
040    import com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService;
041    import com.liferay.portlet.documentlibrary.service.DLAppLocalService;
042    import com.liferay.portlet.documentlibrary.service.DLAppService;
043    import com.liferay.portlet.documentlibrary.service.DLContentLocalService;
044    import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
045    import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
046    import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
047    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
048    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
049    import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
050    import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
051    import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
052    import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
053    import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
054    import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
055    import com.liferay.portlet.documentlibrary.service.DLFolderService;
056    import com.liferay.portlet.documentlibrary.service.DLSyncLocalService;
057    import com.liferay.portlet.documentlibrary.service.DLSyncService;
058    import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
059    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
060    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
061    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
062    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
063    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
064    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
065    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
066    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
067    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
068    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
069    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
070    import com.liferay.portlet.documentlibrary.service.persistence.DLSyncFinder;
071    import com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence;
072    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
073    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
074    
075    import java.io.Serializable;
076    
077    import java.util.List;
078    
079    import javax.sql.DataSource;
080    
081    /**
082     * The base implementation of the document library file entry metadata local service.
083     *
084     * <p>
085     * 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}.
086     * </p>
087     *
088     * @author Brian Wing Shun Chan
089     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl
090     * @see com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil
091     * @generated
092     */
093    public abstract class DLFileEntryMetadataLocalServiceBaseImpl
094            extends BaseLocalServiceImpl implements DLFileEntryMetadataLocalService,
095                    IdentifiableBean {
096            /*
097             * NOTE FOR DEVELOPERS:
098             *
099             * 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.
100             */
101    
102            /**
103             * Adds the document library file entry metadata to the database. Also notifies the appropriate model listeners.
104             *
105             * @param dlFileEntryMetadata the document library file entry metadata
106             * @return the document library file entry metadata that was added
107             * @throws SystemException if a system exception occurred
108             */
109            @Indexable(type = IndexableType.REINDEX)
110            public DLFileEntryMetadata addDLFileEntryMetadata(
111                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
112                    dlFileEntryMetadata.setNew(true);
113    
114                    return dlFileEntryMetadataPersistence.update(dlFileEntryMetadata);
115            }
116    
117            /**
118             * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
119             *
120             * @param fileEntryMetadataId the primary key for the new document library file entry metadata
121             * @return the new document library file entry metadata
122             */
123            public DLFileEntryMetadata createDLFileEntryMetadata(
124                    long fileEntryMetadataId) {
125                    return dlFileEntryMetadataPersistence.create(fileEntryMetadataId);
126            }
127    
128            /**
129             * Deletes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
130             *
131             * @param fileEntryMetadataId the primary key of the document library file entry metadata
132             * @return the document library file entry metadata that was removed
133             * @throws PortalException if a document library file entry metadata with the primary key could not be found
134             * @throws SystemException if a system exception occurred
135             */
136            @Indexable(type = IndexableType.DELETE)
137            public DLFileEntryMetadata deleteDLFileEntryMetadata(
138                    long fileEntryMetadataId) throws PortalException, SystemException {
139                    return dlFileEntryMetadataPersistence.remove(fileEntryMetadataId);
140            }
141    
142            /**
143             * Deletes the document library file entry metadata from the database. Also notifies the appropriate model listeners.
144             *
145             * @param dlFileEntryMetadata the document library file entry metadata
146             * @return the document library file entry metadata that was removed
147             * @throws SystemException if a system exception occurred
148             */
149            @Indexable(type = IndexableType.DELETE)
150            public DLFileEntryMetadata deleteDLFileEntryMetadata(
151                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
152                    return dlFileEntryMetadataPersistence.remove(dlFileEntryMetadata);
153            }
154    
155            public DynamicQuery dynamicQuery() {
156                    Class<?> clazz = getClass();
157    
158                    return DynamicQueryFactoryUtil.forClass(DLFileEntryMetadata.class,
159                            clazz.getClassLoader());
160            }
161    
162            /**
163             * Performs a dynamic query on the database and returns the matching rows.
164             *
165             * @param dynamicQuery the dynamic query
166             * @return the matching rows
167             * @throws SystemException if a system exception occurred
168             */
169            @SuppressWarnings("rawtypes")
170            public List dynamicQuery(DynamicQuery dynamicQuery)
171                    throws SystemException {
172                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery);
173            }
174    
175            /**
176             * Performs a dynamic query on the database and returns a range of the matching rows.
177             *
178             * <p>
179             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
180             * </p>
181             *
182             * @param dynamicQuery the dynamic query
183             * @param start the lower bound of the range of model instances
184             * @param end the upper bound of the range of model instances (not inclusive)
185             * @return the range of matching rows
186             * @throws SystemException if a system exception occurred
187             */
188            @SuppressWarnings("rawtypes")
189            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
190                    throws SystemException {
191                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery,
192                            start, end);
193            }
194    
195            /**
196             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
197             *
198             * <p>
199             * 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.
200             * </p>
201             *
202             * @param dynamicQuery the dynamic query
203             * @param start the lower bound of the range of model instances
204             * @param end the upper bound of the range of model instances (not inclusive)
205             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
206             * @return the ordered range of matching rows
207             * @throws SystemException if a system exception occurred
208             */
209            @SuppressWarnings("rawtypes")
210            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
211                    OrderByComparator orderByComparator) throws SystemException {
212                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery,
213                            start, end, orderByComparator);
214            }
215    
216            /**
217             * Returns the number of rows that match the dynamic query.
218             *
219             * @param dynamicQuery the dynamic query
220             * @return the number of rows that match the dynamic query
221             * @throws SystemException if a system exception occurred
222             */
223            public long dynamicQueryCount(DynamicQuery dynamicQuery)
224                    throws SystemException {
225                    return dlFileEntryMetadataPersistence.countWithDynamicQuery(dynamicQuery);
226            }
227    
228            public DLFileEntryMetadata fetchDLFileEntryMetadata(
229                    long fileEntryMetadataId) throws SystemException {
230                    return dlFileEntryMetadataPersistence.fetchByPrimaryKey(fileEntryMetadataId);
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             * @throws SystemException if a system exception occurred
240             */
241            public DLFileEntryMetadata getDLFileEntryMetadata(long fileEntryMetadataId)
242                    throws PortalException, SystemException {
243                    return dlFileEntryMetadataPersistence.findByPrimaryKey(fileEntryMetadataId);
244            }
245    
246            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
247                    throws PortalException, SystemException {
248                    return dlFileEntryMetadataPersistence.findByPrimaryKey(primaryKeyObj);
249            }
250    
251            /**
252             * Returns a range of all the document library file entry metadatas.
253             *
254             * <p>
255             * 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.
256             * </p>
257             *
258             * @param start the lower bound of the range of document library file entry metadatas
259             * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
260             * @return the range of document library file entry metadatas
261             * @throws SystemException if a system exception occurred
262             */
263            public List<DLFileEntryMetadata> getDLFileEntryMetadatas(int start, int end)
264                    throws SystemException {
265                    return dlFileEntryMetadataPersistence.findAll(start, end);
266            }
267    
268            /**
269             * Returns the number of document library file entry metadatas.
270             *
271             * @return the number of document library file entry metadatas
272             * @throws SystemException if a system exception occurred
273             */
274            public int getDLFileEntryMetadatasCount() throws SystemException {
275                    return dlFileEntryMetadataPersistence.countAll();
276            }
277    
278            /**
279             * 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.
280             *
281             * @param dlFileEntryMetadata the document library file entry metadata
282             * @return the document library file entry metadata that was updated
283             * @throws SystemException if a system exception occurred
284             */
285            @Indexable(type = IndexableType.REINDEX)
286            public DLFileEntryMetadata updateDLFileEntryMetadata(
287                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
288                    return dlFileEntryMetadataPersistence.update(dlFileEntryMetadata);
289            }
290    
291            /**
292             * Returns the d l app local service.
293             *
294             * @return the d l app local service
295             */
296            public DLAppLocalService getDLAppLocalService() {
297                    return dlAppLocalService;
298            }
299    
300            /**
301             * Sets the d l app local service.
302             *
303             * @param dlAppLocalService the d l app local service
304             */
305            public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
306                    this.dlAppLocalService = dlAppLocalService;
307            }
308    
309            /**
310             * Returns the d l app remote service.
311             *
312             * @return the d l app remote service
313             */
314            public DLAppService getDLAppService() {
315                    return dlAppService;
316            }
317    
318            /**
319             * Sets the d l app remote service.
320             *
321             * @param dlAppService the d l app remote service
322             */
323            public void setDLAppService(DLAppService dlAppService) {
324                    this.dlAppService = dlAppService;
325            }
326    
327            /**
328             * Returns the d l app helper local service.
329             *
330             * @return the d l app helper local service
331             */
332            public DLAppHelperLocalService getDLAppHelperLocalService() {
333                    return dlAppHelperLocalService;
334            }
335    
336            /**
337             * Sets the d l app helper local service.
338             *
339             * @param dlAppHelperLocalService the d l app helper local service
340             */
341            public void setDLAppHelperLocalService(
342                    DLAppHelperLocalService dlAppHelperLocalService) {
343                    this.dlAppHelperLocalService = dlAppHelperLocalService;
344            }
345    
346            /**
347             * Returns the document library content local service.
348             *
349             * @return the document library content local service
350             */
351            public DLContentLocalService getDLContentLocalService() {
352                    return dlContentLocalService;
353            }
354    
355            /**
356             * Sets the document library content local service.
357             *
358             * @param dlContentLocalService the document library content local service
359             */
360            public void setDLContentLocalService(
361                    DLContentLocalService dlContentLocalService) {
362                    this.dlContentLocalService = dlContentLocalService;
363            }
364    
365            /**
366             * Returns the document library content persistence.
367             *
368             * @return the document library content persistence
369             */
370            public DLContentPersistence getDLContentPersistence() {
371                    return dlContentPersistence;
372            }
373    
374            /**
375             * Sets the document library content persistence.
376             *
377             * @param dlContentPersistence the document library content persistence
378             */
379            public void setDLContentPersistence(
380                    DLContentPersistence dlContentPersistence) {
381                    this.dlContentPersistence = dlContentPersistence;
382            }
383    
384            /**
385             * Returns the document library file entry local service.
386             *
387             * @return the document library file entry local service
388             */
389            public DLFileEntryLocalService getDLFileEntryLocalService() {
390                    return dlFileEntryLocalService;
391            }
392    
393            /**
394             * Sets the document library file entry local service.
395             *
396             * @param dlFileEntryLocalService the document library file entry local service
397             */
398            public void setDLFileEntryLocalService(
399                    DLFileEntryLocalService dlFileEntryLocalService) {
400                    this.dlFileEntryLocalService = dlFileEntryLocalService;
401            }
402    
403            /**
404             * Returns the document library file entry remote service.
405             *
406             * @return the document library file entry remote service
407             */
408            public DLFileEntryService getDLFileEntryService() {
409                    return dlFileEntryService;
410            }
411    
412            /**
413             * Sets the document library file entry remote service.
414             *
415             * @param dlFileEntryService the document library file entry remote service
416             */
417            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
418                    this.dlFileEntryService = dlFileEntryService;
419            }
420    
421            /**
422             * Returns the document library file entry persistence.
423             *
424             * @return the document library file entry persistence
425             */
426            public DLFileEntryPersistence getDLFileEntryPersistence() {
427                    return dlFileEntryPersistence;
428            }
429    
430            /**
431             * Sets the document library file entry persistence.
432             *
433             * @param dlFileEntryPersistence the document library file entry persistence
434             */
435            public void setDLFileEntryPersistence(
436                    DLFileEntryPersistence dlFileEntryPersistence) {
437                    this.dlFileEntryPersistence = dlFileEntryPersistence;
438            }
439    
440            /**
441             * Returns the document library file entry finder.
442             *
443             * @return the document library file entry finder
444             */
445            public DLFileEntryFinder getDLFileEntryFinder() {
446                    return dlFileEntryFinder;
447            }
448    
449            /**
450             * Sets the document library file entry finder.
451             *
452             * @param dlFileEntryFinder the document library file entry finder
453             */
454            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
455                    this.dlFileEntryFinder = dlFileEntryFinder;
456            }
457    
458            /**
459             * Returns the document library file entry metadata local service.
460             *
461             * @return the document library file entry metadata local service
462             */
463            public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
464                    return dlFileEntryMetadataLocalService;
465            }
466    
467            /**
468             * Sets the document library file entry metadata local service.
469             *
470             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
471             */
472            public void setDLFileEntryMetadataLocalService(
473                    DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
474                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
475            }
476    
477            /**
478             * Returns the document library file entry metadata persistence.
479             *
480             * @return the document library file entry metadata persistence
481             */
482            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
483                    return dlFileEntryMetadataPersistence;
484            }
485    
486            /**
487             * Sets the document library file entry metadata persistence.
488             *
489             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
490             */
491            public void setDLFileEntryMetadataPersistence(
492                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
493                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
494            }
495    
496            /**
497             * Returns the document library file entry type local service.
498             *
499             * @return the document library file entry type local service
500             */
501            public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
502                    return dlFileEntryTypeLocalService;
503            }
504    
505            /**
506             * Sets the document library file entry type local service.
507             *
508             * @param dlFileEntryTypeLocalService the document library file entry type local service
509             */
510            public void setDLFileEntryTypeLocalService(
511                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
512                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
513            }
514    
515            /**
516             * Returns the document library file entry type remote service.
517             *
518             * @return the document library file entry type remote service
519             */
520            public DLFileEntryTypeService getDLFileEntryTypeService() {
521                    return dlFileEntryTypeService;
522            }
523    
524            /**
525             * Sets the document library file entry type remote service.
526             *
527             * @param dlFileEntryTypeService the document library file entry type remote service
528             */
529            public void setDLFileEntryTypeService(
530                    DLFileEntryTypeService dlFileEntryTypeService) {
531                    this.dlFileEntryTypeService = dlFileEntryTypeService;
532            }
533    
534            /**
535             * Returns the document library file entry type persistence.
536             *
537             * @return the document library file entry type persistence
538             */
539            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
540                    return dlFileEntryTypePersistence;
541            }
542    
543            /**
544             * Sets the document library file entry type persistence.
545             *
546             * @param dlFileEntryTypePersistence the document library file entry type persistence
547             */
548            public void setDLFileEntryTypePersistence(
549                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
550                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
551            }
552    
553            /**
554             * Returns the document library file entry type finder.
555             *
556             * @return the document library file entry type finder
557             */
558            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
559                    return dlFileEntryTypeFinder;
560            }
561    
562            /**
563             * Sets the document library file entry type finder.
564             *
565             * @param dlFileEntryTypeFinder the document library file entry type finder
566             */
567            public void setDLFileEntryTypeFinder(
568                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
569                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
570            }
571    
572            /**
573             * Returns the document library file rank local service.
574             *
575             * @return the document library file rank local service
576             */
577            public DLFileRankLocalService getDLFileRankLocalService() {
578                    return dlFileRankLocalService;
579            }
580    
581            /**
582             * Sets the document library file rank local service.
583             *
584             * @param dlFileRankLocalService the document library file rank local service
585             */
586            public void setDLFileRankLocalService(
587                    DLFileRankLocalService dlFileRankLocalService) {
588                    this.dlFileRankLocalService = dlFileRankLocalService;
589            }
590    
591            /**
592             * Returns the document library file rank persistence.
593             *
594             * @return the document library file rank persistence
595             */
596            public DLFileRankPersistence getDLFileRankPersistence() {
597                    return dlFileRankPersistence;
598            }
599    
600            /**
601             * Sets the document library file rank persistence.
602             *
603             * @param dlFileRankPersistence the document library file rank persistence
604             */
605            public void setDLFileRankPersistence(
606                    DLFileRankPersistence dlFileRankPersistence) {
607                    this.dlFileRankPersistence = dlFileRankPersistence;
608            }
609    
610            /**
611             * Returns the document library file rank finder.
612             *
613             * @return the document library file rank finder
614             */
615            public DLFileRankFinder getDLFileRankFinder() {
616                    return dlFileRankFinder;
617            }
618    
619            /**
620             * Sets the document library file rank finder.
621             *
622             * @param dlFileRankFinder the document library file rank finder
623             */
624            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
625                    this.dlFileRankFinder = dlFileRankFinder;
626            }
627    
628            /**
629             * Returns the document library file shortcut local service.
630             *
631             * @return the document library file shortcut local service
632             */
633            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
634                    return dlFileShortcutLocalService;
635            }
636    
637            /**
638             * Sets the document library file shortcut local service.
639             *
640             * @param dlFileShortcutLocalService the document library file shortcut local service
641             */
642            public void setDLFileShortcutLocalService(
643                    DLFileShortcutLocalService dlFileShortcutLocalService) {
644                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
645            }
646    
647            /**
648             * Returns the document library file shortcut remote service.
649             *
650             * @return the document library file shortcut remote service
651             */
652            public DLFileShortcutService getDLFileShortcutService() {
653                    return dlFileShortcutService;
654            }
655    
656            /**
657             * Sets the document library file shortcut remote service.
658             *
659             * @param dlFileShortcutService the document library file shortcut remote service
660             */
661            public void setDLFileShortcutService(
662                    DLFileShortcutService dlFileShortcutService) {
663                    this.dlFileShortcutService = dlFileShortcutService;
664            }
665    
666            /**
667             * Returns the document library file shortcut persistence.
668             *
669             * @return the document library file shortcut persistence
670             */
671            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
672                    return dlFileShortcutPersistence;
673            }
674    
675            /**
676             * Sets the document library file shortcut persistence.
677             *
678             * @param dlFileShortcutPersistence the document library file shortcut persistence
679             */
680            public void setDLFileShortcutPersistence(
681                    DLFileShortcutPersistence dlFileShortcutPersistence) {
682                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
683            }
684    
685            /**
686             * Returns the document library file version local service.
687             *
688             * @return the document library file version local service
689             */
690            public DLFileVersionLocalService getDLFileVersionLocalService() {
691                    return dlFileVersionLocalService;
692            }
693    
694            /**
695             * Sets the document library file version local service.
696             *
697             * @param dlFileVersionLocalService the document library file version local service
698             */
699            public void setDLFileVersionLocalService(
700                    DLFileVersionLocalService dlFileVersionLocalService) {
701                    this.dlFileVersionLocalService = dlFileVersionLocalService;
702            }
703    
704            /**
705             * Returns the document library file version remote service.
706             *
707             * @return the document library file version remote service
708             */
709            public DLFileVersionService getDLFileVersionService() {
710                    return dlFileVersionService;
711            }
712    
713            /**
714             * Sets the document library file version remote service.
715             *
716             * @param dlFileVersionService the document library file version remote service
717             */
718            public void setDLFileVersionService(
719                    DLFileVersionService dlFileVersionService) {
720                    this.dlFileVersionService = dlFileVersionService;
721            }
722    
723            /**
724             * Returns the document library file version persistence.
725             *
726             * @return the document library file version persistence
727             */
728            public DLFileVersionPersistence getDLFileVersionPersistence() {
729                    return dlFileVersionPersistence;
730            }
731    
732            /**
733             * Sets the document library file version persistence.
734             *
735             * @param dlFileVersionPersistence the document library file version persistence
736             */
737            public void setDLFileVersionPersistence(
738                    DLFileVersionPersistence dlFileVersionPersistence) {
739                    this.dlFileVersionPersistence = dlFileVersionPersistence;
740            }
741    
742            /**
743             * Returns the document library folder local service.
744             *
745             * @return the document library folder local service
746             */
747            public DLFolderLocalService getDLFolderLocalService() {
748                    return dlFolderLocalService;
749            }
750    
751            /**
752             * Sets the document library folder local service.
753             *
754             * @param dlFolderLocalService the document library folder local service
755             */
756            public void setDLFolderLocalService(
757                    DLFolderLocalService dlFolderLocalService) {
758                    this.dlFolderLocalService = dlFolderLocalService;
759            }
760    
761            /**
762             * Returns the document library folder remote service.
763             *
764             * @return the document library folder remote service
765             */
766            public DLFolderService getDLFolderService() {
767                    return dlFolderService;
768            }
769    
770            /**
771             * Sets the document library folder remote service.
772             *
773             * @param dlFolderService the document library folder remote service
774             */
775            public void setDLFolderService(DLFolderService dlFolderService) {
776                    this.dlFolderService = dlFolderService;
777            }
778    
779            /**
780             * Returns the document library folder persistence.
781             *
782             * @return the document library folder persistence
783             */
784            public DLFolderPersistence getDLFolderPersistence() {
785                    return dlFolderPersistence;
786            }
787    
788            /**
789             * Sets the document library folder persistence.
790             *
791             * @param dlFolderPersistence the document library folder persistence
792             */
793            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
794                    this.dlFolderPersistence = dlFolderPersistence;
795            }
796    
797            /**
798             * Returns the document library folder finder.
799             *
800             * @return the document library folder finder
801             */
802            public DLFolderFinder getDLFolderFinder() {
803                    return dlFolderFinder;
804            }
805    
806            /**
807             * Sets the document library folder finder.
808             *
809             * @param dlFolderFinder the document library folder finder
810             */
811            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
812                    this.dlFolderFinder = dlFolderFinder;
813            }
814    
815            /**
816             * Returns the d l sync local service.
817             *
818             * @return the d l sync local service
819             */
820            public DLSyncLocalService getDLSyncLocalService() {
821                    return dlSyncLocalService;
822            }
823    
824            /**
825             * Sets the d l sync local service.
826             *
827             * @param dlSyncLocalService the d l sync local service
828             */
829            public void setDLSyncLocalService(DLSyncLocalService dlSyncLocalService) {
830                    this.dlSyncLocalService = dlSyncLocalService;
831            }
832    
833            /**
834             * Returns the d l sync remote service.
835             *
836             * @return the d l sync remote service
837             */
838            public DLSyncService getDLSyncService() {
839                    return dlSyncService;
840            }
841    
842            /**
843             * Sets the d l sync remote service.
844             *
845             * @param dlSyncService the d l sync remote service
846             */
847            public void setDLSyncService(DLSyncService dlSyncService) {
848                    this.dlSyncService = dlSyncService;
849            }
850    
851            /**
852             * Returns the d l sync persistence.
853             *
854             * @return the d l sync persistence
855             */
856            public DLSyncPersistence getDLSyncPersistence() {
857                    return dlSyncPersistence;
858            }
859    
860            /**
861             * Sets the d l sync persistence.
862             *
863             * @param dlSyncPersistence the d l sync persistence
864             */
865            public void setDLSyncPersistence(DLSyncPersistence dlSyncPersistence) {
866                    this.dlSyncPersistence = dlSyncPersistence;
867            }
868    
869            /**
870             * Returns the d l sync finder.
871             *
872             * @return the d l sync finder
873             */
874            public DLSyncFinder getDLSyncFinder() {
875                    return dlSyncFinder;
876            }
877    
878            /**
879             * Sets the d l sync finder.
880             *
881             * @param dlSyncFinder the d l sync finder
882             */
883            public void setDLSyncFinder(DLSyncFinder dlSyncFinder) {
884                    this.dlSyncFinder = dlSyncFinder;
885            }
886    
887            /**
888             * Returns the counter local service.
889             *
890             * @return the counter local service
891             */
892            public CounterLocalService getCounterLocalService() {
893                    return counterLocalService;
894            }
895    
896            /**
897             * Sets the counter local service.
898             *
899             * @param counterLocalService the counter local service
900             */
901            public void setCounterLocalService(CounterLocalService counterLocalService) {
902                    this.counterLocalService = counterLocalService;
903            }
904    
905            /**
906             * Returns the resource local service.
907             *
908             * @return the resource local service
909             */
910            public ResourceLocalService getResourceLocalService() {
911                    return resourceLocalService;
912            }
913    
914            /**
915             * Sets the resource local service.
916             *
917             * @param resourceLocalService the resource local service
918             */
919            public void setResourceLocalService(
920                    ResourceLocalService resourceLocalService) {
921                    this.resourceLocalService = resourceLocalService;
922            }
923    
924            /**
925             * Returns the user local service.
926             *
927             * @return the user local service
928             */
929            public UserLocalService getUserLocalService() {
930                    return userLocalService;
931            }
932    
933            /**
934             * Sets the user local service.
935             *
936             * @param userLocalService the user local service
937             */
938            public void setUserLocalService(UserLocalService userLocalService) {
939                    this.userLocalService = userLocalService;
940            }
941    
942            /**
943             * Returns the user remote service.
944             *
945             * @return the user remote service
946             */
947            public UserService getUserService() {
948                    return userService;
949            }
950    
951            /**
952             * Sets the user remote service.
953             *
954             * @param userService the user remote service
955             */
956            public void setUserService(UserService userService) {
957                    this.userService = userService;
958            }
959    
960            /**
961             * Returns the user persistence.
962             *
963             * @return the user persistence
964             */
965            public UserPersistence getUserPersistence() {
966                    return userPersistence;
967            }
968    
969            /**
970             * Sets the user persistence.
971             *
972             * @param userPersistence the user persistence
973             */
974            public void setUserPersistence(UserPersistence userPersistence) {
975                    this.userPersistence = userPersistence;
976            }
977    
978            /**
979             * Returns the user finder.
980             *
981             * @return the user finder
982             */
983            public UserFinder getUserFinder() {
984                    return userFinder;
985            }
986    
987            /**
988             * Sets the user finder.
989             *
990             * @param userFinder the user finder
991             */
992            public void setUserFinder(UserFinder userFinder) {
993                    this.userFinder = userFinder;
994            }
995    
996            /**
997             * Returns the d d m structure link local service.
998             *
999             * @return the d d m structure link local service
1000             */
1001            public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
1002                    return ddmStructureLinkLocalService;
1003            }
1004    
1005            /**
1006             * Sets the d d m structure link local service.
1007             *
1008             * @param ddmStructureLinkLocalService the d d m structure link local service
1009             */
1010            public void setDDMStructureLinkLocalService(
1011                    DDMStructureLinkLocalService ddmStructureLinkLocalService) {
1012                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
1013            }
1014    
1015            /**
1016             * Returns the d d m structure link persistence.
1017             *
1018             * @return the d d m structure link persistence
1019             */
1020            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
1021                    return ddmStructureLinkPersistence;
1022            }
1023    
1024            /**
1025             * Sets the d d m structure link persistence.
1026             *
1027             * @param ddmStructureLinkPersistence the d d m structure link persistence
1028             */
1029            public void setDDMStructureLinkPersistence(
1030                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
1031                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
1032            }
1033    
1034            public void afterPropertiesSet() {
1035                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata",
1036                            dlFileEntryMetadataLocalService);
1037            }
1038    
1039            public void destroy() {
1040                    persistedModelLocalServiceRegistry.unregister(
1041                            "com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata");
1042            }
1043    
1044            /**
1045             * Returns the Spring bean ID for this bean.
1046             *
1047             * @return the Spring bean ID for this bean
1048             */
1049            public String getBeanIdentifier() {
1050                    return _beanIdentifier;
1051            }
1052    
1053            /**
1054             * Sets the Spring bean ID for this bean.
1055             *
1056             * @param beanIdentifier the Spring bean ID for this bean
1057             */
1058            public void setBeanIdentifier(String beanIdentifier) {
1059                    _beanIdentifier = beanIdentifier;
1060            }
1061    
1062            protected Class<?> getModelClass() {
1063                    return DLFileEntryMetadata.class;
1064            }
1065    
1066            protected String getModelClassName() {
1067                    return DLFileEntryMetadata.class.getName();
1068            }
1069    
1070            /**
1071             * Performs an SQL query.
1072             *
1073             * @param sql the sql query
1074             */
1075            protected void runSQL(String sql) throws SystemException {
1076                    try {
1077                            DataSource dataSource = dlFileEntryMetadataPersistence.getDataSource();
1078    
1079                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1080                                            sql, new int[0]);
1081    
1082                            sqlUpdate.update();
1083                    }
1084                    catch (Exception e) {
1085                            throw new SystemException(e);
1086                    }
1087            }
1088    
1089            @BeanReference(type = DLAppLocalService.class)
1090            protected DLAppLocalService dlAppLocalService;
1091            @BeanReference(type = DLAppService.class)
1092            protected DLAppService dlAppService;
1093            @BeanReference(type = DLAppHelperLocalService.class)
1094            protected DLAppHelperLocalService dlAppHelperLocalService;
1095            @BeanReference(type = DLContentLocalService.class)
1096            protected DLContentLocalService dlContentLocalService;
1097            @BeanReference(type = DLContentPersistence.class)
1098            protected DLContentPersistence dlContentPersistence;
1099            @BeanReference(type = DLFileEntryLocalService.class)
1100            protected DLFileEntryLocalService dlFileEntryLocalService;
1101            @BeanReference(type = DLFileEntryService.class)
1102            protected DLFileEntryService dlFileEntryService;
1103            @BeanReference(type = DLFileEntryPersistence.class)
1104            protected DLFileEntryPersistence dlFileEntryPersistence;
1105            @BeanReference(type = DLFileEntryFinder.class)
1106            protected DLFileEntryFinder dlFileEntryFinder;
1107            @BeanReference(type = DLFileEntryMetadataLocalService.class)
1108            protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1109            @BeanReference(type = DLFileEntryMetadataPersistence.class)
1110            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1111            @BeanReference(type = DLFileEntryTypeLocalService.class)
1112            protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1113            @BeanReference(type = DLFileEntryTypeService.class)
1114            protected DLFileEntryTypeService dlFileEntryTypeService;
1115            @BeanReference(type = DLFileEntryTypePersistence.class)
1116            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1117            @BeanReference(type = DLFileEntryTypeFinder.class)
1118            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1119            @BeanReference(type = DLFileRankLocalService.class)
1120            protected DLFileRankLocalService dlFileRankLocalService;
1121            @BeanReference(type = DLFileRankPersistence.class)
1122            protected DLFileRankPersistence dlFileRankPersistence;
1123            @BeanReference(type = DLFileRankFinder.class)
1124            protected DLFileRankFinder dlFileRankFinder;
1125            @BeanReference(type = DLFileShortcutLocalService.class)
1126            protected DLFileShortcutLocalService dlFileShortcutLocalService;
1127            @BeanReference(type = DLFileShortcutService.class)
1128            protected DLFileShortcutService dlFileShortcutService;
1129            @BeanReference(type = DLFileShortcutPersistence.class)
1130            protected DLFileShortcutPersistence dlFileShortcutPersistence;
1131            @BeanReference(type = DLFileVersionLocalService.class)
1132            protected DLFileVersionLocalService dlFileVersionLocalService;
1133            @BeanReference(type = DLFileVersionService.class)
1134            protected DLFileVersionService dlFileVersionService;
1135            @BeanReference(type = DLFileVersionPersistence.class)
1136            protected DLFileVersionPersistence dlFileVersionPersistence;
1137            @BeanReference(type = DLFolderLocalService.class)
1138            protected DLFolderLocalService dlFolderLocalService;
1139            @BeanReference(type = DLFolderService.class)
1140            protected DLFolderService dlFolderService;
1141            @BeanReference(type = DLFolderPersistence.class)
1142            protected DLFolderPersistence dlFolderPersistence;
1143            @BeanReference(type = DLFolderFinder.class)
1144            protected DLFolderFinder dlFolderFinder;
1145            @BeanReference(type = DLSyncLocalService.class)
1146            protected DLSyncLocalService dlSyncLocalService;
1147            @BeanReference(type = DLSyncService.class)
1148            protected DLSyncService dlSyncService;
1149            @BeanReference(type = DLSyncPersistence.class)
1150            protected DLSyncPersistence dlSyncPersistence;
1151            @BeanReference(type = DLSyncFinder.class)
1152            protected DLSyncFinder dlSyncFinder;
1153            @BeanReference(type = CounterLocalService.class)
1154            protected CounterLocalService counterLocalService;
1155            @BeanReference(type = ResourceLocalService.class)
1156            protected ResourceLocalService resourceLocalService;
1157            @BeanReference(type = UserLocalService.class)
1158            protected UserLocalService userLocalService;
1159            @BeanReference(type = UserService.class)
1160            protected UserService userService;
1161            @BeanReference(type = UserPersistence.class)
1162            protected UserPersistence userPersistence;
1163            @BeanReference(type = UserFinder.class)
1164            protected UserFinder userFinder;
1165            @BeanReference(type = DDMStructureLinkLocalService.class)
1166            protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
1167            @BeanReference(type = DDMStructureLinkPersistence.class)
1168            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
1169            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1170            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1171            private String _beanIdentifier;
1172    }