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