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.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.GroupFinder;
033    import com.liferay.portal.service.persistence.GroupPersistence;
034    import com.liferay.portal.service.persistence.SubscriptionPersistence;
035    import com.liferay.portal.service.persistence.SystemEventPersistence;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
039    
040    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
041    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
042    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
043    import com.liferay.portlet.wiki.model.WikiNode;
044    import com.liferay.portlet.wiki.service.WikiNodeLocalService;
045    import com.liferay.portlet.wiki.service.persistence.WikiNodePersistence;
046    import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
047    import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
048    import com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence;
049    
050    import java.io.Serializable;
051    
052    import java.util.List;
053    
054    import javax.sql.DataSource;
055    
056    /**
057     * Provides the base implementation for the wiki node local service.
058     *
059     * <p>
060     * 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}.
061     * </p>
062     *
063     * @author Brian Wing Shun Chan
064     * @see com.liferay.portlet.wiki.service.impl.WikiNodeLocalServiceImpl
065     * @see com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil
066     * @generated
067     */
068    public abstract class WikiNodeLocalServiceBaseImpl extends BaseLocalServiceImpl
069            implements WikiNodeLocalService, IdentifiableBean {
070            /*
071             * NOTE FOR DEVELOPERS:
072             *
073             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.wiki.service.WikiNodeLocalServiceUtil} to access the wiki node local service.
074             */
075    
076            /**
077             * Adds the wiki node to the database. Also notifies the appropriate model listeners.
078             *
079             * @param wikiNode the wiki node
080             * @return the wiki node that was added
081             * @throws SystemException if a system exception occurred
082             */
083            @Indexable(type = IndexableType.REINDEX)
084            @Override
085            public WikiNode addWikiNode(WikiNode wikiNode) throws SystemException {
086                    wikiNode.setNew(true);
087    
088                    return wikiNodePersistence.update(wikiNode);
089            }
090    
091            /**
092             * Creates a new wiki node with the primary key. Does not add the wiki node to the database.
093             *
094             * @param nodeId the primary key for the new wiki node
095             * @return the new wiki node
096             */
097            @Override
098            public WikiNode createWikiNode(long nodeId) {
099                    return wikiNodePersistence.create(nodeId);
100            }
101    
102            /**
103             * Deletes the wiki node with the primary key from the database. Also notifies the appropriate model listeners.
104             *
105             * @param nodeId the primary key of the wiki node
106             * @return the wiki node that was removed
107             * @throws PortalException if a wiki node with the primary key could not be found
108             * @throws SystemException if a system exception occurred
109             */
110            @Indexable(type = IndexableType.DELETE)
111            @Override
112            public WikiNode deleteWikiNode(long nodeId)
113                    throws PortalException, SystemException {
114                    return wikiNodePersistence.remove(nodeId);
115            }
116    
117            /**
118             * Deletes the wiki node from the database. Also notifies the appropriate model listeners.
119             *
120             * @param wikiNode the wiki node
121             * @return the wiki node that was removed
122             * @throws SystemException if a system exception occurred
123             */
124            @Indexable(type = IndexableType.DELETE)
125            @Override
126            public WikiNode deleteWikiNode(WikiNode wikiNode) throws SystemException {
127                    return wikiNodePersistence.remove(wikiNode);
128            }
129    
130            @Override
131            public DynamicQuery dynamicQuery() {
132                    Class<?> clazz = getClass();
133    
134                    return DynamicQueryFactoryUtil.forClass(WikiNode.class,
135                            clazz.getClassLoader());
136            }
137    
138            /**
139             * Performs a dynamic query on the database and returns the matching rows.
140             *
141             * @param dynamicQuery the dynamic query
142             * @return the matching rows
143             * @throws SystemException if a system exception occurred
144             */
145            @Override
146            @SuppressWarnings("rawtypes")
147            public List dynamicQuery(DynamicQuery dynamicQuery)
148                    throws SystemException {
149                    return wikiNodePersistence.findWithDynamicQuery(dynamicQuery);
150            }
151    
152            /**
153             * Performs a dynamic query on the database and returns a range of the matching rows.
154             *
155             * <p>
156             * 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.wiki.model.impl.WikiNodeModelImpl}. 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.
157             * </p>
158             *
159             * @param dynamicQuery the dynamic query
160             * @param start the lower bound of the range of model instances
161             * @param end the upper bound of the range of model instances (not inclusive)
162             * @return the range of matching rows
163             * @throws SystemException if a system exception occurred
164             */
165            @Override
166            @SuppressWarnings("rawtypes")
167            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
168                    throws SystemException {
169                    return wikiNodePersistence.findWithDynamicQuery(dynamicQuery, start, end);
170            }
171    
172            /**
173             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
174             *
175             * <p>
176             * 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.wiki.model.impl.WikiNodeModelImpl}. 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.
177             * </p>
178             *
179             * @param dynamicQuery the dynamic query
180             * @param start the lower bound of the range of model instances
181             * @param end the upper bound of the range of model instances (not inclusive)
182             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
183             * @return the ordered range of matching rows
184             * @throws SystemException if a system exception occurred
185             */
186            @Override
187            @SuppressWarnings("rawtypes")
188            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
189                    OrderByComparator orderByComparator) throws SystemException {
190                    return wikiNodePersistence.findWithDynamicQuery(dynamicQuery, start,
191                            end, orderByComparator);
192            }
193    
194            /**
195             * Returns the number of rows that match the dynamic query.
196             *
197             * @param dynamicQuery the dynamic query
198             * @return the number of rows that match the dynamic query
199             * @throws SystemException if a system exception occurred
200             */
201            @Override
202            public long dynamicQueryCount(DynamicQuery dynamicQuery)
203                    throws SystemException {
204                    return wikiNodePersistence.countWithDynamicQuery(dynamicQuery);
205            }
206    
207            /**
208             * Returns the number of rows that match the dynamic query.
209             *
210             * @param dynamicQuery the dynamic query
211             * @param projection the projection to apply to the query
212             * @return the number of rows that match the dynamic query
213             * @throws SystemException if a system exception occurred
214             */
215            @Override
216            public long dynamicQueryCount(DynamicQuery dynamicQuery,
217                    Projection projection) throws SystemException {
218                    return wikiNodePersistence.countWithDynamicQuery(dynamicQuery,
219                            projection);
220            }
221    
222            @Override
223            public WikiNode fetchWikiNode(long nodeId) throws SystemException {
224                    return wikiNodePersistence.fetchByPrimaryKey(nodeId);
225            }
226    
227            /**
228             * Returns the wiki node with the matching UUID and company.
229             *
230             * @param uuid the wiki node's UUID
231             * @param  companyId the primary key of the company
232             * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
233             * @throws SystemException if a system exception occurred
234             */
235            @Override
236            public WikiNode fetchWikiNodeByUuidAndCompanyId(String uuid, long companyId)
237                    throws SystemException {
238                    return wikiNodePersistence.fetchByUuid_C_First(uuid, companyId, null);
239            }
240    
241            /**
242             * Returns the wiki node matching the UUID and group.
243             *
244             * @param uuid the wiki node's UUID
245             * @param groupId the primary key of the group
246             * @return the matching wiki node, or <code>null</code> if a matching wiki node could not be found
247             * @throws SystemException if a system exception occurred
248             */
249            @Override
250            public WikiNode fetchWikiNodeByUuidAndGroupId(String uuid, long groupId)
251                    throws SystemException {
252                    return wikiNodePersistence.fetchByUUID_G(uuid, groupId);
253            }
254    
255            /**
256             * Returns the wiki node with the primary key.
257             *
258             * @param nodeId the primary key of the wiki node
259             * @return the wiki node
260             * @throws PortalException if a wiki node with the primary key could not be found
261             * @throws SystemException if a system exception occurred
262             */
263            @Override
264            public WikiNode getWikiNode(long nodeId)
265                    throws PortalException, SystemException {
266                    return wikiNodePersistence.findByPrimaryKey(nodeId);
267            }
268    
269            @Override
270            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
271                    throws PortalException, SystemException {
272                    return wikiNodePersistence.findByPrimaryKey(primaryKeyObj);
273            }
274    
275            /**
276             * Returns the wiki node with the matching UUID and company.
277             *
278             * @param uuid the wiki node's UUID
279             * @param  companyId the primary key of the company
280             * @return the matching wiki node
281             * @throws PortalException if a matching wiki node could not be found
282             * @throws SystemException if a system exception occurred
283             */
284            @Override
285            public WikiNode getWikiNodeByUuidAndCompanyId(String uuid, long companyId)
286                    throws PortalException, SystemException {
287                    return wikiNodePersistence.findByUuid_C_First(uuid, companyId, null);
288            }
289    
290            /**
291             * Returns the wiki node matching the UUID and group.
292             *
293             * @param uuid the wiki node's UUID
294             * @param groupId the primary key of the group
295             * @return the matching wiki node
296             * @throws PortalException if a matching wiki node could not be found
297             * @throws SystemException if a system exception occurred
298             */
299            @Override
300            public WikiNode getWikiNodeByUuidAndGroupId(String uuid, long groupId)
301                    throws PortalException, SystemException {
302                    return wikiNodePersistence.findByUUID_G(uuid, groupId);
303            }
304    
305            /**
306             * Returns a range of all the wiki nodes.
307             *
308             * <p>
309             * 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.wiki.model.impl.WikiNodeModelImpl}. 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.
310             * </p>
311             *
312             * @param start the lower bound of the range of wiki nodes
313             * @param end the upper bound of the range of wiki nodes (not inclusive)
314             * @return the range of wiki nodes
315             * @throws SystemException if a system exception occurred
316             */
317            @Override
318            public List<WikiNode> getWikiNodes(int start, int end)
319                    throws SystemException {
320                    return wikiNodePersistence.findAll(start, end);
321            }
322    
323            /**
324             * Returns the number of wiki nodes.
325             *
326             * @return the number of wiki nodes
327             * @throws SystemException if a system exception occurred
328             */
329            @Override
330            public int getWikiNodesCount() throws SystemException {
331                    return wikiNodePersistence.countAll();
332            }
333    
334            /**
335             * Updates the wiki node in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
336             *
337             * @param wikiNode the wiki node
338             * @return the wiki node that was updated
339             * @throws SystemException if a system exception occurred
340             */
341            @Indexable(type = IndexableType.REINDEX)
342            @Override
343            public WikiNode updateWikiNode(WikiNode wikiNode) throws SystemException {
344                    return wikiNodePersistence.update(wikiNode);
345            }
346    
347            /**
348             * Returns the wiki node local service.
349             *
350             * @return the wiki node local service
351             */
352            public com.liferay.portlet.wiki.service.WikiNodeLocalService getWikiNodeLocalService() {
353                    return wikiNodeLocalService;
354            }
355    
356            /**
357             * Sets the wiki node local service.
358             *
359             * @param wikiNodeLocalService the wiki node local service
360             */
361            public void setWikiNodeLocalService(
362                    com.liferay.portlet.wiki.service.WikiNodeLocalService wikiNodeLocalService) {
363                    this.wikiNodeLocalService = wikiNodeLocalService;
364            }
365    
366            /**
367             * Returns the wiki node remote service.
368             *
369             * @return the wiki node remote service
370             */
371            public com.liferay.portlet.wiki.service.WikiNodeService getWikiNodeService() {
372                    return wikiNodeService;
373            }
374    
375            /**
376             * Sets the wiki node remote service.
377             *
378             * @param wikiNodeService the wiki node remote service
379             */
380            public void setWikiNodeService(
381                    com.liferay.portlet.wiki.service.WikiNodeService wikiNodeService) {
382                    this.wikiNodeService = wikiNodeService;
383            }
384    
385            /**
386             * Returns the wiki node persistence.
387             *
388             * @return the wiki node persistence
389             */
390            public WikiNodePersistence getWikiNodePersistence() {
391                    return wikiNodePersistence;
392            }
393    
394            /**
395             * Sets the wiki node persistence.
396             *
397             * @param wikiNodePersistence the wiki node persistence
398             */
399            public void setWikiNodePersistence(WikiNodePersistence wikiNodePersistence) {
400                    this.wikiNodePersistence = wikiNodePersistence;
401            }
402    
403            /**
404             * Returns the wiki page local service.
405             *
406             * @return the wiki page local service
407             */
408            public com.liferay.portlet.wiki.service.WikiPageLocalService getWikiPageLocalService() {
409                    return wikiPageLocalService;
410            }
411    
412            /**
413             * Sets the wiki page local service.
414             *
415             * @param wikiPageLocalService the wiki page local service
416             */
417            public void setWikiPageLocalService(
418                    com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService) {
419                    this.wikiPageLocalService = wikiPageLocalService;
420            }
421    
422            /**
423             * Returns the wiki page remote service.
424             *
425             * @return the wiki page remote service
426             */
427            public com.liferay.portlet.wiki.service.WikiPageService getWikiPageService() {
428                    return wikiPageService;
429            }
430    
431            /**
432             * Sets the wiki page remote service.
433             *
434             * @param wikiPageService the wiki page remote service
435             */
436            public void setWikiPageService(
437                    com.liferay.portlet.wiki.service.WikiPageService wikiPageService) {
438                    this.wikiPageService = wikiPageService;
439            }
440    
441            /**
442             * Returns the wiki page persistence.
443             *
444             * @return the wiki page persistence
445             */
446            public WikiPagePersistence getWikiPagePersistence() {
447                    return wikiPagePersistence;
448            }
449    
450            /**
451             * Sets the wiki page persistence.
452             *
453             * @param wikiPagePersistence the wiki page persistence
454             */
455            public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
456                    this.wikiPagePersistence = wikiPagePersistence;
457            }
458    
459            /**
460             * Returns the wiki page finder.
461             *
462             * @return the wiki page finder
463             */
464            public WikiPageFinder getWikiPageFinder() {
465                    return wikiPageFinder;
466            }
467    
468            /**
469             * Sets the wiki page finder.
470             *
471             * @param wikiPageFinder the wiki page finder
472             */
473            public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
474                    this.wikiPageFinder = wikiPageFinder;
475            }
476    
477            /**
478             * Returns the wiki page resource local service.
479             *
480             * @return the wiki page resource local service
481             */
482            public com.liferay.portlet.wiki.service.WikiPageResourceLocalService getWikiPageResourceLocalService() {
483                    return wikiPageResourceLocalService;
484            }
485    
486            /**
487             * Sets the wiki page resource local service.
488             *
489             * @param wikiPageResourceLocalService the wiki page resource local service
490             */
491            public void setWikiPageResourceLocalService(
492                    com.liferay.portlet.wiki.service.WikiPageResourceLocalService wikiPageResourceLocalService) {
493                    this.wikiPageResourceLocalService = wikiPageResourceLocalService;
494            }
495    
496            /**
497             * Returns the wiki page resource persistence.
498             *
499             * @return the wiki page resource persistence
500             */
501            public WikiPageResourcePersistence getWikiPageResourcePersistence() {
502                    return wikiPageResourcePersistence;
503            }
504    
505            /**
506             * Sets the wiki page resource persistence.
507             *
508             * @param wikiPageResourcePersistence the wiki page resource persistence
509             */
510            public void setWikiPageResourcePersistence(
511                    WikiPageResourcePersistence wikiPageResourcePersistence) {
512                    this.wikiPageResourcePersistence = wikiPageResourcePersistence;
513            }
514    
515            /**
516             * Returns the counter local service.
517             *
518             * @return the counter local service
519             */
520            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
521                    return counterLocalService;
522            }
523    
524            /**
525             * Sets the counter local service.
526             *
527             * @param counterLocalService the counter local service
528             */
529            public void setCounterLocalService(
530                    com.liferay.counter.service.CounterLocalService counterLocalService) {
531                    this.counterLocalService = counterLocalService;
532            }
533    
534            /**
535             * Returns the group local service.
536             *
537             * @return the group local service
538             */
539            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
540                    return groupLocalService;
541            }
542    
543            /**
544             * Sets the group local service.
545             *
546             * @param groupLocalService the group local service
547             */
548            public void setGroupLocalService(
549                    com.liferay.portal.service.GroupLocalService groupLocalService) {
550                    this.groupLocalService = groupLocalService;
551            }
552    
553            /**
554             * Returns the group remote service.
555             *
556             * @return the group remote service
557             */
558            public com.liferay.portal.service.GroupService getGroupService() {
559                    return groupService;
560            }
561    
562            /**
563             * Sets the group remote service.
564             *
565             * @param groupService the group remote service
566             */
567            public void setGroupService(
568                    com.liferay.portal.service.GroupService groupService) {
569                    this.groupService = groupService;
570            }
571    
572            /**
573             * Returns the group persistence.
574             *
575             * @return the group persistence
576             */
577            public GroupPersistence getGroupPersistence() {
578                    return groupPersistence;
579            }
580    
581            /**
582             * Sets the group persistence.
583             *
584             * @param groupPersistence the group persistence
585             */
586            public void setGroupPersistence(GroupPersistence groupPersistence) {
587                    this.groupPersistence = groupPersistence;
588            }
589    
590            /**
591             * Returns the group finder.
592             *
593             * @return the group finder
594             */
595            public GroupFinder getGroupFinder() {
596                    return groupFinder;
597            }
598    
599            /**
600             * Sets the group finder.
601             *
602             * @param groupFinder the group finder
603             */
604            public void setGroupFinder(GroupFinder groupFinder) {
605                    this.groupFinder = groupFinder;
606            }
607    
608            /**
609             * Returns the resource local service.
610             *
611             * @return the resource local service
612             */
613            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
614                    return resourceLocalService;
615            }
616    
617            /**
618             * Sets the resource local service.
619             *
620             * @param resourceLocalService the resource local service
621             */
622            public void setResourceLocalService(
623                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
624                    this.resourceLocalService = resourceLocalService;
625            }
626    
627            /**
628             * Returns the subscription local service.
629             *
630             * @return the subscription local service
631             */
632            public com.liferay.portal.service.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                    com.liferay.portal.service.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 system event local service.
667             *
668             * @return the system event local service
669             */
670            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
671                    return systemEventLocalService;
672            }
673    
674            /**
675             * Sets the system event local service.
676             *
677             * @param systemEventLocalService the system event local service
678             */
679            public void setSystemEventLocalService(
680                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
681                    this.systemEventLocalService = systemEventLocalService;
682            }
683    
684            /**
685             * Returns the system event persistence.
686             *
687             * @return the system event persistence
688             */
689            public SystemEventPersistence getSystemEventPersistence() {
690                    return systemEventPersistence;
691            }
692    
693            /**
694             * Sets the system event persistence.
695             *
696             * @param systemEventPersistence the system event persistence
697             */
698            public void setSystemEventPersistence(
699                    SystemEventPersistence systemEventPersistence) {
700                    this.systemEventPersistence = systemEventPersistence;
701            }
702    
703            /**
704             * Returns the user local service.
705             *
706             * @return the user local service
707             */
708            public com.liferay.portal.service.UserLocalService getUserLocalService() {
709                    return userLocalService;
710            }
711    
712            /**
713             * Sets the user local service.
714             *
715             * @param userLocalService the user local service
716             */
717            public void setUserLocalService(
718                    com.liferay.portal.service.UserLocalService userLocalService) {
719                    this.userLocalService = userLocalService;
720            }
721    
722            /**
723             * Returns the user remote service.
724             *
725             * @return the user remote service
726             */
727            public com.liferay.portal.service.UserService getUserService() {
728                    return userService;
729            }
730    
731            /**
732             * Sets the user remote service.
733             *
734             * @param userService the user remote service
735             */
736            public void setUserService(
737                    com.liferay.portal.service.UserService userService) {
738                    this.userService = userService;
739            }
740    
741            /**
742             * Returns the user persistence.
743             *
744             * @return the user persistence
745             */
746            public UserPersistence getUserPersistence() {
747                    return userPersistence;
748            }
749    
750            /**
751             * Sets the user persistence.
752             *
753             * @param userPersistence the user persistence
754             */
755            public void setUserPersistence(UserPersistence userPersistence) {
756                    this.userPersistence = userPersistence;
757            }
758    
759            /**
760             * Returns the user finder.
761             *
762             * @return the user finder
763             */
764            public UserFinder getUserFinder() {
765                    return userFinder;
766            }
767    
768            /**
769             * Sets the user finder.
770             *
771             * @param userFinder the user finder
772             */
773            public void setUserFinder(UserFinder userFinder) {
774                    this.userFinder = userFinder;
775            }
776    
777            /**
778             * Returns the workflow instance link local service.
779             *
780             * @return the workflow instance link local service
781             */
782            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
783                    return workflowInstanceLinkLocalService;
784            }
785    
786            /**
787             * Sets the workflow instance link local service.
788             *
789             * @param workflowInstanceLinkLocalService the workflow instance link local service
790             */
791            public void setWorkflowInstanceLinkLocalService(
792                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
793                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
794            }
795    
796            /**
797             * Returns the workflow instance link persistence.
798             *
799             * @return the workflow instance link persistence
800             */
801            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
802                    return workflowInstanceLinkPersistence;
803            }
804    
805            /**
806             * Sets the workflow instance link persistence.
807             *
808             * @param workflowInstanceLinkPersistence the workflow instance link persistence
809             */
810            public void setWorkflowInstanceLinkPersistence(
811                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
812                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
813            }
814    
815            /**
816             * Returns the asset entry local service.
817             *
818             * @return the asset entry local service
819             */
820            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
821                    return assetEntryLocalService;
822            }
823    
824            /**
825             * Sets the asset entry local service.
826             *
827             * @param assetEntryLocalService the asset entry local service
828             */
829            public void setAssetEntryLocalService(
830                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
831                    this.assetEntryLocalService = assetEntryLocalService;
832            }
833    
834            /**
835             * Returns the asset entry remote service.
836             *
837             * @return the asset entry remote service
838             */
839            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
840                    return assetEntryService;
841            }
842    
843            /**
844             * Sets the asset entry remote service.
845             *
846             * @param assetEntryService the asset entry remote service
847             */
848            public void setAssetEntryService(
849                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
850                    this.assetEntryService = assetEntryService;
851            }
852    
853            /**
854             * Returns the asset entry persistence.
855             *
856             * @return the asset entry persistence
857             */
858            public AssetEntryPersistence getAssetEntryPersistence() {
859                    return assetEntryPersistence;
860            }
861    
862            /**
863             * Sets the asset entry persistence.
864             *
865             * @param assetEntryPersistence the asset entry persistence
866             */
867            public void setAssetEntryPersistence(
868                    AssetEntryPersistence assetEntryPersistence) {
869                    this.assetEntryPersistence = assetEntryPersistence;
870            }
871    
872            /**
873             * Returns the asset entry finder.
874             *
875             * @return the asset entry finder
876             */
877            public AssetEntryFinder getAssetEntryFinder() {
878                    return assetEntryFinder;
879            }
880    
881            /**
882             * Sets the asset entry finder.
883             *
884             * @param assetEntryFinder the asset entry finder
885             */
886            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
887                    this.assetEntryFinder = assetEntryFinder;
888            }
889    
890            /**
891             * Returns the trash entry local service.
892             *
893             * @return the trash entry local service
894             */
895            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
896                    return trashEntryLocalService;
897            }
898    
899            /**
900             * Sets the trash entry local service.
901             *
902             * @param trashEntryLocalService the trash entry local service
903             */
904            public void setTrashEntryLocalService(
905                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
906                    this.trashEntryLocalService = trashEntryLocalService;
907            }
908    
909            /**
910             * Returns the trash entry remote service.
911             *
912             * @return the trash entry remote service
913             */
914            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
915                    return trashEntryService;
916            }
917    
918            /**
919             * Sets the trash entry remote service.
920             *
921             * @param trashEntryService the trash entry remote service
922             */
923            public void setTrashEntryService(
924                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
925                    this.trashEntryService = trashEntryService;
926            }
927    
928            /**
929             * Returns the trash entry persistence.
930             *
931             * @return the trash entry persistence
932             */
933            public TrashEntryPersistence getTrashEntryPersistence() {
934                    return trashEntryPersistence;
935            }
936    
937            /**
938             * Sets the trash entry persistence.
939             *
940             * @param trashEntryPersistence the trash entry persistence
941             */
942            public void setTrashEntryPersistence(
943                    TrashEntryPersistence trashEntryPersistence) {
944                    this.trashEntryPersistence = trashEntryPersistence;
945            }
946    
947            public void afterPropertiesSet() {
948                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.wiki.model.WikiNode",
949                            wikiNodeLocalService);
950            }
951    
952            public void destroy() {
953                    persistedModelLocalServiceRegistry.unregister(
954                            "com.liferay.portlet.wiki.model.WikiNode");
955            }
956    
957            /**
958             * Returns the Spring bean ID for this bean.
959             *
960             * @return the Spring bean ID for this bean
961             */
962            @Override
963            public String getBeanIdentifier() {
964                    return _beanIdentifier;
965            }
966    
967            /**
968             * Sets the Spring bean ID for this bean.
969             *
970             * @param beanIdentifier the Spring bean ID for this bean
971             */
972            @Override
973            public void setBeanIdentifier(String beanIdentifier) {
974                    _beanIdentifier = beanIdentifier;
975            }
976    
977            protected Class<?> getModelClass() {
978                    return WikiNode.class;
979            }
980    
981            protected String getModelClassName() {
982                    return WikiNode.class.getName();
983            }
984    
985            /**
986             * Performs an SQL query.
987             *
988             * @param sql the sql query
989             */
990            protected void runSQL(String sql) throws SystemException {
991                    try {
992                            DataSource dataSource = wikiNodePersistence.getDataSource();
993    
994                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
995                                            sql, new int[0]);
996    
997                            sqlUpdate.update();
998                    }
999                    catch (Exception e) {
1000                            throw new SystemException(e);
1001                    }
1002            }
1003    
1004            @BeanReference(type = com.liferay.portlet.wiki.service.WikiNodeLocalService.class)
1005            protected com.liferay.portlet.wiki.service.WikiNodeLocalService wikiNodeLocalService;
1006            @BeanReference(type = com.liferay.portlet.wiki.service.WikiNodeService.class)
1007            protected com.liferay.portlet.wiki.service.WikiNodeService wikiNodeService;
1008            @BeanReference(type = WikiNodePersistence.class)
1009            protected WikiNodePersistence wikiNodePersistence;
1010            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageLocalService.class)
1011            protected com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService;
1012            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageService.class)
1013            protected com.liferay.portlet.wiki.service.WikiPageService wikiPageService;
1014            @BeanReference(type = WikiPagePersistence.class)
1015            protected WikiPagePersistence wikiPagePersistence;
1016            @BeanReference(type = WikiPageFinder.class)
1017            protected WikiPageFinder wikiPageFinder;
1018            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageResourceLocalService.class)
1019            protected com.liferay.portlet.wiki.service.WikiPageResourceLocalService wikiPageResourceLocalService;
1020            @BeanReference(type = WikiPageResourcePersistence.class)
1021            protected WikiPageResourcePersistence wikiPageResourcePersistence;
1022            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1023            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1024            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1025            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1026            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1027            protected com.liferay.portal.service.GroupService groupService;
1028            @BeanReference(type = GroupPersistence.class)
1029            protected GroupPersistence groupPersistence;
1030            @BeanReference(type = GroupFinder.class)
1031            protected GroupFinder groupFinder;
1032            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1033            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1034            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1035            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1036            @BeanReference(type = SubscriptionPersistence.class)
1037            protected SubscriptionPersistence subscriptionPersistence;
1038            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
1039            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
1040            @BeanReference(type = SystemEventPersistence.class)
1041            protected SystemEventPersistence systemEventPersistence;
1042            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1043            protected com.liferay.portal.service.UserLocalService userLocalService;
1044            @BeanReference(type = com.liferay.portal.service.UserService.class)
1045            protected com.liferay.portal.service.UserService userService;
1046            @BeanReference(type = UserPersistence.class)
1047            protected UserPersistence userPersistence;
1048            @BeanReference(type = UserFinder.class)
1049            protected UserFinder userFinder;
1050            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1051            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1052            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1053            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1054            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1055            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1056            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1057            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1058            @BeanReference(type = AssetEntryPersistence.class)
1059            protected AssetEntryPersistence assetEntryPersistence;
1060            @BeanReference(type = AssetEntryFinder.class)
1061            protected AssetEntryFinder assetEntryFinder;
1062            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1063            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1064            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1065            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1066            @BeanReference(type = TrashEntryPersistence.class)
1067            protected TrashEntryPersistence trashEntryPersistence;
1068            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1069            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1070            private String _beanIdentifier;
1071    }