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