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.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.model.WorkflowInstanceLink;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import java.util.List;
025    
026    /**
027     * @author    Brian Wing Shun Chan
028     * @see       WorkflowInstanceLinkPersistence
029     * @see       WorkflowInstanceLinkPersistenceImpl
030     * @generated
031     */
032    public class WorkflowInstanceLinkUtil {
033            /**
034             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
035             */
036            public static void clearCache() {
037                    getPersistence().clearCache();
038            }
039    
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
042             */
043            public static void clearCache(WorkflowInstanceLink workflowInstanceLink) {
044                    getPersistence().clearCache(workflowInstanceLink);
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
049             */
050            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051                    throws SystemException {
052                    return getPersistence().countWithDynamicQuery(dynamicQuery);
053            }
054    
055            /**
056             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
057             */
058            public static List<WorkflowInstanceLink> findWithDynamicQuery(
059                    DynamicQuery dynamicQuery) throws SystemException {
060                    return getPersistence().findWithDynamicQuery(dynamicQuery);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
065             */
066            public static List<WorkflowInstanceLink> findWithDynamicQuery(
067                    DynamicQuery dynamicQuery, int start, int end)
068                    throws SystemException {
069                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
074             */
075            public static List<WorkflowInstanceLink> findWithDynamicQuery(
076                    DynamicQuery dynamicQuery, int start, int end,
077                    OrderByComparator orderByComparator) throws SystemException {
078                    return getPersistence()
079                                       .findWithDynamicQuery(dynamicQuery, start, end,
080                            orderByComparator);
081            }
082    
083            /**
084             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
085             */
086            public static WorkflowInstanceLink remove(
087                    WorkflowInstanceLink workflowInstanceLink) throws SystemException {
088                    return getPersistence().remove(workflowInstanceLink);
089            }
090    
091            /**
092             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
093             */
094            public static WorkflowInstanceLink update(
095                    WorkflowInstanceLink workflowInstanceLink, boolean merge)
096                    throws SystemException {
097                    return getPersistence().update(workflowInstanceLink, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static WorkflowInstanceLink update(
104                    WorkflowInstanceLink workflowInstanceLink, boolean merge,
105                    ServiceContext serviceContext) throws SystemException {
106                    return getPersistence()
107                                       .update(workflowInstanceLink, merge, serviceContext);
108            }
109    
110            public static void cacheResult(
111                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink) {
112                    getPersistence().cacheResult(workflowInstanceLink);
113            }
114    
115            public static void cacheResult(
116                    java.util.List<com.liferay.portal.model.WorkflowInstanceLink> workflowInstanceLinks) {
117                    getPersistence().cacheResult(workflowInstanceLinks);
118            }
119    
120            public static com.liferay.portal.model.WorkflowInstanceLink create(
121                    long workflowInstanceLinkId) {
122                    return getPersistence().create(workflowInstanceLinkId);
123            }
124    
125            public static com.liferay.portal.model.WorkflowInstanceLink remove(
126                    long workflowInstanceLinkId)
127                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    return getPersistence().remove(workflowInstanceLinkId);
130            }
131    
132            public static com.liferay.portal.model.WorkflowInstanceLink updateImpl(
133                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink,
134                    boolean merge)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return getPersistence().updateImpl(workflowInstanceLink, merge);
137            }
138    
139            public static com.liferay.portal.model.WorkflowInstanceLink findByPrimaryKey(
140                    long workflowInstanceLinkId)
141                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    return getPersistence().findByPrimaryKey(workflowInstanceLinkId);
144            }
145    
146            public static com.liferay.portal.model.WorkflowInstanceLink fetchByPrimaryKey(
147                    long workflowInstanceLinkId)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return getPersistence().fetchByPrimaryKey(workflowInstanceLinkId);
150            }
151    
152            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
153                    long groupId, long companyId, long classNameId, long classPK)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return getPersistence()
156                                       .findByG_C_C_C(groupId, companyId, classNameId, classPK);
157            }
158    
159            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
160                    long groupId, long companyId, long classNameId, long classPK,
161                    int start, int end)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence()
164                                       .findByG_C_C_C(groupId, companyId, classNameId, classPK,
165                            start, end);
166            }
167    
168            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
169                    long groupId, long companyId, long classNameId, long classPK,
170                    int start, int end,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException {
173                    return getPersistence()
174                                       .findByG_C_C_C(groupId, companyId, classNameId, classPK,
175                            start, end, orderByComparator);
176            }
177    
178            public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_First(
179                    long groupId, long companyId, long classNameId, long classPK,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    return getPersistence()
184                                       .findByG_C_C_C_First(groupId, companyId, classNameId,
185                            classPK, orderByComparator);
186            }
187    
188            public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_Last(
189                    long groupId, long companyId, long classNameId, long classPK,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
192                            com.liferay.portal.kernel.exception.SystemException {
193                    return getPersistence()
194                                       .findByG_C_C_C_Last(groupId, companyId, classNameId,
195                            classPK, orderByComparator);
196            }
197    
198            public static com.liferay.portal.model.WorkflowInstanceLink[] findByG_C_C_C_PrevAndNext(
199                    long workflowInstanceLinkId, long groupId, long companyId,
200                    long classNameId, long classPK,
201                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202                    throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence()
205                                       .findByG_C_C_C_PrevAndNext(workflowInstanceLinkId, groupId,
206                            companyId, classNameId, classPK, orderByComparator);
207            }
208    
209            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getPersistence().findAll();
212            }
213    
214            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
215                    int start, int end)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return getPersistence().findAll(start, end);
218            }
219    
220            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
221                    int start, int end,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getPersistence().findAll(start, end, orderByComparator);
225            }
226    
227            public static void removeByG_C_C_C(long groupId, long companyId,
228                    long classNameId, long classPK)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    getPersistence()
231                            .removeByG_C_C_C(groupId, companyId, classNameId, classPK);
232            }
233    
234            public static void removeAll()
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    getPersistence().removeAll();
237            }
238    
239            public static int countByG_C_C_C(long groupId, long companyId,
240                    long classNameId, long classPK)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return getPersistence()
243                                       .countByG_C_C_C(groupId, companyId, classNameId, classPK);
244            }
245    
246            public static int countAll()
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    return getPersistence().countAll();
249            }
250    
251            public static WorkflowInstanceLinkPersistence getPersistence() {
252                    if (_persistence == null) {
253                            _persistence = (WorkflowInstanceLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowInstanceLinkPersistence.class.getName());
254                    }
255    
256                    return _persistence;
257            }
258    
259            public void setPersistence(WorkflowInstanceLinkPersistence persistence) {
260                    _persistence = persistence;
261            }
262    
263            private static WorkflowInstanceLinkPersistence _persistence;
264    }