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 void clearCache(WorkflowInstanceLink workflowInstanceLink) {
49 getPersistence().clearCache(workflowInstanceLink);
50 }
51
52
55 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56 throws SystemException {
57 return getPersistence().countWithDynamicQuery(dynamicQuery);
58 }
59
60
63 public static List<WorkflowInstanceLink> findWithDynamicQuery(
64 DynamicQuery dynamicQuery) throws SystemException {
65 return getPersistence().findWithDynamicQuery(dynamicQuery);
66 }
67
68
71 public static List<WorkflowInstanceLink> findWithDynamicQuery(
72 DynamicQuery dynamicQuery, int start, int end)
73 throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static WorkflowInstanceLink remove(
81 WorkflowInstanceLink workflowInstanceLink) throws SystemException {
82 return getPersistence().remove(workflowInstanceLink);
83 }
84
85
88 public static WorkflowInstanceLink update(
89 WorkflowInstanceLink workflowInstanceLink, boolean merge)
90 throws SystemException {
91 return getPersistence().update(workflowInstanceLink, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink) {
96 getPersistence().cacheResult(workflowInstanceLink);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portal.model.WorkflowInstanceLink> workflowInstanceLinks) {
101 getPersistence().cacheResult(workflowInstanceLinks);
102 }
103
104 public static com.liferay.portal.model.WorkflowInstanceLink create(
105 long workflowInstanceLinkId) {
106 return getPersistence().create(workflowInstanceLinkId);
107 }
108
109 public static com.liferay.portal.model.WorkflowInstanceLink remove(
110 long workflowInstanceLinkId)
111 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
112 com.liferay.portal.kernel.exception.SystemException {
113 return getPersistence().remove(workflowInstanceLinkId);
114 }
115
116 public static com.liferay.portal.model.WorkflowInstanceLink updateImpl(
117 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink,
118 boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getPersistence().updateImpl(workflowInstanceLink, merge);
121 }
122
123 public static com.liferay.portal.model.WorkflowInstanceLink findByPrimaryKey(
124 long workflowInstanceLinkId)
125 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return getPersistence().findByPrimaryKey(workflowInstanceLinkId);
128 }
129
130 public static com.liferay.portal.model.WorkflowInstanceLink fetchByPrimaryKey(
131 long workflowInstanceLinkId)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().fetchByPrimaryKey(workflowInstanceLinkId);
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 throws com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence()
140 .findByG_C_C_C(groupId, companyId, classNameId, classPK);
141 }
142
143 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findByG_C_C_C(
144 long groupId, long companyId, long classNameId, long classPK,
145 int start, int end)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence()
148 .findByG_C_C_C(groupId, companyId, classNameId, classPK,
149 start, end);
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 int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getPersistence()
158 .findByG_C_C_C(groupId, companyId, classNameId, classPK,
159 start, end, orderByComparator);
160 }
161
162 public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_First(
163 long groupId, long companyId, long classNameId, long classPK,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
166 com.liferay.portal.kernel.exception.SystemException {
167 return getPersistence()
168 .findByG_C_C_C_First(groupId, companyId, classNameId,
169 classPK, orderByComparator);
170 }
171
172 public static com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C_Last(
173 long groupId, long companyId, long classNameId, long classPK,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
176 com.liferay.portal.kernel.exception.SystemException {
177 return getPersistence()
178 .findByG_C_C_C_Last(groupId, companyId, classNameId,
179 classPK, orderByComparator);
180 }
181
182 public static com.liferay.portal.model.WorkflowInstanceLink[] findByG_C_C_C_PrevAndNext(
183 long workflowInstanceLinkId, long groupId, long companyId,
184 long classNameId, long classPK,
185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence()
189 .findByG_C_C_C_PrevAndNext(workflowInstanceLinkId, groupId,
190 companyId, classNameId, classPK, orderByComparator);
191 }
192
193 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll()
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().findAll();
196 }
197
198 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
199 int start, int end)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().findAll(start, end);
202 }
203
204 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
205 int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().findAll(start, end, orderByComparator);
209 }
210
211 public static void removeByG_C_C_C(long groupId, long companyId,
212 long classNameId, long classPK)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 getPersistence()
215 .removeByG_C_C_C(groupId, companyId, classNameId, classPK);
216 }
217
218 public static void removeAll()
219 throws com.liferay.portal.kernel.exception.SystemException {
220 getPersistence().removeAll();
221 }
222
223 public static int countByG_C_C_C(long groupId, long companyId,
224 long classNameId, long classPK)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence()
227 .countByG_C_C_C(groupId, companyId, classNameId, classPK);
228 }
229
230 public static int countAll()
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getPersistence().countAll();
233 }
234
235 public static WorkflowInstanceLinkPersistence getPersistence() {
236 if (_persistence == null) {
237 _persistence = (WorkflowInstanceLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowInstanceLinkPersistence.class.getName());
238 }
239
240 return _persistence;
241 }
242
243 public void setPersistence(WorkflowInstanceLinkPersistence persistence) {
244 _persistence = persistence;
245 }
246
247 private static WorkflowInstanceLinkPersistence _persistence;
248 }