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 Spring bean ID for this bean. 204 * 205 * @return the Spring bean ID for this bean 206 */ 207 @Override 208 public java.lang.String getBeanIdentifier() { 209 return _clusterGroupLocalService.getBeanIdentifier(); 210 } 211 212 /** 213 * Returns the cluster group with the primary key. 214 * 215 * @param clusterGroupId the primary key of the cluster group 216 * @return the cluster group 217 * @throws PortalException if a cluster group with the primary key could not be found 218 */ 219 @Override 220 public com.liferay.portal.model.ClusterGroup getClusterGroup( 221 long clusterGroupId) 222 throws com.liferay.portal.kernel.exception.PortalException { 223 return _clusterGroupLocalService.getClusterGroup(clusterGroupId); 224 } 225 226 /** 227 * Returns a range of all the cluster groups. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param start the lower bound of the range of cluster groups 234 * @param end the upper bound of the range of cluster groups (not inclusive) 235 * @return the range of cluster groups 236 */ 237 @Override 238 public java.util.List<com.liferay.portal.model.ClusterGroup> getClusterGroups( 239 int start, int end) { 240 return _clusterGroupLocalService.getClusterGroups(start, end); 241 } 242 243 /** 244 * Returns the number of cluster groups. 245 * 246 * @return the number of cluster groups 247 */ 248 @Override 249 public int getClusterGroupsCount() { 250 return _clusterGroupLocalService.getClusterGroupsCount(); 251 } 252 253 @Override 254 public com.liferay.portal.model.PersistedModel getPersistedModel( 255 java.io.Serializable primaryKeyObj) 256 throws com.liferay.portal.kernel.exception.PortalException { 257 return _clusterGroupLocalService.getPersistedModel(primaryKeyObj); 258 } 259 260 /** 261 * Sets the Spring bean ID for this bean. 262 * 263 * @param beanIdentifier the Spring bean ID for this bean 264 */ 265 @Override 266 public void setBeanIdentifier(java.lang.String beanIdentifier) { 267 _clusterGroupLocalService.setBeanIdentifier(beanIdentifier); 268 } 269 270 /** 271 * Updates the cluster group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 272 * 273 * @param clusterGroup the cluster group 274 * @return the cluster group that was updated 275 */ 276 @Override 277 public com.liferay.portal.model.ClusterGroup updateClusterGroup( 278 com.liferay.portal.model.ClusterGroup clusterGroup) { 279 return _clusterGroupLocalService.updateClusterGroup(clusterGroup); 280 } 281 282 /** 283 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 284 */ 285 @Deprecated 286 public ClusterGroupLocalService getWrappedClusterGroupLocalService() { 287 return _clusterGroupLocalService; 288 } 289 290 /** 291 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 292 */ 293 @Deprecated 294 public void setWrappedClusterGroupLocalService( 295 ClusterGroupLocalService clusterGroupLocalService) { 296 _clusterGroupLocalService = clusterGroupLocalService; 297 } 298 299 @Override 300 public ClusterGroupLocalService getWrappedService() { 301 return _clusterGroupLocalService; 302 } 303 304 @Override 305 public void setWrappedService( 306 ClusterGroupLocalService clusterGroupLocalService) { 307 _clusterGroupLocalService = clusterGroupLocalService; 308 } 309 310 private ClusterGroupLocalService _clusterGroupLocalService; 311 }