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