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 RecentLayoutBranchLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see RecentLayoutBranchLocalService
024     * @generated
025     */
026    @ProviderType
027    public class RecentLayoutBranchLocalServiceWrapper
028            implements RecentLayoutBranchLocalService,
029                    ServiceWrapper<RecentLayoutBranchLocalService> {
030            public RecentLayoutBranchLocalServiceWrapper(
031                    RecentLayoutBranchLocalService recentLayoutBranchLocalService) {
032                    _recentLayoutBranchLocalService = recentLayoutBranchLocalService;
033            }
034    
035            @Override
036            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
037                    return _recentLayoutBranchLocalService.getActionableDynamicQuery();
038            }
039    
040            @Override
041            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
042                    return _recentLayoutBranchLocalService.dynamicQuery();
043            }
044    
045            @Override
046            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
047                    return _recentLayoutBranchLocalService.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 _recentLayoutBranchLocalService.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 _recentLayoutBranchLocalService.getPersistedModel(primaryKeyObj);
065            }
066    
067            /**
068            * Adds the recent layout branch to the database. Also notifies the appropriate model listeners.
069            *
070            * @param recentLayoutBranch the recent layout branch
071            * @return the recent layout branch that was added
072            */
073            @Override
074            public com.liferay.portal.kernel.model.RecentLayoutBranch addRecentLayoutBranch(
075                    com.liferay.portal.kernel.model.RecentLayoutBranch recentLayoutBranch) {
076                    return _recentLayoutBranchLocalService.addRecentLayoutBranch(recentLayoutBranch);
077            }
078    
079            @Override
080            public com.liferay.portal.kernel.model.RecentLayoutBranch addRecentLayoutBranch(
081                    long userId, long layoutBranchId, long layoutSetBranchId, long plid)
082                    throws com.liferay.portal.kernel.exception.PortalException {
083                    return _recentLayoutBranchLocalService.addRecentLayoutBranch(userId,
084                            layoutBranchId, layoutSetBranchId, plid);
085            }
086    
087            /**
088            * Creates a new recent layout branch with the primary key. Does not add the recent layout branch to the database.
089            *
090            * @param recentLayoutBranchId the primary key for the new recent layout branch
091            * @return the new recent layout branch
092            */
093            @Override
094            public com.liferay.portal.kernel.model.RecentLayoutBranch createRecentLayoutBranch(
095                    long recentLayoutBranchId) {
096                    return _recentLayoutBranchLocalService.createRecentLayoutBranch(recentLayoutBranchId);
097            }
098    
099            /**
100            * Deletes the recent layout branch from the database. Also notifies the appropriate model listeners.
101            *
102            * @param recentLayoutBranch the recent layout branch
103            * @return the recent layout branch that was removed
104            */
105            @Override
106            public com.liferay.portal.kernel.model.RecentLayoutBranch deleteRecentLayoutBranch(
107                    com.liferay.portal.kernel.model.RecentLayoutBranch recentLayoutBranch) {
108                    return _recentLayoutBranchLocalService.deleteRecentLayoutBranch(recentLayoutBranch);
109            }
110    
111            /**
112            * Deletes the recent layout branch with the primary key from the database. Also notifies the appropriate model listeners.
113            *
114            * @param recentLayoutBranchId the primary key of the recent layout branch
115            * @return the recent layout branch that was removed
116            * @throws PortalException if a recent layout branch with the primary key could not be found
117            */
118            @Override
119            public com.liferay.portal.kernel.model.RecentLayoutBranch deleteRecentLayoutBranch(
120                    long recentLayoutBranchId)
121                    throws com.liferay.portal.kernel.exception.PortalException {
122                    return _recentLayoutBranchLocalService.deleteRecentLayoutBranch(recentLayoutBranchId);
123            }
124    
125            @Override
126            public com.liferay.portal.kernel.model.RecentLayoutBranch fetchRecentLayoutBranch(
127                    long recentLayoutBranchId) {
128                    return _recentLayoutBranchLocalService.fetchRecentLayoutBranch(recentLayoutBranchId);
129            }
130    
131            @Override
132            public com.liferay.portal.kernel.model.RecentLayoutBranch fetchRecentLayoutBranch(
133                    long userId, long layoutSetBranchId, long plid) {
134                    return _recentLayoutBranchLocalService.fetchRecentLayoutBranch(userId,
135                            layoutSetBranchId, plid);
136            }
137    
138            /**
139            * Returns the recent layout branch with the primary key.
140            *
141            * @param recentLayoutBranchId the primary key of the recent layout branch
142            * @return the recent layout branch
143            * @throws PortalException if a recent layout branch with the primary key could not be found
144            */
145            @Override
146            public com.liferay.portal.kernel.model.RecentLayoutBranch getRecentLayoutBranch(
147                    long recentLayoutBranchId)
148                    throws com.liferay.portal.kernel.exception.PortalException {
149                    return _recentLayoutBranchLocalService.getRecentLayoutBranch(recentLayoutBranchId);
150            }
151    
152            /**
153            * Updates the recent layout branch in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
154            *
155            * @param recentLayoutBranch the recent layout branch
156            * @return the recent layout branch that was updated
157            */
158            @Override
159            public com.liferay.portal.kernel.model.RecentLayoutBranch updateRecentLayoutBranch(
160                    com.liferay.portal.kernel.model.RecentLayoutBranch recentLayoutBranch) {
161                    return _recentLayoutBranchLocalService.updateRecentLayoutBranch(recentLayoutBranch);
162            }
163    
164            /**
165            * Returns the number of recent layout branchs.
166            *
167            * @return the number of recent layout branchs
168            */
169            @Override
170            public int getRecentLayoutBranchsCount() {
171                    return _recentLayoutBranchLocalService.getRecentLayoutBranchsCount();
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 _recentLayoutBranchLocalService.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 _recentLayoutBranchLocalService.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.RecentLayoutBranchModelImpl}. 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 _recentLayoutBranchLocalService.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.RecentLayoutBranchModelImpl}. 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 _recentLayoutBranchLocalService.dynamicQuery(dynamicQuery,
235                            start, end, orderByComparator);
236            }
237    
238            /**
239            * Returns a range of all the recent layout 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.RecentLayoutBranchModelImpl}. 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 branchs
246            * @param end the upper bound of the range of recent layout branchs (not inclusive)
247            * @return the range of recent layout branchs
248            */
249            @Override
250            public java.util.List<com.liferay.portal.kernel.model.RecentLayoutBranch> getRecentLayoutBranchs(
251                    int start, int end) {
252                    return _recentLayoutBranchLocalService.getRecentLayoutBranchs(start, end);
253            }
254    
255            /**
256            * Returns the number of rows matching the dynamic query.
257            *
258            * @param dynamicQuery the dynamic query
259            * @return the number of rows matching the dynamic query
260            */
261            @Override
262            public long dynamicQueryCount(
263                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
264                    return _recentLayoutBranchLocalService.dynamicQueryCount(dynamicQuery);
265            }
266    
267            /**
268            * Returns the number of rows matching the dynamic query.
269            *
270            * @param dynamicQuery the dynamic query
271            * @param projection the projection to apply to the query
272            * @return the number of rows matching the dynamic query
273            */
274            @Override
275            public long dynamicQueryCount(
276                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
277                    com.liferay.portal.kernel.dao.orm.Projection projection) {
278                    return _recentLayoutBranchLocalService.dynamicQueryCount(dynamicQuery,
279                            projection);
280            }
281    
282            @Override
283            public void deleteRecentLayoutBranches(long layoutBranchId) {
284                    _recentLayoutBranchLocalService.deleteRecentLayoutBranches(layoutBranchId);
285            }
286    
287            @Override
288            public void deleteUserRecentLayoutBranches(long userId) {
289                    _recentLayoutBranchLocalService.deleteUserRecentLayoutBranches(userId);
290            }
291    
292            @Override
293            public RecentLayoutBranchLocalService getWrappedService() {
294                    return _recentLayoutBranchLocalService;
295            }
296    
297            @Override
298            public void setWrappedService(
299                    RecentLayoutBranchLocalService recentLayoutBranchLocalService) {
300                    _recentLayoutBranchLocalService = recentLayoutBranchLocalService;
301            }
302    
303            private RecentLayoutBranchLocalService _recentLayoutBranchLocalService;
304    }