1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20 import com.liferay.portal.model.WorkflowInstanceLink;
21
22 import java.util.List;
23
24
37 public class WorkflowInstanceLinkUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49 throws SystemException {
50 return getPersistence().findWithDynamicQuery(dynamicQuery);
51 }
52
53
56 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57 int start, int end) throws SystemException {
58 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59 }
60
61
64 public static WorkflowInstanceLink remove(
65 WorkflowInstanceLink workflowInstanceLink) throws SystemException {
66 return getPersistence().remove(workflowInstanceLink);
67 }
68
69
72 public static WorkflowInstanceLink update(
73 WorkflowInstanceLink workflowInstanceLink, boolean merge)
74 throws SystemException {
75 return getPersistence().update(workflowInstanceLink, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink) {
80 getPersistence().cacheResult(workflowInstanceLink);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portal.model.WorkflowInstanceLink> workflowInstanceLinks) {
85 getPersistence().cacheResult(workflowInstanceLinks);
86 }
87
88 public static com.liferay.portal.model.WorkflowInstanceLink create(
89 long workflowInstanceLinkId) {
90 return getPersistence().create(workflowInstanceLinkId);
91 }
92
93 public static com.liferay.portal.model.WorkflowInstanceLink remove(
94 long workflowInstanceLinkId)
95 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getPersistence().remove(workflowInstanceLinkId);
98 }
99
100 public static com.liferay.portal.model.WorkflowInstanceLink updateImpl(
101 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(workflowInstanceLink, merge);
105 }
106
107 public static com.liferay.portal.model.WorkflowInstanceLink findByPrimaryKey(
108 long workflowInstanceLinkId)
109 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
110 com.liferay.portal.kernel.exception.SystemException {
111 return getPersistence().findByPrimaryKey(workflowInstanceLinkId);
112 }
113
114 public static com.liferay.portal.model.WorkflowInstanceLink fetchByPrimaryKey(
115 long workflowInstanceLinkId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(workflowInstanceLinkId);
118 }
119
120 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
121 long groupId, long companyId, long classNameId, long classPK)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence()
124 .findByG_C_C_C(groupId, companyId, classNameId, classPK);
125 }
126
127 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
128 long groupId, long companyId, long classNameId, long classPK,
129 int start, int end)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence()
132 .findByG_C_C_C(groupId, companyId, classNameId, classPK,
133 start, end);
134 }
135
136 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
137 long groupId, long companyId, long classNameId, long classPK,
138 int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140 throws com.liferay.portal.kernel.exception.SystemException {
141 return getPersistence()
142 .findByG_C_C_C(groupId, companyId, classNameId, classPK,
143 start, end, orderByComparator);
144 }
145
146 public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_First(
147 long groupId, long companyId, long classNameId, long classPK,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
150 com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence()
152 .findByG_C_C_C_First(groupId, companyId, classNameId,
153 classPK, orderByComparator);
154 }
155
156 public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_Last(
157 long groupId, long companyId, long classNameId, long classPK,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
160 com.liferay.portal.kernel.exception.SystemException {
161 return getPersistence()
162 .findByG_C_C_C_Last(groupId, companyId, classNameId,
163 classPK, orderByComparator);
164 }
165
166 public static com.liferay.portal.model.WorkflowInstanceLink[] findByG_C_C_C_PrevAndNext(
167 long workflowInstanceLinkId, long groupId, long companyId,
168 long classNameId, long classPK,
169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
171 com.liferay.portal.kernel.exception.SystemException {
172 return getPersistence()
173 .findByG_C_C_C_PrevAndNext(workflowInstanceLinkId, groupId,
174 companyId, classNameId, classPK, orderByComparator);
175 }
176
177 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll()
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence().findAll();
180 }
181
182 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
183 int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().findAll(start, end);
186 }
187
188 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
189 int start, int end,
190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191 throws com.liferay.portal.kernel.exception.SystemException {
192 return getPersistence().findAll(start, end, orderByComparator);
193 }
194
195 public static void removeByG_C_C_C(long groupId, long companyId,
196 long classNameId, long classPK)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 getPersistence()
199 .removeByG_C_C_C(groupId, companyId, classNameId, classPK);
200 }
201
202 public static void removeAll()
203 throws com.liferay.portal.kernel.exception.SystemException {
204 getPersistence().removeAll();
205 }
206
207 public static int countByG_C_C_C(long groupId, long companyId,
208 long classNameId, long classPK)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence()
211 .countByG_C_C_C(groupId, companyId, classNameId, classPK);
212 }
213
214 public static int countAll()
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence().countAll();
217 }
218
219 public static WorkflowInstanceLinkPersistence getPersistence() {
220 if (_persistence == null) {
221 _persistence = (WorkflowInstanceLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowInstanceLinkPersistence.class.getName());
222 }
223
224 return _persistence;
225 }
226
227 public void setPersistence(WorkflowInstanceLinkPersistence persistence) {
228 _persistence = persistence;
229 }
230
231 private static WorkflowInstanceLinkPersistence _persistence;
232 }