001    /**
002     * Copyright (c) 2000-2013 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.ResourceService;
037    import com.liferay.portal.service.SubscriptionLocalService;
038    import com.liferay.portal.service.UserLocalService;
039    import com.liferay.portal.service.UserService;
040    import com.liferay.portal.service.persistence.GroupFinder;
041    import com.liferay.portal.service.persistence.GroupPersistence;
042    import com.liferay.portal.service.persistence.ResourceFinder;
043    import com.liferay.portal.service.persistence.ResourcePersistence;
044    import com.liferay.portal.service.persistence.SubscriptionPersistence;
045    import com.liferay.portal.service.persistence.UserFinder;
046    import com.liferay.portal.service.persistence.UserPersistence;
047    
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, false);
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 updateWikiNode(wikiNode, true);
280            }
281    
282            /**
283             * Updates the wiki node in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
284             *
285             * @param wikiNode the wiki node
286             * @param merge whether to merge the wiki node with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
287             * @return the wiki node that was updated
288             * @throws SystemException if a system exception occurred
289             */
290            @Indexable(type = IndexableType.REINDEX)
291            public WikiNode updateWikiNode(WikiNode wikiNode, boolean merge)
292                    throws SystemException {
293                    wikiNode.setNew(false);
294    
295                    return wikiNodePersistence.update(wikiNode, merge);
296            }
297    
298            /**
299             * Returns the wiki node local service.
300             *
301             * @return the wiki node local service
302             */
303            public WikiNodeLocalService getWikiNodeLocalService() {
304                    return wikiNodeLocalService;
305            }
306    
307            /**
308             * Sets the wiki node local service.
309             *
310             * @param wikiNodeLocalService the wiki node local service
311             */
312            public void setWikiNodeLocalService(
313                    WikiNodeLocalService wikiNodeLocalService) {
314                    this.wikiNodeLocalService = wikiNodeLocalService;
315            }
316    
317            /**
318             * Returns the wiki node remote service.
319             *
320             * @return the wiki node remote service
321             */
322            public WikiNodeService getWikiNodeService() {
323                    return wikiNodeService;
324            }
325    
326            /**
327             * Sets the wiki node remote service.
328             *
329             * @param wikiNodeService the wiki node remote service
330             */
331            public void setWikiNodeService(WikiNodeService wikiNodeService) {
332                    this.wikiNodeService = wikiNodeService;
333            }
334    
335            /**
336             * Returns the wiki node persistence.
337             *
338             * @return the wiki node persistence
339             */
340            public WikiNodePersistence getWikiNodePersistence() {
341                    return wikiNodePersistence;
342            }
343    
344            /**
345             * Sets the wiki node persistence.
346             *
347             * @param wikiNodePersistence the wiki node persistence
348             */
349            public void setWikiNodePersistence(WikiNodePersistence wikiNodePersistence) {
350                    this.wikiNodePersistence = wikiNodePersistence;
351            }
352    
353            /**
354             * Returns the wiki page local service.
355             *
356             * @return the wiki page local service
357             */
358            public WikiPageLocalService getWikiPageLocalService() {
359                    return wikiPageLocalService;
360            }
361    
362            /**
363             * Sets the wiki page local service.
364             *
365             * @param wikiPageLocalService the wiki page local service
366             */
367            public void setWikiPageLocalService(
368                    WikiPageLocalService wikiPageLocalService) {
369                    this.wikiPageLocalService = wikiPageLocalService;
370            }
371    
372            /**
373             * Returns the wiki page remote service.
374             *
375             * @return the wiki page remote service
376             */
377            public WikiPageService getWikiPageService() {
378                    return wikiPageService;
379            }
380    
381            /**
382             * Sets the wiki page remote service.
383             *
384             * @param wikiPageService the wiki page remote service
385             */
386            public void setWikiPageService(WikiPageService wikiPageService) {
387                    this.wikiPageService = wikiPageService;
388            }
389    
390            /**
391             * Returns the wiki page persistence.
392             *
393             * @return the wiki page persistence
394             */
395            public WikiPagePersistence getWikiPagePersistence() {
396                    return wikiPagePersistence;
397            }
398    
399            /**
400             * Sets the wiki page persistence.
401             *
402             * @param wikiPagePersistence the wiki page persistence
403             */
404            public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
405                    this.wikiPagePersistence = wikiPagePersistence;
406            }
407    
408            /**
409             * Returns the wiki page finder.
410             *
411             * @return the wiki page finder
412             */
413            public WikiPageFinder getWikiPageFinder() {
414                    return wikiPageFinder;
415            }
416    
417            /**
418             * Sets the wiki page finder.
419             *
420             * @param wikiPageFinder the wiki page finder
421             */
422            public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
423                    this.wikiPageFinder = wikiPageFinder;
424            }
425    
426            /**
427             * Returns the wiki page resource local service.
428             *
429             * @return the wiki page resource local service
430             */
431            public WikiPageResourceLocalService getWikiPageResourceLocalService() {
432                    return wikiPageResourceLocalService;
433            }
434    
435            /**
436             * Sets the wiki page resource local service.
437             *
438             * @param wikiPageResourceLocalService the wiki page resource local service
439             */
440            public void setWikiPageResourceLocalService(
441                    WikiPageResourceLocalService wikiPageResourceLocalService) {
442                    this.wikiPageResourceLocalService = wikiPageResourceLocalService;
443            }
444    
445            /**
446             * Returns the wiki page resource persistence.
447             *
448             * @return the wiki page resource persistence
449             */
450            public WikiPageResourcePersistence getWikiPageResourcePersistence() {
451                    return wikiPageResourcePersistence;
452            }
453    
454            /**
455             * Sets the wiki page resource persistence.
456             *
457             * @param wikiPageResourcePersistence the wiki page resource persistence
458             */
459            public void setWikiPageResourcePersistence(
460                    WikiPageResourcePersistence wikiPageResourcePersistence) {
461                    this.wikiPageResourcePersistence = wikiPageResourcePersistence;
462            }
463    
464            /**
465             * Returns the counter local service.
466             *
467             * @return the counter local service
468             */
469            public CounterLocalService getCounterLocalService() {
470                    return counterLocalService;
471            }
472    
473            /**
474             * Sets the counter local service.
475             *
476             * @param counterLocalService the counter local service
477             */
478            public void setCounterLocalService(CounterLocalService counterLocalService) {
479                    this.counterLocalService = counterLocalService;
480            }
481    
482            /**
483             * Returns the group local service.
484             *
485             * @return the group local service
486             */
487            public GroupLocalService getGroupLocalService() {
488                    return groupLocalService;
489            }
490    
491            /**
492             * Sets the group local service.
493             *
494             * @param groupLocalService the group local service
495             */
496            public void setGroupLocalService(GroupLocalService groupLocalService) {
497                    this.groupLocalService = groupLocalService;
498            }
499    
500            /**
501             * Returns the group remote service.
502             *
503             * @return the group remote service
504             */
505            public GroupService getGroupService() {
506                    return groupService;
507            }
508    
509            /**
510             * Sets the group remote service.
511             *
512             * @param groupService the group remote service
513             */
514            public void setGroupService(GroupService groupService) {
515                    this.groupService = groupService;
516            }
517    
518            /**
519             * Returns the group persistence.
520             *
521             * @return the group persistence
522             */
523            public GroupPersistence getGroupPersistence() {
524                    return groupPersistence;
525            }
526    
527            /**
528             * Sets the group persistence.
529             *
530             * @param groupPersistence the group persistence
531             */
532            public void setGroupPersistence(GroupPersistence groupPersistence) {
533                    this.groupPersistence = groupPersistence;
534            }
535    
536            /**
537             * Returns the group finder.
538             *
539             * @return the group finder
540             */
541            public GroupFinder getGroupFinder() {
542                    return groupFinder;
543            }
544    
545            /**
546             * Sets the group finder.
547             *
548             * @param groupFinder the group finder
549             */
550            public void setGroupFinder(GroupFinder groupFinder) {
551                    this.groupFinder = groupFinder;
552            }
553    
554            /**
555             * Returns the resource local service.
556             *
557             * @return the resource local service
558             */
559            public ResourceLocalService getResourceLocalService() {
560                    return resourceLocalService;
561            }
562    
563            /**
564             * Sets the resource local service.
565             *
566             * @param resourceLocalService the resource local service
567             */
568            public void setResourceLocalService(
569                    ResourceLocalService resourceLocalService) {
570                    this.resourceLocalService = resourceLocalService;
571            }
572    
573            /**
574             * Returns the resource remote service.
575             *
576             * @return the resource remote service
577             */
578            public ResourceService getResourceService() {
579                    return resourceService;
580            }
581    
582            /**
583             * Sets the resource remote service.
584             *
585             * @param resourceService the resource remote service
586             */
587            public void setResourceService(ResourceService resourceService) {
588                    this.resourceService = resourceService;
589            }
590    
591            /**
592             * Returns the resource persistence.
593             *
594             * @return the resource persistence
595             */
596            public ResourcePersistence getResourcePersistence() {
597                    return resourcePersistence;
598            }
599    
600            /**
601             * Sets the resource persistence.
602             *
603             * @param resourcePersistence the resource persistence
604             */
605            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
606                    this.resourcePersistence = resourcePersistence;
607            }
608    
609            /**
610             * Returns the resource finder.
611             *
612             * @return the resource finder
613             */
614            public ResourceFinder getResourceFinder() {
615                    return resourceFinder;
616            }
617    
618            /**
619             * Sets the resource finder.
620             *
621             * @param resourceFinder the resource finder
622             */
623            public void setResourceFinder(ResourceFinder resourceFinder) {
624                    this.resourceFinder = resourceFinder;
625            }
626    
627            /**
628             * Returns the subscription local service.
629             *
630             * @return the subscription local service
631             */
632            public SubscriptionLocalService getSubscriptionLocalService() {
633                    return subscriptionLocalService;
634            }
635    
636            /**
637             * Sets the subscription local service.
638             *
639             * @param subscriptionLocalService the subscription local service
640             */
641            public void setSubscriptionLocalService(
642                    SubscriptionLocalService subscriptionLocalService) {
643                    this.subscriptionLocalService = subscriptionLocalService;
644            }
645    
646            /**
647             * Returns the subscription persistence.
648             *
649             * @return the subscription persistence
650             */
651            public SubscriptionPersistence getSubscriptionPersistence() {
652                    return subscriptionPersistence;
653            }
654    
655            /**
656             * Sets the subscription persistence.
657             *
658             * @param subscriptionPersistence the subscription persistence
659             */
660            public void setSubscriptionPersistence(
661                    SubscriptionPersistence subscriptionPersistence) {
662                    this.subscriptionPersistence = subscriptionPersistence;
663            }
664    
665            /**
666             * Returns the user local service.
667             *
668             * @return the user local service
669             */
670            public UserLocalService getUserLocalService() {
671                    return userLocalService;
672            }
673    
674            /**
675             * Sets the user local service.
676             *
677             * @param userLocalService the user local service
678             */
679            public void setUserLocalService(UserLocalService userLocalService) {
680                    this.userLocalService = userLocalService;
681            }
682    
683            /**
684             * Returns the user remote service.
685             *
686             * @return the user remote service
687             */
688            public UserService getUserService() {
689                    return userService;
690            }
691    
692            /**
693             * Sets the user remote service.
694             *
695             * @param userService the user remote service
696             */
697            public void setUserService(UserService userService) {
698                    this.userService = userService;
699            }
700    
701            /**
702             * Returns the user persistence.
703             *
704             * @return the user persistence
705             */
706            public UserPersistence getUserPersistence() {
707                    return userPersistence;
708            }
709    
710            /**
711             * Sets the user persistence.
712             *
713             * @param userPersistence the user persistence
714             */
715            public void setUserPersistence(UserPersistence userPersistence) {
716                    this.userPersistence = userPersistence;
717            }
718    
719            /**
720             * Returns the user finder.
721             *
722             * @return the user finder
723             */
724            public UserFinder getUserFinder() {
725                    return userFinder;
726            }
727    
728            /**
729             * Sets the user finder.
730             *
731             * @param userFinder the user finder
732             */
733            public void setUserFinder(UserFinder userFinder) {
734                    this.userFinder = userFinder;
735            }
736    
737            public void afterPropertiesSet() {
738                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.wiki.model.WikiNode",
739                            wikiNodeLocalService);
740            }
741    
742            public void destroy() {
743                    persistedModelLocalServiceRegistry.unregister(
744                            "com.liferay.portlet.wiki.model.WikiNode");
745            }
746    
747            /**
748             * Returns the Spring bean ID for this bean.
749             *
750             * @return the Spring bean ID for this bean
751             */
752            public String getBeanIdentifier() {
753                    return _beanIdentifier;
754            }
755    
756            /**
757             * Sets the Spring bean ID for this bean.
758             *
759             * @param beanIdentifier the Spring bean ID for this bean
760             */
761            public void setBeanIdentifier(String beanIdentifier) {
762                    _beanIdentifier = beanIdentifier;
763            }
764    
765            protected Class<?> getModelClass() {
766                    return WikiNode.class;
767            }
768    
769            protected String getModelClassName() {
770                    return WikiNode.class.getName();
771            }
772    
773            /**
774             * Performs an SQL query.
775             *
776             * @param sql the sql query
777             */
778            protected void runSQL(String sql) throws SystemException {
779                    try {
780                            DataSource dataSource = wikiNodePersistence.getDataSource();
781    
782                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
783                                            sql, new int[0]);
784    
785                            sqlUpdate.update();
786                    }
787                    catch (Exception e) {
788                            throw new SystemException(e);
789                    }
790            }
791    
792            @BeanReference(type = WikiNodeLocalService.class)
793            protected WikiNodeLocalService wikiNodeLocalService;
794            @BeanReference(type = WikiNodeService.class)
795            protected WikiNodeService wikiNodeService;
796            @BeanReference(type = WikiNodePersistence.class)
797            protected WikiNodePersistence wikiNodePersistence;
798            @BeanReference(type = WikiPageLocalService.class)
799            protected WikiPageLocalService wikiPageLocalService;
800            @BeanReference(type = WikiPageService.class)
801            protected WikiPageService wikiPageService;
802            @BeanReference(type = WikiPagePersistence.class)
803            protected WikiPagePersistence wikiPagePersistence;
804            @BeanReference(type = WikiPageFinder.class)
805            protected WikiPageFinder wikiPageFinder;
806            @BeanReference(type = WikiPageResourceLocalService.class)
807            protected WikiPageResourceLocalService wikiPageResourceLocalService;
808            @BeanReference(type = WikiPageResourcePersistence.class)
809            protected WikiPageResourcePersistence wikiPageResourcePersistence;
810            @BeanReference(type = CounterLocalService.class)
811            protected CounterLocalService counterLocalService;
812            @BeanReference(type = GroupLocalService.class)
813            protected GroupLocalService groupLocalService;
814            @BeanReference(type = GroupService.class)
815            protected GroupService groupService;
816            @BeanReference(type = GroupPersistence.class)
817            protected GroupPersistence groupPersistence;
818            @BeanReference(type = GroupFinder.class)
819            protected GroupFinder groupFinder;
820            @BeanReference(type = ResourceLocalService.class)
821            protected ResourceLocalService resourceLocalService;
822            @BeanReference(type = ResourceService.class)
823            protected ResourceService resourceService;
824            @BeanReference(type = ResourcePersistence.class)
825            protected ResourcePersistence resourcePersistence;
826            @BeanReference(type = ResourceFinder.class)
827            protected ResourceFinder resourceFinder;
828            @BeanReference(type = SubscriptionLocalService.class)
829            protected SubscriptionLocalService subscriptionLocalService;
830            @BeanReference(type = SubscriptionPersistence.class)
831            protected SubscriptionPersistence subscriptionPersistence;
832            @BeanReference(type = UserLocalService.class)
833            protected UserLocalService userLocalService;
834            @BeanReference(type = UserService.class)
835            protected UserService userService;
836            @BeanReference(type = UserPersistence.class)
837            protected UserPersistence userPersistence;
838            @BeanReference(type = UserFinder.class)
839            protected UserFinder userFinder;
840            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
841            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
842            private String _beanIdentifier;
843    }