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