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 @Override 193 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 194 return _listTypeLocalService.getIndexableActionableDynamicQuery(); 195 } 196 197 /** 198 * Returns the list type with the primary key. 199 * 200 * @param listTypeId the primary key of the list type 201 * @return the list type 202 * @throws PortalException if a list type with the primary key could not be found 203 */ 204 @Override 205 public com.liferay.portal.model.ListType getListType(long listTypeId) 206 throws com.liferay.portal.kernel.exception.PortalException { 207 return _listTypeLocalService.getListType(listTypeId); 208 } 209 210 /** 211 * Returns a range of all the list types. 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.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. 215 * </p> 216 * 217 * @param start the lower bound of the range of list types 218 * @param end the upper bound of the range of list types (not inclusive) 219 * @return the range of list types 220 */ 221 @Override 222 public java.util.List<com.liferay.portal.model.ListType> getListTypes( 223 int start, int end) { 224 return _listTypeLocalService.getListTypes(start, end); 225 } 226 227 @Override 228 public java.util.List<com.liferay.portal.model.ListType> getListTypes( 229 java.lang.String type) { 230 return _listTypeLocalService.getListTypes(type); 231 } 232 233 /** 234 * Returns the number of list types. 235 * 236 * @return the number of list types 237 */ 238 @Override 239 public int getListTypesCount() { 240 return _listTypeLocalService.getListTypesCount(); 241 } 242 243 /** 244 * Returns the OSGi service identifier. 245 * 246 * @return the OSGi service identifier 247 */ 248 @Override 249 public java.lang.String getOSGiServiceIdentifier() { 250 return _listTypeLocalService.getOSGiServiceIdentifier(); 251 } 252 253 @Override 254 public com.liferay.portal.model.PersistedModel getPersistedModel( 255 java.io.Serializable primaryKeyObj) 256 throws com.liferay.portal.kernel.exception.PortalException { 257 return _listTypeLocalService.getPersistedModel(primaryKeyObj); 258 } 259 260 /** 261 * Updates the list type in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 262 * 263 * @param listType the list type 264 * @return the list type that was updated 265 */ 266 @Override 267 public com.liferay.portal.model.ListType updateListType( 268 com.liferay.portal.model.ListType listType) { 269 return _listTypeLocalService.updateListType(listType); 270 } 271 272 @Override 273 public void validate(long listTypeId, long classNameId, 274 java.lang.String type) 275 throws com.liferay.portal.kernel.exception.PortalException { 276 _listTypeLocalService.validate(listTypeId, classNameId, type); 277 } 278 279 @Override 280 public void validate(long listTypeId, java.lang.String type) 281 throws com.liferay.portal.kernel.exception.PortalException { 282 _listTypeLocalService.validate(listTypeId, type); 283 } 284 285 @Override 286 public ListTypeLocalService getWrappedService() { 287 return _listTypeLocalService; 288 } 289 290 @Override 291 public void setWrappedService(ListTypeLocalService listTypeLocalService) { 292 _listTypeLocalService = listTypeLocalService; 293 } 294 295 private ListTypeLocalService _listTypeLocalService; 296 }