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