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