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