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.dynamicdatalists.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link DDLRecordVersionLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see DDLRecordVersionLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class DDLRecordVersionLocalServiceWrapper 030 implements DDLRecordVersionLocalService, 031 ServiceWrapper<DDLRecordVersionLocalService> { 032 public DDLRecordVersionLocalServiceWrapper( 033 DDLRecordVersionLocalService ddlRecordVersionLocalService) { 034 _ddlRecordVersionLocalService = ddlRecordVersionLocalService; 035 } 036 037 /** 038 * Adds the d d l record version to the database. Also notifies the appropriate model listeners. 039 * 040 * @param ddlRecordVersion the d d l record version 041 * @return the d d l record version that was added 042 */ 043 @Override 044 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion addDDLRecordVersion( 045 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) { 046 return _ddlRecordVersionLocalService.addDDLRecordVersion(ddlRecordVersion); 047 } 048 049 /** 050 * Creates a new d d l record version with the primary key. Does not add the d d l record version to the database. 051 * 052 * @param recordVersionId the primary key for the new d d l record version 053 * @return the new d d l record version 054 */ 055 @Override 056 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion createDDLRecordVersion( 057 long recordVersionId) { 058 return _ddlRecordVersionLocalService.createDDLRecordVersion(recordVersionId); 059 } 060 061 /** 062 * Deletes the d d l record version from the database. Also notifies the appropriate model listeners. 063 * 064 * @param ddlRecordVersion the d d l record version 065 * @return the d d l record version that was removed 066 */ 067 @Override 068 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion deleteDDLRecordVersion( 069 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) { 070 return _ddlRecordVersionLocalService.deleteDDLRecordVersion(ddlRecordVersion); 071 } 072 073 /** 074 * Deletes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners. 075 * 076 * @param recordVersionId the primary key of the d d l record version 077 * @return the d d l record version that was removed 078 * @throws PortalException if a d d l record version with the primary key could not be found 079 */ 080 @Override 081 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion deleteDDLRecordVersion( 082 long recordVersionId) 083 throws com.liferay.portal.kernel.exception.PortalException { 084 return _ddlRecordVersionLocalService.deleteDDLRecordVersion(recordVersionId); 085 } 086 087 /** 088 * @throws PortalException 089 */ 090 @Override 091 public com.liferay.portal.model.PersistedModel deletePersistedModel( 092 com.liferay.portal.model.PersistedModel persistedModel) 093 throws com.liferay.portal.kernel.exception.PortalException { 094 return _ddlRecordVersionLocalService.deletePersistedModel(persistedModel); 095 } 096 097 @Override 098 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 099 return _ddlRecordVersionLocalService.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 _ddlRecordVersionLocalService.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.dynamicdatalists.model.impl.DDLRecordVersionModelImpl}. 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 _ddlRecordVersionLocalService.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.dynamicdatalists.model.impl.DDLRecordVersionModelImpl}. 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 _ddlRecordVersionLocalService.dynamicQuery(dynamicQuery, start, 153 end, orderByComparator); 154 } 155 156 /** 157 * Returns the number of rows that match the dynamic query. 158 * 159 * @param dynamicQuery the dynamic query 160 * @return the number of rows that match the dynamic query 161 */ 162 @Override 163 public long dynamicQueryCount( 164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 165 return _ddlRecordVersionLocalService.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 */ 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 _ddlRecordVersionLocalService.dynamicQueryCount(dynamicQuery, 180 projection); 181 } 182 183 @Override 184 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchDDLRecordVersion( 185 long recordVersionId) { 186 return _ddlRecordVersionLocalService.fetchDDLRecordVersion(recordVersionId); 187 } 188 189 @Override 190 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 191 return _ddlRecordVersionLocalService.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 _ddlRecordVersionLocalService.getBeanIdentifier(); 202 } 203 204 /** 205 * Returns the d d l record version with the primary key. 206 * 207 * @param recordVersionId the primary key of the d d l record version 208 * @return the d d l record version 209 * @throws PortalException if a d d l record version with the primary key could not be found 210 */ 211 @Override 212 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getDDLRecordVersion( 213 long recordVersionId) 214 throws com.liferay.portal.kernel.exception.PortalException { 215 return _ddlRecordVersionLocalService.getDDLRecordVersion(recordVersionId); 216 } 217 218 /** 219 * Returns a range of all the d d l record versions. 220 * 221 * <p> 222 * 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.dynamicdatalists.model.impl.DDLRecordVersionModelImpl}. 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. 223 * </p> 224 * 225 * @param start the lower bound of the range of d d l record versions 226 * @param end the upper bound of the range of d d l record versions (not inclusive) 227 * @return the range of d d l record versions 228 */ 229 @Override 230 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getDDLRecordVersions( 231 int start, int end) { 232 return _ddlRecordVersionLocalService.getDDLRecordVersions(start, end); 233 } 234 235 /** 236 * Returns the number of d d l record versions. 237 * 238 * @return the number of d d l record versions 239 */ 240 @Override 241 public int getDDLRecordVersionsCount() { 242 return _ddlRecordVersionLocalService.getDDLRecordVersionsCount(); 243 } 244 245 @Override 246 public com.liferay.portal.model.PersistedModel getPersistedModel( 247 java.io.Serializable primaryKeyObj) 248 throws com.liferay.portal.kernel.exception.PortalException { 249 return _ddlRecordVersionLocalService.getPersistedModel(primaryKeyObj); 250 } 251 252 @Override 253 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion( 254 long recordId, java.lang.String version) 255 throws com.liferay.portal.kernel.exception.PortalException { 256 return _ddlRecordVersionLocalService.getRecordVersion(recordId, version); 257 } 258 259 @Override 260 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion getRecordVersion( 261 long recordVersionId) 262 throws com.liferay.portal.kernel.exception.PortalException { 263 return _ddlRecordVersionLocalService.getRecordVersion(recordVersionId); 264 } 265 266 @Override 267 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> getRecordVersions( 268 long recordId, int start, int end, 269 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator) { 270 return _ddlRecordVersionLocalService.getRecordVersions(recordId, start, 271 end, orderByComparator); 272 } 273 274 @Override 275 public int getRecordVersionsCount(long recordId) { 276 return _ddlRecordVersionLocalService.getRecordVersionsCount(recordId); 277 } 278 279 /** 280 * Sets the Spring bean ID for this bean. 281 * 282 * @param beanIdentifier the Spring bean ID for this bean 283 */ 284 @Override 285 public void setBeanIdentifier(java.lang.String beanIdentifier) { 286 _ddlRecordVersionLocalService.setBeanIdentifier(beanIdentifier); 287 } 288 289 /** 290 * Updates the d d l record version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 291 * 292 * @param ddlRecordVersion the d d l record version 293 * @return the d d l record version that was updated 294 */ 295 @Override 296 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion updateDDLRecordVersion( 297 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) { 298 return _ddlRecordVersionLocalService.updateDDLRecordVersion(ddlRecordVersion); 299 } 300 301 /** 302 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 303 */ 304 @Deprecated 305 public DDLRecordVersionLocalService getWrappedDDLRecordVersionLocalService() { 306 return _ddlRecordVersionLocalService; 307 } 308 309 /** 310 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 311 */ 312 @Deprecated 313 public void setWrappedDDLRecordVersionLocalService( 314 DDLRecordVersionLocalService ddlRecordVersionLocalService) { 315 _ddlRecordVersionLocalService = ddlRecordVersionLocalService; 316 } 317 318 @Override 319 public DDLRecordVersionLocalService getWrappedService() { 320 return _ddlRecordVersionLocalService; 321 } 322 323 @Override 324 public void setWrappedService( 325 DDLRecordVersionLocalService ddlRecordVersionLocalService) { 326 _ddlRecordVersionLocalService = ddlRecordVersionLocalService; 327 } 328 329 private DDLRecordVersionLocalService _ddlRecordVersionLocalService; 330 }