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