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.wiki.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.GroupLocalService;
033    import com.liferay.portal.service.GroupService;
034    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
035    import com.liferay.portal.service.ResourceLocalService;
036    import com.liferay.portal.service.SubscriptionLocalService;
037    import com.liferay.portal.service.UserLocalService;
038    import com.liferay.portal.service.UserService;
039    import com.liferay.portal.service.persistence.GroupFinder;
040    import com.liferay.portal.service.persistence.GroupPersistence;
041    import com.liferay.portal.service.persistence.SubscriptionPersistence;
042    import com.liferay.portal.service.persistence.UserFinder;
043    import com.liferay.portal.service.persistence.UserPersistence;
044    
045    import com.liferay.portlet.trash.service.TrashEntryLocalService;
046    import com.liferay.portlet.trash.service.TrashEntryService;
047    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
048    import com.liferay.portlet.wiki.model.WikiNode;
049    import com.liferay.portlet.wiki.service.WikiNodeLocalService;
050    import com.liferay.portlet.wiki.service.WikiNodeService;
051    import com.liferay.portlet.wiki.service.WikiPageLocalService;
052    import com.liferay.portlet.wiki.service.WikiPageResourceLocalService;
053    import com.liferay.portlet.wiki.service.WikiPageService;
054    import com.liferay.portlet.wiki.service.persistence.WikiNodePersistence;
055    import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
056    import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
057    import com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence;
058    
059    import java.io.Serializable;
060    
061    import java.util.List;
062    
063    import javax.sql.DataSource;
064    
065    /**
066     * The base implementation of the wiki node local service.
067     *
068     * <p>
069     * 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.wiki.service.impl.WikiNodeLocalServiceImpl}.
070     * </p>
071     *
072     * @author Brian Wing Shun Chan
073     * @see com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl
074     * @see com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil
075     * @generated
076     */
077    public abstract class WikiNodeLocalServiceBaseImpl extends BaseLocalServiceImpl
078            implements WikiNodeLocalService, IdentifiableBean {
079            /*
080             * NOTE FOR DEVELOPERS:
081             *
082             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil} to access the wiki node local service.
083             */
084    
085            /**
086             * Adds the wiki node to the database. Also notifies the appropriate model listeners.
087             *
088             * @param wikiNode the wiki node
089             * @return the wiki node that was added
090             * @throws SystemException if a system exception occurred
091             */
092            @Indexable(type = IndexableType.REINDEX)
093            public WikiNode addWikiNode(WikiNode wikiNode) throws SystemException {
094                    wikiNode.setNew(true);
095    
096                    return wikiNodePersistence.update(wikiNode);
097            }
098    
099            /**
100             * Creates a new wiki node with the primary key. Does not add the wiki node to the database.
101             *
102             * @param nodeId the primary key for the new wiki node
103             * @return the new wiki node
104             */
105            public WikiNode createWikiNode(long nodeId) {
106                    return wikiNodePersistence.create(nodeId);
107            }
108    
109            /**
110             * Deletes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
111             *
112             * @param nodeId the primary key of the wiki node
113             * @return the wiki node that was removed
114             * @throws PortalException if a wiki node with the primary key could not be found
115             * @throws SystemException if a system exception occurred
116             */
117            @Indexable(type = IndexableType.DELETE)
118            public WikiNode deleteWikiNode(long nodeId)
119                    throws PortalException, SystemException {
120                    return wikiNodePersistence.remove(nodeId);
121            }
122    
123            /**
124             * Deletes the wiki node from the database. Also notifies the appropriate model listeners.
125             *
126             * @param wikiNode the wiki node
127             * @return the wiki node that was removed
128             * @throws SystemException if a system exception occurred
129             */
130            @Indexable(type = IndexableType.DELETE)
131            public WikiNode deleteWikiNode(WikiNode wikiNode) throws SystemException {
132                    return wikiNodePersistence.remove(wikiNode);
133            }
134    
135            public DynamicQuery dynamicQuery() {
136                    Class<?> clazz = getClass();
137    
138                    return DynamicQueryFactoryUtil.forClass(WikiNode.class,
139                            clazz.getClassLoader());
140            }
141    
142            /**
143             * Performs a dynamic query on the database and returns the matching rows.
144             *
145             * @param dynamicQuery the dynamic query
146             * @return the matching rows
147             * @throws SystemException if a system exception occurred
148             */
149            @SuppressWarnings("rawtypes")
150            public List dynamicQuery(DynamicQuery dynamicQuery)
151                    throws SystemException {
152                    return wikiNodePersistence.findWithDynamicQuery(dynamicQuery);
153            }
154    
155            /**
156             * Performs a dynamic query on the database and returns a range of the matching rows.
157             *
158             * <p>
159             * 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.
160             * </p>
161             *
162             * @param dynamicQuery the dynamic query
163             * @param start the lower bound of the range of model instances
164             * @param end the upper bound of the range of model instances (not inclusive)
165             * @return the range of matching rows
166             * @throws SystemException if a system exception occurred
167             */
168            @SuppressWarnings("rawtypes")
169            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
170                    throws SystemException {
171                    return wikiNodePersistence.findWithDynamicQuery(dynamicQuery, 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.
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 wikiNodePersistence.findWithDynamicQuery(dynamicQuery, start,
192                            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 wikiNodePersistence.countWithDynamicQuery(dynamicQuery);
205            }
206    
207            public WikiNode fetchWikiNode(long nodeId) throws SystemException {
208                    return wikiNodePersistence.fetchByPrimaryKey(nodeId);
209            }
210    
211            /**
212             * Returns the wiki node with the primary key.
213             *
214             * @param nodeId the primary key of the wiki node
215             * @return the wiki node
216             * @throws PortalException if a wiki node with the primary key could not be found
217             * @throws SystemException if a system exception occurred
218             */
219            public WikiNode getWikiNode(long nodeId)
220                    throws PortalException, SystemException {
221                    return wikiNodePersistence.findByPrimaryKey(nodeId);
222            }
223    
224            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
225                    throws PortalException, SystemException {
226                    return wikiNodePersistence.findByPrimaryKey(primaryKeyObj);
227            }
228    
229            /**
230             * Returns the wiki node with the UUID in the group.
231             *
232             * @param uuid the UUID of wiki node
233             * @param groupId the group id of the wiki node
234             * @return the wiki node
235             * @throws PortalException if a wiki node with the UUID in the group could not be found
236             * @throws SystemException if a system exception occurred
237             */
238            public WikiNode getWikiNodeByUuidAndGroupId(String uuid, long groupId)
239                    throws PortalException, SystemException {
240                    return wikiNodePersistence.findByUUID_G(uuid, groupId);
241            }
242    
243            /**
244             * Returns a range of all the wiki nodes.
245             *
246             * <p>
247             * 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.
248             * </p>
249             *
250             * @param start the lower bound of the range of wiki nodes
251             * @param end the upper bound of the range of wiki nodes (not inclusive)
252             * @return the range of wiki nodes
253             * @throws SystemException if a system exception occurred
254             */
255            public List<WikiNode> getWikiNodes(int start, int end)
256                    throws SystemException {
257                    return wikiNodePersistence.findAll(start, end);
258            }
259    
260            /**
261             * Returns the number of wiki nodes.
262             *
263             * @return the number of wiki nodes
264             * @throws SystemException if a system exception occurred
265             */
266            public int getWikiNodesCount() throws SystemException {
267                    return wikiNodePersistence.countAll();
268            }
269    
270            /**
271             * Updates the wiki node in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
272             *
273             * @param wikiNode the wiki node
274             * @return the wiki node that was updated
275             * @throws SystemException if a system exception occurred
276             */
277            @Indexable(type = IndexableType.REINDEX)
278            public WikiNode updateWikiNode(WikiNode wikiNode) throws SystemException {
279                    return wikiNodePersistence.update(wikiNode);
280            }
281    
282            /**
283             * Returns the wiki node local service.
284             *
285             * @return the wiki node local service
286             */
287            public WikiNodeLocalService getWikiNodeLocalService() {
288                    return wikiNodeLocalService;
289            }
290    
291            /**
292             * Sets the wiki node local service.
293             *
294             * @param wikiNodeLocalService the wiki node local service
295             */
296            public void setWikiNodeLocalService(
297                    WikiNodeLocalService wikiNodeLocalService) {
298                    this.wikiNodeLocalService = wikiNodeLocalService;
299            }
300    
301            /**
302             * Returns the wiki node remote service.
303             *
304             * @return the wiki node remote service
305             */
306            public WikiNodeService getWikiNodeService() {
307                    return wikiNodeService;
308            }
309    
310            /**
311             * Sets the wiki node remote service.
312             *
313             * @param wikiNodeService the wiki node remote service
314             */
315            public void setWikiNodeService(WikiNodeService wikiNodeService) {
316                    this.wikiNodeService = wikiNodeService;
317            }
318    
319            /**
320             * Returns the wiki node persistence.
321             *
322             * @return the wiki node persistence
323             */
324            public WikiNodePersistence getWikiNodePersistence() {
325                    return wikiNodePersistence;
326            }
327    
328            /**
329             * Sets the wiki node persistence.
330             *
331             * @param wikiNodePersistence the wiki node persistence
332             */
333            public void setWikiNodePersistence(WikiNodePersistence wikiNodePersistence) {
334                    this.wikiNodePersistence = wikiNodePersistence;
335            }
336    
337            /**
338             * Returns the wiki page local service.
339             *
340             * @return the wiki page local service
341             */
342            public WikiPageLocalService getWikiPageLocalService() {
343                    return wikiPageLocalService;
344            }
345    
346            /**
347             * Sets the wiki page local service.
348             *
349             * @param wikiPageLocalService the wiki page local service
350             */
351            public void setWikiPageLocalService(
352                    WikiPageLocalService wikiPageLocalService) {
353                    this.wikiPageLocalService = wikiPageLocalService;
354            }
355    
356            /**
357             * Returns the wiki page remote service.
358             *
359             * @return the wiki page remote service
360             */
361            public WikiPageService getWikiPageService() {
362                    return wikiPageService;
363            }
364    
365            /**
366             * Sets the wiki page remote service.
367             *
368             * @param wikiPageService the wiki page remote service
369             */
370            public void setWikiPageService(WikiPageService wikiPageService) {
371                    this.wikiPageService = wikiPageService;
372            }
373    
374            /**
375             * Returns the wiki page persistence.
376             *
377             * @return the wiki page persistence
378             */
379            public WikiPagePersistence getWikiPagePersistence() {
380                    return wikiPagePersistence;
381            }
382    
383            /**
384             * Sets the wiki page persistence.
385             *
386             * @param wikiPagePersistence the wiki page persistence
387             */
388            public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
389                    this.wikiPagePersistence = wikiPagePersistence;
390            }
391    
392            /**
393             * Returns the wiki page finder.
394             *
395             * @return the wiki page finder
396             */
397            public WikiPageFinder getWikiPageFinder() {
398                    return wikiPageFinder;
399            }
400    
401            /**
402             * Sets the wiki page finder.
403             *
404             * @param wikiPageFinder the wiki page finder
405             */
406            public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
407                    this.wikiPageFinder = wikiPageFinder;
408            }
409    
410            /**
411             * Returns the wiki page resource local service.
412             *
413             * @return the wiki page resource local service
414             */
415            public WikiPageResourceLocalService getWikiPageResourceLocalService() {
416                    return wikiPageResourceLocalService;
417            }
418    
419            /**
420             * Sets the wiki page resource local service.
421             *
422             * @param wikiPageResourceLocalService the wiki page resource local service
423             */
424            public void setWikiPageResourceLocalService(
425                    WikiPageResourceLocalService wikiPageResourceLocalService) {
426                    this.wikiPageResourceLocalService = wikiPageResourceLocalService;
427            }
428    
429            /**
430             * Returns the wiki page resource persistence.
431             *
432             * @return the wiki page resource persistence
433             */
434            public WikiPageResourcePersistence getWikiPageResourcePersistence() {
435                    return wikiPageResourcePersistence;
436            }
437    
438            /**
439             * Sets the wiki page resource persistence.
440             *
441             * @param wikiPageResourcePersistence the wiki page resource persistence
442             */
443            public void setWikiPageResourcePersistence(
444                    WikiPageResourcePersistence wikiPageResourcePersistence) {
445                    this.wikiPageResourcePersistence = wikiPageResourcePersistence;
446            }
447    
448            /**
449             * Returns the counter local service.
450             *
451             * @return the counter local service
452             */
453            public CounterLocalService getCounterLocalService() {
454                    return counterLocalService;
455            }
456    
457            /**
458             * Sets the counter local service.
459             *
460             * @param counterLocalService the counter local service
461             */
462            public void setCounterLocalService(CounterLocalService counterLocalService) {
463                    this.counterLocalService = counterLocalService;
464            }
465    
466            /**
467             * Returns the group local service.
468             *
469             * @return the group local service
470             */
471            public GroupLocalService getGroupLocalService() {
472                    return groupLocalService;
473            }
474    
475            /**
476             * Sets the group local service.
477             *
478             * @param groupLocalService the group local service
479             */
480            public void setGroupLocalService(GroupLocalService groupLocalService) {
481                    this.groupLocalService = groupLocalService;
482            }
483    
484            /**
485             * Returns the group remote service.
486             *
487             * @return the group remote service
488             */
489            public GroupService getGroupService() {
490                    return groupService;
491            }
492    
493            /**
494             * Sets the group remote service.
495             *
496             * @param groupService the group remote service
497             */
498            public void setGroupService(GroupService groupService) {
499                    this.groupService = groupService;
500            }
501    
502            /**
503             * Returns the group persistence.
504             *
505             * @return the group persistence
506             */
507            public GroupPersistence getGroupPersistence() {
508                    return groupPersistence;
509            }
510    
511            /**
512             * Sets the group persistence.
513             *
514             * @param groupPersistence the group persistence
515             */
516            public void setGroupPersistence(GroupPersistence groupPersistence) {
517                    this.groupPersistence = groupPersistence;
518            }
519    
520            /**
521             * Returns the group finder.
522             *
523             * @return the group finder
524             */
525            public GroupFinder getGroupFinder() {
526                    return groupFinder;
527            }
528    
529            /**
530             * Sets the group finder.
531             *
532             * @param groupFinder the group finder
533             */
534            public void setGroupFinder(GroupFinder groupFinder) {
535                    this.groupFinder = groupFinder;
536            }
537    
538            /**
539             * Returns the resource local service.
540             *
541             * @return the resource local service
542             */
543            public ResourceLocalService getResourceLocalService() {
544                    return resourceLocalService;
545            }
546    
547            /**
548             * Sets the resource local service.
549             *
550             * @param resourceLocalService the resource local service
551             */
552            public void setResourceLocalService(
553                    ResourceLocalService resourceLocalService) {
554                    this.resourceLocalService = resourceLocalService;
555            }
556    
557            /**
558             * Returns the subscription local service.
559             *
560             * @return the subscription local service
561             */
562            public SubscriptionLocalService getSubscriptionLocalService() {
563                    return subscriptionLocalService;
564            }
565    
566            /**
567             * Sets the subscription local service.
568             *
569             * @param subscriptionLocalService the subscription local service
570             */
571            public void setSubscriptionLocalService(
572                    SubscriptionLocalService subscriptionLocalService) {
573                    this.subscriptionLocalService = subscriptionLocalService;
574            }
575    
576            /**
577             * Returns the subscription persistence.
578             *
579             * @return the subscription persistence
580             */
581            public SubscriptionPersistence getSubscriptionPersistence() {
582                    return subscriptionPersistence;
583            }
584    
585            /**
586             * Sets the subscription persistence.
587             *
588             * @param subscriptionPersistence the subscription persistence
589             */
590            public void setSubscriptionPersistence(
591                    SubscriptionPersistence subscriptionPersistence) {
592                    this.subscriptionPersistence = subscriptionPersistence;
593            }
594    
595            /**
596             * Returns the user local service.
597             *
598             * @return the user local service
599             */
600            public UserLocalService getUserLocalService() {
601                    return userLocalService;
602            }
603    
604            /**
605             * Sets the user local service.
606             *
607             * @param userLocalService the user local service
608             */
609            public void setUserLocalService(UserLocalService userLocalService) {
610                    this.userLocalService = userLocalService;
611            }
612    
613            /**
614             * Returns the user remote service.
615             *
616             * @return the user remote service
617             */
618            public UserService getUserService() {
619                    return userService;
620            }
621    
622            /**
623             * Sets the user remote service.
624             *
625             * @param userService the user remote service
626             */
627            public void setUserService(UserService userService) {
628                    this.userService = userService;
629            }
630    
631            /**
632             * Returns the user persistence.
633             *
634             * @return the user persistence
635             */
636            public UserPersistence getUserPersistence() {
637                    return userPersistence;
638            }
639    
640            /**
641             * Sets the user persistence.
642             *
643             * @param userPersistence the user persistence
644             */
645            public void setUserPersistence(UserPersistence userPersistence) {
646                    this.userPersistence = userPersistence;
647            }
648    
649            /**
650             * Returns the user finder.
651             *
652             * @return the user finder
653             */
654            public UserFinder getUserFinder() {
655                    return userFinder;
656            }
657    
658            /**
659             * Sets the user finder.
660             *
661             * @param userFinder the user finder
662             */
663            public void setUserFinder(UserFinder userFinder) {
664                    this.userFinder = userFinder;
665            }
666    
667            /**
668             * Returns the trash entry local service.
669             *
670             * @return the trash entry local service
671             */
672            public TrashEntryLocalService getTrashEntryLocalService() {
673                    return trashEntryLocalService;
674            }
675    
676            /**
677             * Sets the trash entry local service.
678             *
679             * @param trashEntryLocalService the trash entry local service
680             */
681            public void setTrashEntryLocalService(
682                    TrashEntryLocalService trashEntryLocalService) {
683                    this.trashEntryLocalService = trashEntryLocalService;
684            }
685    
686            /**
687             * Returns the trash entry remote service.
688             *
689             * @return the trash entry remote service
690             */
691            public TrashEntryService getTrashEntryService() {
692                    return trashEntryService;
693            }
694    
695            /**
696             * Sets the trash entry remote service.
697             *
698             * @param trashEntryService the trash entry remote service
699             */
700            public void setTrashEntryService(TrashEntryService trashEntryService) {
701                    this.trashEntryService = trashEntryService;
702            }
703    
704            /**
705             * Returns the trash entry persistence.
706             *
707             * @return the trash entry persistence
708             */
709            public TrashEntryPersistence getTrashEntryPersistence() {
710                    return trashEntryPersistence;
711            }
712    
713            /**
714             * Sets the trash entry persistence.
715             *
716             * @param trashEntryPersistence the trash entry persistence
717             */
718            public void setTrashEntryPersistence(
719                    TrashEntryPersistence trashEntryPersistence) {
720                    this.trashEntryPersistence = trashEntryPersistence;
721            }
722    
723            public void afterPropertiesSet() {
724                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.wiki.model.WikiNode",
725                            wikiNodeLocalService);
726            }
727    
728            public void destroy() {
729                    persistedModelLocalServiceRegistry.unregister(
730                            "com.liferay.portlet.wiki.model.WikiNode");
731            }
732    
733            /**
734             * Returns the Spring bean ID for this bean.
735             *
736             * @return the Spring bean ID for this bean
737             */
738            public String getBeanIdentifier() {
739                    return _beanIdentifier;
740            }
741    
742            /**
743             * Sets the Spring bean ID for this bean.
744             *
745             * @param beanIdentifier the Spring bean ID for this bean
746             */
747            public void setBeanIdentifier(String beanIdentifier) {
748                    _beanIdentifier = beanIdentifier;
749            }
750    
751            protected Class<?> getModelClass() {
752                    return WikiNode.class;
753            }
754    
755            protected String getModelClassName() {
756                    return WikiNode.class.getName();
757            }
758    
759            /**
760             * Performs an SQL query.
761             *
762             * @param sql the sql query
763             */
764            protected void runSQL(String sql) throws SystemException {
765                    try {
766                            DataSource dataSource = wikiNodePersistence.getDataSource();
767    
768                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
769                                            sql, new int[0]);
770    
771                            sqlUpdate.update();
772                    }
773                    catch (Exception e) {
774                            throw new SystemException(e);
775                    }
776            }
777    
778            @BeanReference(type = WikiNodeLocalService.class)
779            protected WikiNodeLocalService wikiNodeLocalService;
780            @BeanReference(type = WikiNodeService.class)
781            protected WikiNodeService wikiNodeService;
782            @BeanReference(type = WikiNodePersistence.class)
783            protected WikiNodePersistence wikiNodePersistence;
784            @BeanReference(type = WikiPageLocalService.class)
785            protected WikiPageLocalService wikiPageLocalService;
786            @BeanReference(type = WikiPageService.class)
787            protected WikiPageService wikiPageService;
788            @BeanReference(type = WikiPagePersistence.class)
789            protected WikiPagePersistence wikiPagePersistence;
790            @BeanReference(type = WikiPageFinder.class)
791            protected WikiPageFinder wikiPageFinder;
792            @BeanReference(type = WikiPageResourceLocalService.class)
793            protected WikiPageResourceLocalService wikiPageResourceLocalService;
794            @BeanReference(type = WikiPageResourcePersistence.class)
795            protected WikiPageResourcePersistence wikiPageResourcePersistence;
796            @BeanReference(type = CounterLocalService.class)
797            protected CounterLocalService counterLocalService;
798            @BeanReference(type = GroupLocalService.class)
799            protected GroupLocalService groupLocalService;
800            @BeanReference(type = GroupService.class)
801            protected GroupService groupService;
802            @BeanReference(type = GroupPersistence.class)
803            protected GroupPersistence groupPersistence;
804            @BeanReference(type = GroupFinder.class)
805            protected GroupFinder groupFinder;
806            @BeanReference(type = ResourceLocalService.class)
807            protected ResourceLocalService resourceLocalService;
808            @BeanReference(type = SubscriptionLocalService.class)
809            protected SubscriptionLocalService subscriptionLocalService;
810            @BeanReference(type = SubscriptionPersistence.class)
811            protected SubscriptionPersistence subscriptionPersistence;
812            @BeanReference(type = UserLocalService.class)
813            protected UserLocalService userLocalService;
814            @BeanReference(type = UserService.class)
815            protected UserService userService;
816            @BeanReference(type = UserPersistence.class)
817            protected UserPersistence userPersistence;
818            @BeanReference(type = UserFinder.class)
819            protected UserFinder userFinder;
820            @BeanReference(type = TrashEntryLocalService.class)
821            protected TrashEntryLocalService trashEntryLocalService;
822            @BeanReference(type = TrashEntryService.class)
823            protected TrashEntryService trashEntryService;
824            @BeanReference(type = TrashEntryPersistence.class)
825            protected TrashEntryPersistence trashEntryPersistence;
826            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
827            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
828            private String _beanIdentifier;
829    }