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