001    /**
002     * Copyright (c) 2000-2010 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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link OrgLaborLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       OrgLaborLocalService
030     * @generated
031     */
032    public class OrgLaborLocalServiceUtil {
033            public static com.liferay.portal.model.OrgLabor addOrgLabor(
034                    com.liferay.portal.model.OrgLabor orgLabor)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addOrgLabor(orgLabor);
037            }
038    
039            public static com.liferay.portal.model.OrgLabor createOrgLabor(
040                    long orgLaborId) {
041                    return getService().createOrgLabor(orgLaborId);
042            }
043    
044            public static void deleteOrgLabor(long orgLaborId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteOrgLabor(orgLaborId);
048            }
049    
050            public static void deleteOrgLabor(
051                    com.liferay.portal.model.OrgLabor orgLabor)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteOrgLabor(orgLabor);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portal.model.OrgLabor getOrgLabor(long orgLaborId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    return getService().getOrgLabor(orgLaborId);
090            }
091    
092            public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
093                    int start, int end)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return getService().getOrgLabors(start, end);
096            }
097    
098            public static int getOrgLaborsCount()
099                    throws com.liferay.portal.kernel.exception.SystemException {
100                    return getService().getOrgLaborsCount();
101            }
102    
103            public static com.liferay.portal.model.OrgLabor updateOrgLabor(
104                    com.liferay.portal.model.OrgLabor orgLabor)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return getService().updateOrgLabor(orgLabor);
107            }
108    
109            public static com.liferay.portal.model.OrgLabor updateOrgLabor(
110                    com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
111                    throws com.liferay.portal.kernel.exception.SystemException {
112                    return getService().updateOrgLabor(orgLabor, merge);
113            }
114    
115            public static com.liferay.portal.model.OrgLabor addOrgLabor(
116                    long organizationId, int typeId, int sunOpen, int sunClose,
117                    int monOpen, int monClose, int tueOpen, int tueClose, int wedOpen,
118                    int wedClose, int thuOpen, int thuClose, int friOpen, int friClose,
119                    int satOpen, int satClose)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException {
122                    return getService()
123                                       .addOrgLabor(organizationId, typeId, sunOpen, sunClose,
124                            monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
125                            thuClose, friOpen, friClose, satOpen, satClose);
126            }
127    
128            public static java.util.List<com.liferay.portal.model.OrgLabor> getOrgLabors(
129                    long organizationId)
130                    throws com.liferay.portal.kernel.exception.SystemException {
131                    return getService().getOrgLabors(organizationId);
132            }
133    
134            public static com.liferay.portal.model.OrgLabor updateOrgLabor(
135                    long orgLaborId, int typeId, int sunOpen, int sunClose, int monOpen,
136                    int monClose, int tueOpen, int tueClose, int wedOpen, int wedClose,
137                    int thuOpen, int thuClose, int friOpen, int friClose, int satOpen,
138                    int satClose)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    return getService()
142                                       .updateOrgLabor(orgLaborId, typeId, sunOpen, sunClose,
143                            monOpen, monClose, tueOpen, tueClose, wedOpen, wedClose, thuOpen,
144                            thuClose, friOpen, friClose, satOpen, satClose);
145            }
146    
147            public static OrgLaborLocalService getService() {
148                    if (_service == null) {
149                            _service = (OrgLaborLocalService)PortalBeanLocatorUtil.locate(OrgLaborLocalService.class.getName());
150                    }
151    
152                    return _service;
153            }
154    
155            public void setService(OrgLaborLocalService service) {
156                    _service = service;
157            }
158    
159            private static OrgLaborLocalService _service;
160    }