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.portlet.shopping.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link ShoppingItemFieldLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see ShoppingItemFieldLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class ShoppingItemFieldLocalServiceWrapper 030 implements ShoppingItemFieldLocalService, 031 ServiceWrapper<ShoppingItemFieldLocalService> { 032 public ShoppingItemFieldLocalServiceWrapper( 033 ShoppingItemFieldLocalService shoppingItemFieldLocalService) { 034 _shoppingItemFieldLocalService = shoppingItemFieldLocalService; 035 } 036 037 /** 038 * Adds the shopping item field to the database. Also notifies the appropriate model listeners. 039 * 040 * @param shoppingItemField the shopping item field 041 * @return the shopping item field that was added 042 */ 043 @Override 044 public com.liferay.portlet.shopping.model.ShoppingItemField addShoppingItemField( 045 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) { 046 return _shoppingItemFieldLocalService.addShoppingItemField(shoppingItemField); 047 } 048 049 /** 050 * Creates a new shopping item field with the primary key. Does not add the shopping item field to the database. 051 * 052 * @param itemFieldId the primary key for the new shopping item field 053 * @return the new shopping item field 054 */ 055 @Override 056 public com.liferay.portlet.shopping.model.ShoppingItemField createShoppingItemField( 057 long itemFieldId) { 058 return _shoppingItemFieldLocalService.createShoppingItemField(itemFieldId); 059 } 060 061 /** 062 * @throws PortalException 063 */ 064 @Override 065 public com.liferay.portal.model.PersistedModel deletePersistedModel( 066 com.liferay.portal.model.PersistedModel persistedModel) 067 throws com.liferay.portal.kernel.exception.PortalException { 068 return _shoppingItemFieldLocalService.deletePersistedModel(persistedModel); 069 } 070 071 /** 072 * Deletes the shopping item field with the primary key from the database. Also notifies the appropriate model listeners. 073 * 074 * @param itemFieldId the primary key of the shopping item field 075 * @return the shopping item field that was removed 076 * @throws PortalException if a shopping item field with the primary key could not be found 077 */ 078 @Override 079 public com.liferay.portlet.shopping.model.ShoppingItemField deleteShoppingItemField( 080 long itemFieldId) 081 throws com.liferay.portal.kernel.exception.PortalException { 082 return _shoppingItemFieldLocalService.deleteShoppingItemField(itemFieldId); 083 } 084 085 /** 086 * Deletes the shopping item field from the database. Also notifies the appropriate model listeners. 087 * 088 * @param shoppingItemField the shopping item field 089 * @return the shopping item field that was removed 090 */ 091 @Override 092 public com.liferay.portlet.shopping.model.ShoppingItemField deleteShoppingItemField( 093 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) { 094 return _shoppingItemFieldLocalService.deleteShoppingItemField(shoppingItemField); 095 } 096 097 @Override 098 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 099 return _shoppingItemFieldLocalService.dynamicQuery(); 100 } 101 102 /** 103 * Performs a dynamic query on the database and returns the matching rows. 104 * 105 * @param dynamicQuery the dynamic query 106 * @return the matching rows 107 */ 108 @Override 109 public <T> java.util.List<T> dynamicQuery( 110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 111 return _shoppingItemFieldLocalService.dynamicQuery(dynamicQuery); 112 } 113 114 /** 115 * Performs a dynamic query on the database and returns a range of the matching rows. 116 * 117 * <p> 118 * 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.portlet.shopping.model.impl.ShoppingItemFieldModelImpl}. 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. 119 * </p> 120 * 121 * @param dynamicQuery the dynamic query 122 * @param start the lower bound of the range of model instances 123 * @param end the upper bound of the range of model instances (not inclusive) 124 * @return the range of matching rows 125 */ 126 @Override 127 public <T> java.util.List<T> dynamicQuery( 128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 129 int end) { 130 return _shoppingItemFieldLocalService.dynamicQuery(dynamicQuery, start, 131 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.portlet.shopping.model.impl.ShoppingItemFieldModelImpl}. 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 _shoppingItemFieldLocalService.dynamicQuery(dynamicQuery, start, 153 end, 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 _shoppingItemFieldLocalService.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 _shoppingItemFieldLocalService.dynamicQueryCount(dynamicQuery, 180 projection); 181 } 182 183 @Override 184 public com.liferay.portlet.shopping.model.ShoppingItemField fetchShoppingItemField( 185 long itemFieldId) { 186 return _shoppingItemFieldLocalService.fetchShoppingItemField(itemFieldId); 187 } 188 189 @Override 190 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 191 return _shoppingItemFieldLocalService.getActionableDynamicQuery(); 192 } 193 194 /** 195 * Returns the Spring bean ID for this bean. 196 * 197 * @return the Spring bean ID for this bean 198 */ 199 @Override 200 public java.lang.String getBeanIdentifier() { 201 return _shoppingItemFieldLocalService.getBeanIdentifier(); 202 } 203 204 @Override 205 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> getItemFields( 206 long itemId) { 207 return _shoppingItemFieldLocalService.getItemFields(itemId); 208 } 209 210 @Override 211 public com.liferay.portal.model.PersistedModel getPersistedModel( 212 java.io.Serializable primaryKeyObj) 213 throws com.liferay.portal.kernel.exception.PortalException { 214 return _shoppingItemFieldLocalService.getPersistedModel(primaryKeyObj); 215 } 216 217 /** 218 * Returns the shopping item field with the primary key. 219 * 220 * @param itemFieldId the primary key of the shopping item field 221 * @return the shopping item field 222 * @throws PortalException if a shopping item field with the primary key could not be found 223 */ 224 @Override 225 public com.liferay.portlet.shopping.model.ShoppingItemField getShoppingItemField( 226 long itemFieldId) 227 throws com.liferay.portal.kernel.exception.PortalException { 228 return _shoppingItemFieldLocalService.getShoppingItemField(itemFieldId); 229 } 230 231 /** 232 * Returns a range of all the shopping item fields. 233 * 234 * <p> 235 * 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.portlet.shopping.model.impl.ShoppingItemFieldModelImpl}. 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. 236 * </p> 237 * 238 * @param start the lower bound of the range of shopping item fields 239 * @param end the upper bound of the range of shopping item fields (not inclusive) 240 * @return the range of shopping item fields 241 */ 242 @Override 243 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> getShoppingItemFields( 244 int start, int end) { 245 return _shoppingItemFieldLocalService.getShoppingItemFields(start, end); 246 } 247 248 /** 249 * Returns the number of shopping item fields. 250 * 251 * @return the number of shopping item fields 252 */ 253 @Override 254 public int getShoppingItemFieldsCount() { 255 return _shoppingItemFieldLocalService.getShoppingItemFieldsCount(); 256 } 257 258 /** 259 * Sets the Spring bean ID for this bean. 260 * 261 * @param beanIdentifier the Spring bean ID for this bean 262 */ 263 @Override 264 public void setBeanIdentifier(java.lang.String beanIdentifier) { 265 _shoppingItemFieldLocalService.setBeanIdentifier(beanIdentifier); 266 } 267 268 /** 269 * Updates the shopping item field in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 270 * 271 * @param shoppingItemField the shopping item field 272 * @return the shopping item field that was updated 273 */ 274 @Override 275 public com.liferay.portlet.shopping.model.ShoppingItemField updateShoppingItemField( 276 com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) { 277 return _shoppingItemFieldLocalService.updateShoppingItemField(shoppingItemField); 278 } 279 280 /** 281 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 282 */ 283 @Deprecated 284 public ShoppingItemFieldLocalService getWrappedShoppingItemFieldLocalService() { 285 return _shoppingItemFieldLocalService; 286 } 287 288 /** 289 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 290 */ 291 @Deprecated 292 public void setWrappedShoppingItemFieldLocalService( 293 ShoppingItemFieldLocalService shoppingItemFieldLocalService) { 294 _shoppingItemFieldLocalService = shoppingItemFieldLocalService; 295 } 296 297 @Override 298 public ShoppingItemFieldLocalService getWrappedService() { 299 return _shoppingItemFieldLocalService; 300 } 301 302 @Override 303 public void setWrappedService( 304 ShoppingItemFieldLocalService shoppingItemFieldLocalService) { 305 _shoppingItemFieldLocalService = shoppingItemFieldLocalService; 306 } 307 308 private ShoppingItemFieldLocalService _shoppingItemFieldLocalService; 309 }