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 com.liferay.portal.model.WorkflowInstanceLink findByG_C_C_C(
121 long groupId, long companyId, long classNameId, long classPK)
122 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
123 com.liferay.portal.kernel.exception.SystemException {
124 return getPersistence()
125 .findByG_C_C_C(groupId, companyId, classNameId, classPK);
126 }
127
128 public static com.liferay.portal.model.WorkflowInstanceLink fetchByG_C_C_C(
129 long groupId, long companyId, long classNameId, long classPK)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence()
132 .fetchByG_C_C_C(groupId, companyId, classNameId, classPK);
133 }
134
135 public static com.liferay.portal.model.WorkflowInstanceLink fetchByG_C_C_C(
136 long groupId, long companyId, long classNameId, long classPK,
137 boolean retrieveFromCache)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence()
140 .fetchByG_C_C_C(groupId, companyId, classNameId, classPK,
141 retrieveFromCache);
142 }
143
144 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll()
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence().findAll();
147 }
148
149 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
150 int start, int end)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence().findAll(start, end);
153 }
154
155 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> findAll(
156 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getPersistence().findAll(start, end, obc);
159 }
160
161 public static void removeByG_C_C_C(long groupId, long companyId,
162 long classNameId, long classPK)
163 throws com.liferay.portal.NoSuchWorkflowInstanceLinkException,
164 com.liferay.portal.kernel.exception.SystemException {
165 getPersistence()
166 .removeByG_C_C_C(groupId, companyId, classNameId, classPK);
167 }
168
169 public static void removeAll()
170 throws com.liferay.portal.kernel.exception.SystemException {
171 getPersistence().removeAll();
172 }
173
174 public static int countByG_C_C_C(long groupId, long companyId,
175 long classNameId, long classPK)
176 throws com.liferay.portal.kernel.exception.SystemException {
177 return getPersistence()
178 .countByG_C_C_C(groupId, companyId, classNameId, classPK);
179 }
180
181 public static int countAll()
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getPersistence().countAll();
184 }
185
186 public static WorkflowInstanceLinkPersistence getPersistence() {
187 if (_persistence == null) {
188 _persistence = (WorkflowInstanceLinkPersistence)PortalBeanLocatorUtil.locate(WorkflowInstanceLinkPersistence.class.getName());
189 }
190
191 return _persistence;
192 }
193
194 public void setPersistence(WorkflowInstanceLinkPersistence persistence) {
195 _persistence = persistence;
196 }
197
198 private static WorkflowInstanceLinkPersistence _persistence;
199 }