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