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