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