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.dynamicdatamapping.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.dynamicdatamapping.model.DDMStructureLink;
040    import com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService;
041    import com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService;
042    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
043    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
044    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
045    import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService;
046    import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService;
047    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
048    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
049    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
050    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
051    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
052    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
053    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
054    
055    import java.io.Serializable;
056    
057    import java.util.List;
058    
059    import javax.sql.DataSource;
060    
061    /**
062     * The base implementation of the d d m structure link local service.
063     *
064     * <p>
065     * 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.dynamicdatamapping.service.impl.DDMStructureLinkLocalServiceImpl}.
066     * </p>
067     *
068     * @author Brian Wing Shun Chan
069     * @see com.liferay.portlet.dynamicdatamapping.service.impl.DDMStructureLinkLocalServiceImpl
070     * @see com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalServiceUtil
071     * @generated
072     */
073    public abstract class DDMStructureLinkLocalServiceBaseImpl
074            extends BaseLocalServiceImpl implements DDMStructureLinkLocalService,
075                    IdentifiableBean {
076            /*
077             * NOTE FOR DEVELOPERS:
078             *
079             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalServiceUtil} to access the d d m structure link local service.
080             */
081    
082            /**
083             * Adds the d d m structure link to the database. Also notifies the appropriate model listeners.
084             *
085             * @param ddmStructureLink the d d m structure link
086             * @return the d d m structure link that was added
087             * @throws SystemException if a system exception occurred
088             */
089            @Indexable(type = IndexableType.REINDEX)
090            public DDMStructureLink addDDMStructureLink(
091                    DDMStructureLink ddmStructureLink) throws SystemException {
092                    ddmStructureLink.setNew(true);
093    
094                    return ddmStructureLinkPersistence.update(ddmStructureLink);
095            }
096    
097            /**
098             * Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database.
099             *
100             * @param structureLinkId the primary key for the new d d m structure link
101             * @return the new d d m structure link
102             */
103            public DDMStructureLink createDDMStructureLink(long structureLinkId) {
104                    return ddmStructureLinkPersistence.create(structureLinkId);
105            }
106    
107            /**
108             * Deletes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners.
109             *
110             * @param structureLinkId the primary key of the d d m structure link
111             * @return the d d m structure link that was removed
112             * @throws PortalException if a d d m structure link with the primary key could not be found
113             * @throws SystemException if a system exception occurred
114             */
115            @Indexable(type = IndexableType.DELETE)
116            public DDMStructureLink deleteDDMStructureLink(long structureLinkId)
117                    throws PortalException, SystemException {
118                    return ddmStructureLinkPersistence.remove(structureLinkId);
119            }
120    
121            /**
122             * Deletes the d d m structure link from the database. Also notifies the appropriate model listeners.
123             *
124             * @param ddmStructureLink the d d m structure link
125             * @return the d d m structure link that was removed
126             * @throws SystemException if a system exception occurred
127             */
128            @Indexable(type = IndexableType.DELETE)
129            public DDMStructureLink deleteDDMStructureLink(
130                    DDMStructureLink ddmStructureLink) throws SystemException {
131                    return ddmStructureLinkPersistence.remove(ddmStructureLink);
132            }
133    
134            public DynamicQuery dynamicQuery() {
135                    Class<?> clazz = getClass();
136    
137                    return DynamicQueryFactoryUtil.forClass(DDMStructureLink.class,
138                            clazz.getClassLoader());
139            }
140    
141            /**
142             * Performs a dynamic query on the database and returns the matching rows.
143             *
144             * @param dynamicQuery the dynamic query
145             * @return the matching rows
146             * @throws SystemException if a system exception occurred
147             */
148            @SuppressWarnings("rawtypes")
149            public List dynamicQuery(DynamicQuery dynamicQuery)
150                    throws SystemException {
151                    return ddmStructureLinkPersistence.findWithDynamicQuery(dynamicQuery);
152            }
153    
154            /**
155             * Performs a dynamic query on the database and returns a range of the matching rows.
156             *
157             * <p>
158             * 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.dynamicdatamapping.model.impl.DDMStructureLinkModelImpl}. 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.
159             * </p>
160             *
161             * @param dynamicQuery the dynamic query
162             * @param start the lower bound of the range of model instances
163             * @param end the upper bound of the range of model instances (not inclusive)
164             * @return the range of matching rows
165             * @throws SystemException if a system exception occurred
166             */
167            @SuppressWarnings("rawtypes")
168            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
169                    throws SystemException {
170                    return ddmStructureLinkPersistence.findWithDynamicQuery(dynamicQuery,
171                            start, end);
172            }
173    
174            /**
175             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
176             *
177             * <p>
178             * 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.dynamicdatamapping.model.impl.DDMStructureLinkModelImpl}. 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.
179             * </p>
180             *
181             * @param dynamicQuery the dynamic query
182             * @param start the lower bound of the range of model instances
183             * @param end the upper bound of the range of model instances (not inclusive)
184             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
185             * @return the ordered 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                    OrderByComparator orderByComparator) throws SystemException {
191                    return ddmStructureLinkPersistence.findWithDynamicQuery(dynamicQuery,
192                            start, end, orderByComparator);
193            }
194    
195            /**
196             * Returns the number of rows that match the dynamic query.
197             *
198             * @param dynamicQuery the dynamic query
199             * @return the number of rows that match the dynamic query
200             * @throws SystemException if a system exception occurred
201             */
202            public long dynamicQueryCount(DynamicQuery dynamicQuery)
203                    throws SystemException {
204                    return ddmStructureLinkPersistence.countWithDynamicQuery(dynamicQuery);
205            }
206    
207            public DDMStructureLink fetchDDMStructureLink(long structureLinkId)
208                    throws SystemException {
209                    return ddmStructureLinkPersistence.fetchByPrimaryKey(structureLinkId);
210            }
211    
212            /**
213             * Returns the d d m structure link with the primary key.
214             *
215             * @param structureLinkId the primary key of the d d m structure link
216             * @return the d d m structure link
217             * @throws PortalException if a d d m structure link with the primary key could not be found
218             * @throws SystemException if a system exception occurred
219             */
220            public DDMStructureLink getDDMStructureLink(long structureLinkId)
221                    throws PortalException, SystemException {
222                    return ddmStructureLinkPersistence.findByPrimaryKey(structureLinkId);
223            }
224    
225            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
226                    throws PortalException, SystemException {
227                    return ddmStructureLinkPersistence.findByPrimaryKey(primaryKeyObj);
228            }
229    
230            /**
231             * Returns a range of all the d d m structure links.
232             *
233             * <p>
234             * 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.dynamicdatamapping.model.impl.DDMStructureLinkModelImpl}. 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.
235             * </p>
236             *
237             * @param start the lower bound of the range of d d m structure links
238             * @param end the upper bound of the range of d d m structure links (not inclusive)
239             * @return the range of d d m structure links
240             * @throws SystemException if a system exception occurred
241             */
242            public List<DDMStructureLink> getDDMStructureLinks(int start, int end)
243                    throws SystemException {
244                    return ddmStructureLinkPersistence.findAll(start, end);
245            }
246    
247            /**
248             * Returns the number of d d m structure links.
249             *
250             * @return the number of d d m structure links
251             * @throws SystemException if a system exception occurred
252             */
253            public int getDDMStructureLinksCount() throws SystemException {
254                    return ddmStructureLinkPersistence.countAll();
255            }
256    
257            /**
258             * Updates the d d m structure link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
259             *
260             * @param ddmStructureLink the d d m structure link
261             * @return the d d m structure link that was updated
262             * @throws SystemException if a system exception occurred
263             */
264            @Indexable(type = IndexableType.REINDEX)
265            public DDMStructureLink updateDDMStructureLink(
266                    DDMStructureLink ddmStructureLink) throws SystemException {
267                    return ddmStructureLinkPersistence.update(ddmStructureLink);
268            }
269    
270            /**
271             * Returns the d d m content local service.
272             *
273             * @return the d d m content local service
274             */
275            public DDMContentLocalService getDDMContentLocalService() {
276                    return ddmContentLocalService;
277            }
278    
279            /**
280             * Sets the d d m content local service.
281             *
282             * @param ddmContentLocalService the d d m content local service
283             */
284            public void setDDMContentLocalService(
285                    DDMContentLocalService ddmContentLocalService) {
286                    this.ddmContentLocalService = ddmContentLocalService;
287            }
288    
289            /**
290             * Returns the d d m content persistence.
291             *
292             * @return the d d m content persistence
293             */
294            public DDMContentPersistence getDDMContentPersistence() {
295                    return ddmContentPersistence;
296            }
297    
298            /**
299             * Sets the d d m content persistence.
300             *
301             * @param ddmContentPersistence the d d m content persistence
302             */
303            public void setDDMContentPersistence(
304                    DDMContentPersistence ddmContentPersistence) {
305                    this.ddmContentPersistence = ddmContentPersistence;
306            }
307    
308            /**
309             * Returns the d d m storage link local service.
310             *
311             * @return the d d m storage link local service
312             */
313            public DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
314                    return ddmStorageLinkLocalService;
315            }
316    
317            /**
318             * Sets the d d m storage link local service.
319             *
320             * @param ddmStorageLinkLocalService the d d m storage link local service
321             */
322            public void setDDMStorageLinkLocalService(
323                    DDMStorageLinkLocalService ddmStorageLinkLocalService) {
324                    this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
325            }
326    
327            /**
328             * Returns the d d m storage link persistence.
329             *
330             * @return the d d m storage link persistence
331             */
332            public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
333                    return ddmStorageLinkPersistence;
334            }
335    
336            /**
337             * Sets the d d m storage link persistence.
338             *
339             * @param ddmStorageLinkPersistence the d d m storage link persistence
340             */
341            public void setDDMStorageLinkPersistence(
342                    DDMStorageLinkPersistence ddmStorageLinkPersistence) {
343                    this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
344            }
345    
346            /**
347             * Returns the d d m structure local service.
348             *
349             * @return the d d m structure local service
350             */
351            public DDMStructureLocalService getDDMStructureLocalService() {
352                    return ddmStructureLocalService;
353            }
354    
355            /**
356             * Sets the d d m structure local service.
357             *
358             * @param ddmStructureLocalService the d d m structure local service
359             */
360            public void setDDMStructureLocalService(
361                    DDMStructureLocalService ddmStructureLocalService) {
362                    this.ddmStructureLocalService = ddmStructureLocalService;
363            }
364    
365            /**
366             * Returns the d d m structure remote service.
367             *
368             * @return the d d m structure remote service
369             */
370            public DDMStructureService getDDMStructureService() {
371                    return ddmStructureService;
372            }
373    
374            /**
375             * Sets the d d m structure remote service.
376             *
377             * @param ddmStructureService the d d m structure remote service
378             */
379            public void setDDMStructureService(DDMStructureService ddmStructureService) {
380                    this.ddmStructureService = ddmStructureService;
381            }
382    
383            /**
384             * Returns the d d m structure persistence.
385             *
386             * @return the d d m structure persistence
387             */
388            public DDMStructurePersistence getDDMStructurePersistence() {
389                    return ddmStructurePersistence;
390            }
391    
392            /**
393             * Sets the d d m structure persistence.
394             *
395             * @param ddmStructurePersistence the d d m structure persistence
396             */
397            public void setDDMStructurePersistence(
398                    DDMStructurePersistence ddmStructurePersistence) {
399                    this.ddmStructurePersistence = ddmStructurePersistence;
400            }
401    
402            /**
403             * Returns the d d m structure finder.
404             *
405             * @return the d d m structure finder
406             */
407            public DDMStructureFinder getDDMStructureFinder() {
408                    return ddmStructureFinder;
409            }
410    
411            /**
412             * Sets the d d m structure finder.
413             *
414             * @param ddmStructureFinder the d d m structure finder
415             */
416            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
417                    this.ddmStructureFinder = ddmStructureFinder;
418            }
419    
420            /**
421             * Returns the d d m structure link local service.
422             *
423             * @return the d d m structure link local service
424             */
425            public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
426                    return ddmStructureLinkLocalService;
427            }
428    
429            /**
430             * Sets the d d m structure link local service.
431             *
432             * @param ddmStructureLinkLocalService the d d m structure link local service
433             */
434            public void setDDMStructureLinkLocalService(
435                    DDMStructureLinkLocalService ddmStructureLinkLocalService) {
436                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
437            }
438    
439            /**
440             * Returns the d d m structure link persistence.
441             *
442             * @return the d d m structure link persistence
443             */
444            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
445                    return ddmStructureLinkPersistence;
446            }
447    
448            /**
449             * Sets the d d m structure link persistence.
450             *
451             * @param ddmStructureLinkPersistence the d d m structure link persistence
452             */
453            public void setDDMStructureLinkPersistence(
454                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
455                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
456            }
457    
458            /**
459             * Returns the d d m template local service.
460             *
461             * @return the d d m template local service
462             */
463            public DDMTemplateLocalService getDDMTemplateLocalService() {
464                    return ddmTemplateLocalService;
465            }
466    
467            /**
468             * Sets the d d m template local service.
469             *
470             * @param ddmTemplateLocalService the d d m template local service
471             */
472            public void setDDMTemplateLocalService(
473                    DDMTemplateLocalService ddmTemplateLocalService) {
474                    this.ddmTemplateLocalService = ddmTemplateLocalService;
475            }
476    
477            /**
478             * Returns the d d m template remote service.
479             *
480             * @return the d d m template remote service
481             */
482            public DDMTemplateService getDDMTemplateService() {
483                    return ddmTemplateService;
484            }
485    
486            /**
487             * Sets the d d m template remote service.
488             *
489             * @param ddmTemplateService the d d m template remote service
490             */
491            public void setDDMTemplateService(DDMTemplateService ddmTemplateService) {
492                    this.ddmTemplateService = ddmTemplateService;
493            }
494    
495            /**
496             * Returns the d d m template persistence.
497             *
498             * @return the d d m template persistence
499             */
500            public DDMTemplatePersistence getDDMTemplatePersistence() {
501                    return ddmTemplatePersistence;
502            }
503    
504            /**
505             * Sets the d d m template persistence.
506             *
507             * @param ddmTemplatePersistence the d d m template persistence
508             */
509            public void setDDMTemplatePersistence(
510                    DDMTemplatePersistence ddmTemplatePersistence) {
511                    this.ddmTemplatePersistence = ddmTemplatePersistence;
512            }
513    
514            /**
515             * Returns the d d m template finder.
516             *
517             * @return the d d m template finder
518             */
519            public DDMTemplateFinder getDDMTemplateFinder() {
520                    return ddmTemplateFinder;
521            }
522    
523            /**
524             * Sets the d d m template finder.
525             *
526             * @param ddmTemplateFinder the d d m template finder
527             */
528            public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
529                    this.ddmTemplateFinder = ddmTemplateFinder;
530            }
531    
532            /**
533             * Returns the counter local service.
534             *
535             * @return the counter local service
536             */
537            public CounterLocalService getCounterLocalService() {
538                    return counterLocalService;
539            }
540    
541            /**
542             * Sets the counter local service.
543             *
544             * @param counterLocalService the counter local service
545             */
546            public void setCounterLocalService(CounterLocalService counterLocalService) {
547                    this.counterLocalService = counterLocalService;
548            }
549    
550            /**
551             * Returns the resource local service.
552             *
553             * @return the resource local service
554             */
555            public ResourceLocalService getResourceLocalService() {
556                    return resourceLocalService;
557            }
558    
559            /**
560             * Sets the resource local service.
561             *
562             * @param resourceLocalService the resource local service
563             */
564            public void setResourceLocalService(
565                    ResourceLocalService resourceLocalService) {
566                    this.resourceLocalService = resourceLocalService;
567            }
568    
569            /**
570             * Returns the user local service.
571             *
572             * @return the user local service
573             */
574            public UserLocalService getUserLocalService() {
575                    return userLocalService;
576            }
577    
578            /**
579             * Sets the user local service.
580             *
581             * @param userLocalService the user local service
582             */
583            public void setUserLocalService(UserLocalService userLocalService) {
584                    this.userLocalService = userLocalService;
585            }
586    
587            /**
588             * Returns the user remote service.
589             *
590             * @return the user remote service
591             */
592            public UserService getUserService() {
593                    return userService;
594            }
595    
596            /**
597             * Sets the user remote service.
598             *
599             * @param userService the user remote service
600             */
601            public void setUserService(UserService userService) {
602                    this.userService = userService;
603            }
604    
605            /**
606             * Returns the user persistence.
607             *
608             * @return the user persistence
609             */
610            public UserPersistence getUserPersistence() {
611                    return userPersistence;
612            }
613    
614            /**
615             * Sets the user persistence.
616             *
617             * @param userPersistence the user persistence
618             */
619            public void setUserPersistence(UserPersistence userPersistence) {
620                    this.userPersistence = userPersistence;
621            }
622    
623            /**
624             * Returns the user finder.
625             *
626             * @return the user finder
627             */
628            public UserFinder getUserFinder() {
629                    return userFinder;
630            }
631    
632            /**
633             * Sets the user finder.
634             *
635             * @param userFinder the user finder
636             */
637            public void setUserFinder(UserFinder userFinder) {
638                    this.userFinder = userFinder;
639            }
640    
641            public void afterPropertiesSet() {
642                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink",
643                            ddmStructureLinkLocalService);
644            }
645    
646            public void destroy() {
647                    persistedModelLocalServiceRegistry.unregister(
648                            "com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink");
649            }
650    
651            /**
652             * Returns the Spring bean ID for this bean.
653             *
654             * @return the Spring bean ID for this bean
655             */
656            public String getBeanIdentifier() {
657                    return _beanIdentifier;
658            }
659    
660            /**
661             * Sets the Spring bean ID for this bean.
662             *
663             * @param beanIdentifier the Spring bean ID for this bean
664             */
665            public void setBeanIdentifier(String beanIdentifier) {
666                    _beanIdentifier = beanIdentifier;
667            }
668    
669            protected Class<?> getModelClass() {
670                    return DDMStructureLink.class;
671            }
672    
673            protected String getModelClassName() {
674                    return DDMStructureLink.class.getName();
675            }
676    
677            /**
678             * Performs an SQL query.
679             *
680             * @param sql the sql query
681             */
682            protected void runSQL(String sql) throws SystemException {
683                    try {
684                            DataSource dataSource = ddmStructureLinkPersistence.getDataSource();
685    
686                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
687                                            sql, new int[0]);
688    
689                            sqlUpdate.update();
690                    }
691                    catch (Exception e) {
692                            throw new SystemException(e);
693                    }
694            }
695    
696            @BeanReference(type = DDMContentLocalService.class)
697            protected DDMContentLocalService ddmContentLocalService;
698            @BeanReference(type = DDMContentPersistence.class)
699            protected DDMContentPersistence ddmContentPersistence;
700            @BeanReference(type = DDMStorageLinkLocalService.class)
701            protected DDMStorageLinkLocalService ddmStorageLinkLocalService;
702            @BeanReference(type = DDMStorageLinkPersistence.class)
703            protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
704            @BeanReference(type = DDMStructureLocalService.class)
705            protected DDMStructureLocalService ddmStructureLocalService;
706            @BeanReference(type = DDMStructureService.class)
707            protected DDMStructureService ddmStructureService;
708            @BeanReference(type = DDMStructurePersistence.class)
709            protected DDMStructurePersistence ddmStructurePersistence;
710            @BeanReference(type = DDMStructureFinder.class)
711            protected DDMStructureFinder ddmStructureFinder;
712            @BeanReference(type = DDMStructureLinkLocalService.class)
713            protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
714            @BeanReference(type = DDMStructureLinkPersistence.class)
715            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
716            @BeanReference(type = DDMTemplateLocalService.class)
717            protected DDMTemplateLocalService ddmTemplateLocalService;
718            @BeanReference(type = DDMTemplateService.class)
719            protected DDMTemplateService ddmTemplateService;
720            @BeanReference(type = DDMTemplatePersistence.class)
721            protected DDMTemplatePersistence ddmTemplatePersistence;
722            @BeanReference(type = DDMTemplateFinder.class)
723            protected DDMTemplateFinder ddmTemplateFinder;
724            @BeanReference(type = CounterLocalService.class)
725            protected CounterLocalService counterLocalService;
726            @BeanReference(type = ResourceLocalService.class)
727            protected ResourceLocalService resourceLocalService;
728            @BeanReference(type = UserLocalService.class)
729            protected UserLocalService userLocalService;
730            @BeanReference(type = UserService.class)
731            protected UserService userService;
732            @BeanReference(type = UserPersistence.class)
733            protected UserPersistence userPersistence;
734            @BeanReference(type = UserFinder.class)
735            protected UserFinder userFinder;
736            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
737            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
738            private String _beanIdentifier;
739    }