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.OrgLabor;
21
22 import java.util.List;
23
24
37 public class OrgLaborUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static void clearCache(OrgLabor orgLabor) {
49 getPersistence().clearCache(orgLabor);
50 }
51
52
55 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56 throws SystemException {
57 return getPersistence().countWithDynamicQuery(dynamicQuery);
58 }
59
60
63 public static List<OrgLabor> findWithDynamicQuery(DynamicQuery dynamicQuery)
64 throws SystemException {
65 return getPersistence().findWithDynamicQuery(dynamicQuery);
66 }
67
68
71 public static List<OrgLabor> findWithDynamicQuery(
72 DynamicQuery dynamicQuery, int start, int end)
73 throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static OrgLabor remove(OrgLabor orgLabor) throws SystemException {
81 return getPersistence().remove(orgLabor);
82 }
83
84
87 public static OrgLabor update(OrgLabor orgLabor, boolean merge)
88 throws SystemException {
89 return getPersistence().update(orgLabor, merge);
90 }
91
92 public static void cacheResult(com.liferay.portal.model.OrgLabor orgLabor) {
93 getPersistence().cacheResult(orgLabor);
94 }
95
96 public static void cacheResult(
97 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors) {
98 getPersistence().cacheResult(orgLabors);
99 }
100
101 public static com.liferay.portal.model.OrgLabor create(long orgLaborId) {
102 return getPersistence().create(orgLaborId);
103 }
104
105 public static com.liferay.portal.model.OrgLabor remove(long orgLaborId)
106 throws com.liferay.portal.NoSuchOrgLaborException,
107 com.liferay.portal.kernel.exception.SystemException {
108 return getPersistence().remove(orgLaborId);
109 }
110
111 public static com.liferay.portal.model.OrgLabor updateImpl(
112 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getPersistence().updateImpl(orgLabor, merge);
115 }
116
117 public static com.liferay.portal.model.OrgLabor findByPrimaryKey(
118 long orgLaborId)
119 throws com.liferay.portal.NoSuchOrgLaborException,
120 com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().findByPrimaryKey(orgLaborId);
122 }
123
124 public static com.liferay.portal.model.OrgLabor fetchByPrimaryKey(
125 long orgLaborId)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getPersistence().fetchByPrimaryKey(orgLaborId);
128 }
129
130 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
131 long organizationId)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().findByOrganizationId(organizationId);
134 }
135
136 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
137 long organizationId, int start, int end)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByOrganizationId(organizationId, start, end);
140 }
141
142 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
143 long organizationId, int start, int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence()
147 .findByOrganizationId(organizationId, start, end,
148 orderByComparator);
149 }
150
151 public static com.liferay.portal.model.OrgLabor findByOrganizationId_First(
152 long organizationId,
153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154 throws com.liferay.portal.NoSuchOrgLaborException,
155 com.liferay.portal.kernel.exception.SystemException {
156 return getPersistence()
157 .findByOrganizationId_First(organizationId, orderByComparator);
158 }
159
160 public static com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
161 long organizationId,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.NoSuchOrgLaborException,
164 com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence()
166 .findByOrganizationId_Last(organizationId, orderByComparator);
167 }
168
169 public static com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
170 long orgLaborId, long organizationId,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.NoSuchOrgLaborException,
173 com.liferay.portal.kernel.exception.SystemException {
174 return getPersistence()
175 .findByOrganizationId_PrevAndNext(orgLaborId,
176 organizationId, orderByComparator);
177 }
178
179 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll()
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence().findAll();
182 }
183
184 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
185 int start, int end)
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getPersistence().findAll(start, end);
188 }
189
190 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
191 int start, int end,
192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().findAll(start, end, orderByComparator);
195 }
196
197 public static void removeByOrganizationId(long organizationId)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 getPersistence().removeByOrganizationId(organizationId);
200 }
201
202 public static void removeAll()
203 throws com.liferay.portal.kernel.exception.SystemException {
204 getPersistence().removeAll();
205 }
206
207 public static int countByOrganizationId(long organizationId)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getPersistence().countByOrganizationId(organizationId);
210 }
211
212 public static int countAll()
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence().countAll();
215 }
216
217 public static OrgLaborPersistence getPersistence() {
218 if (_persistence == null) {
219 _persistence = (OrgLaborPersistence)PortalBeanLocatorUtil.locate(OrgLaborPersistence.class.getName());
220 }
221
222 return _persistence;
223 }
224
225 public void setPersistence(OrgLaborPersistence persistence) {
226 _persistence = persistence;
227 }
228
229 private static OrgLaborPersistence _persistence;
230 }