001    /**
002     * Copyright (c) 2000-present 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.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link ClusterGroupLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see ClusterGroupLocalService
024     * @generated
025     */
026    @ProviderType
027    public class ClusterGroupLocalServiceWrapper implements ClusterGroupLocalService,
028            ServiceWrapper<ClusterGroupLocalService> {
029            public ClusterGroupLocalServiceWrapper(
030                    ClusterGroupLocalService clusterGroupLocalService) {
031                    _clusterGroupLocalService = clusterGroupLocalService;
032            }
033    
034            /**
035            * Adds the cluster group to the database. Also notifies the appropriate model listeners.
036            *
037            * @param clusterGroup the cluster group
038            * @return the cluster group that was added
039            */
040            @Override
041            public com.liferay.portal.model.ClusterGroup addClusterGroup(
042                    com.liferay.portal.model.ClusterGroup clusterGroup) {
043                    return _clusterGroupLocalService.addClusterGroup(clusterGroup);
044            }
045    
046            @Override
047            public com.liferay.portal.model.ClusterGroup addClusterGroup(
048                    java.lang.String name, java.util.List<java.lang.String> clusterNodeIds) {
049                    return _clusterGroupLocalService.addClusterGroup(name, clusterNodeIds);
050            }
051    
052            @Override
053            public com.liferay.portal.model.ClusterGroup addWholeClusterGroup(
054                    java.lang.String name) {
055                    return _clusterGroupLocalService.addWholeClusterGroup(name);
056            }
057    
058            /**
059            * Creates a new cluster group with the primary key. Does not add the cluster group to the database.
060            *
061            * @param clusterGroupId the primary key for the new cluster group
062            * @return the new cluster group
063            */
064            @Override
065            public com.liferay.portal.model.ClusterGroup createClusterGroup(
066                    long clusterGroupId) {
067                    return _clusterGroupLocalService.createClusterGroup(clusterGroupId);
068            }
069    
070            /**
071            * Deletes the cluster group from the database. Also notifies the appropriate model listeners.
072            *
073            * @param clusterGroup the cluster group
074            * @return the cluster group that was removed
075            */
076            @Override
077            public com.liferay.portal.model.ClusterGroup deleteClusterGroup(
078                    com.liferay.portal.model.ClusterGroup clusterGroup) {
079                    return _clusterGroupLocalService.deleteClusterGroup(clusterGroup);
080            }
081    
082            /**
083            * Deletes the cluster group with the primary key from the database. Also notifies the appropriate model listeners.
084            *
085            * @param clusterGroupId the primary key of the cluster group
086            * @return the cluster group that was removed
087            * @throws PortalException if a cluster group with the primary key could not be found
088            */
089            @Override
090            public com.liferay.portal.model.ClusterGroup deleteClusterGroup(
091                    long clusterGroupId)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    return _clusterGroupLocalService.deleteClusterGroup(clusterGroupId);
094            }
095    
096            /**
097            * @throws PortalException
098            */
099            @Override
100            public com.liferay.portal.model.PersistedModel deletePersistedModel(
101                    com.liferay.portal.model.PersistedModel persistedModel)
102                    throws com.liferay.portal.kernel.exception.PortalException {
103                    return _clusterGroupLocalService.deletePersistedModel(persistedModel);
104            }
105    
106            @Override
107            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
108                    return _clusterGroupLocalService.dynamicQuery();
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns the matching rows.
113            *
114            * @param dynamicQuery the dynamic query
115            * @return the matching rows
116            */
117            @Override
118            public <T> java.util.List<T> dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
120                    return _clusterGroupLocalService.dynamicQuery(dynamicQuery);
121            }
122    
123            /**
124            * Performs a dynamic query on the database and returns a range of the matching rows.
125            *
126            * <p>
127            * 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.portal.model.impl.ClusterGroupModelImpl}. 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.
128            * </p>
129            *
130            * @param dynamicQuery the dynamic query
131            * @param start the lower bound of the range of model instances
132            * @param end the upper bound of the range of model instances (not inclusive)
133            * @return the range of matching rows
134            */
135            @Override
136            public <T> java.util.List<T> dynamicQuery(
137                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
138                    int end) {
139                    return _clusterGroupLocalService.dynamicQuery(dynamicQuery, start, end);
140            }
141    
142            /**
143            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
144            *
145            * <p>
146            * 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.portal.model.impl.ClusterGroupModelImpl}. 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.
147            * </p>
148            *
149            * @param dynamicQuery the dynamic query
150            * @param start the lower bound of the range of model instances
151            * @param end the upper bound of the range of model instances (not inclusive)
152            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
153            * @return the ordered range of matching rows
154            */
155            @Override
156            public <T> java.util.List<T> dynamicQuery(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158                    int end,
159                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
160                    return _clusterGroupLocalService.dynamicQuery(dynamicQuery, start, end,
161                            orderByComparator);
162            }
163    
164            /**
165            * Returns the number of rows matching the dynamic query.
166            *
167            * @param dynamicQuery the dynamic query
168            * @return the number of rows matching the dynamic query
169            */
170            @Override
171            public long dynamicQueryCount(
172                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
173                    return _clusterGroupLocalService.dynamicQueryCount(dynamicQuery);
174            }
175    
176            /**
177            * Returns the number of rows matching the dynamic query.
178            *
179            * @param dynamicQuery the dynamic query
180            * @param projection the projection to apply to the query
181            * @return the number of rows matching the dynamic query
182            */
183            @Override
184            public long dynamicQueryCount(
185                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
186                    com.liferay.portal.kernel.dao.orm.Projection projection) {
187                    return _clusterGroupLocalService.dynamicQueryCount(dynamicQuery,
188                            projection);
189            }
190    
191            @Override
192            public com.liferay.portal.model.ClusterGroup fetchClusterGroup(
193                    long clusterGroupId) {
194                    return _clusterGroupLocalService.fetchClusterGroup(clusterGroupId);
195            }
196    
197            @Override
198            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
199                    return _clusterGroupLocalService.getActionableDynamicQuery();
200            }
201    
202            /**
203            * Returns the cluster group with the primary key.
204            *
205            * @param clusterGroupId the primary key of the cluster group
206            * @return the cluster group
207            * @throws PortalException if a cluster group with the primary key could not be found
208            */
209            @Override
210            public com.liferay.portal.model.ClusterGroup getClusterGroup(
211                    long clusterGroupId)
212                    throws com.liferay.portal.kernel.exception.PortalException {
213                    return _clusterGroupLocalService.getClusterGroup(clusterGroupId);
214            }
215    
216            /**
217            * Returns a range of all the cluster groups.
218            *
219            * <p>
220            * 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.portal.model.impl.ClusterGroupModelImpl}. 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.
221            * </p>
222            *
223            * @param start the lower bound of the range of cluster groups
224            * @param end the upper bound of the range of cluster groups (not inclusive)
225            * @return the range of cluster groups
226            */
227            @Override
228            public java.util.List<com.liferay.portal.model.ClusterGroup> getClusterGroups(
229                    int start, int end) {
230                    return _clusterGroupLocalService.getClusterGroups(start, end);
231            }
232    
233            /**
234            * Returns the number of cluster groups.
235            *
236            * @return the number of cluster groups
237            */
238            @Override
239            public int getClusterGroupsCount() {
240                    return _clusterGroupLocalService.getClusterGroupsCount();
241            }
242    
243            @Override
244            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
245                    return _clusterGroupLocalService.getIndexableActionableDynamicQuery();
246            }
247    
248            /**
249            * Returns the OSGi service identifier.
250            *
251            * @return the OSGi service identifier
252            */
253            @Override
254            public java.lang.String getOSGiServiceIdentifier() {
255                    return _clusterGroupLocalService.getOSGiServiceIdentifier();
256            }
257    
258            @Override
259            public com.liferay.portal.model.PersistedModel getPersistedModel(
260                    java.io.Serializable primaryKeyObj)
261                    throws com.liferay.portal.kernel.exception.PortalException {
262                    return _clusterGroupLocalService.getPersistedModel(primaryKeyObj);
263            }
264    
265            /**
266            * Updates the cluster group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
267            *
268            * @param clusterGroup the cluster group
269            * @return the cluster group that was updated
270            */
271            @Override
272            public com.liferay.portal.model.ClusterGroup updateClusterGroup(
273                    com.liferay.portal.model.ClusterGroup clusterGroup) {
274                    return _clusterGroupLocalService.updateClusterGroup(clusterGroup);
275            }
276    
277            @Override
278            public ClusterGroupLocalService getWrappedService() {
279                    return _clusterGroupLocalService;
280            }
281    
282            @Override
283            public void setWrappedService(
284                    ClusterGroupLocalService clusterGroupLocalService) {
285                    _clusterGroupLocalService = clusterGroupLocalService;
286            }
287    
288            private ClusterGroupLocalService _clusterGroupLocalService;
289    }