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 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 OrgLabor remove(OrgLabor orgLabor) throws SystemException {
65 return getPersistence().remove(orgLabor);
66 }
67
68
71 public static OrgLabor update(OrgLabor orgLabor, boolean merge)
72 throws SystemException {
73 return getPersistence().update(orgLabor, merge);
74 }
75
76 public static void cacheResult(com.liferay.portal.model.OrgLabor orgLabor) {
77 getPersistence().cacheResult(orgLabor);
78 }
79
80 public static void cacheResult(
81 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors) {
82 getPersistence().cacheResult(orgLabors);
83 }
84
85 public static com.liferay.portal.model.OrgLabor create(long orgLaborId) {
86 return getPersistence().create(orgLaborId);
87 }
88
89 public static com.liferay.portal.model.OrgLabor remove(long orgLaborId)
90 throws com.liferay.portal.NoSuchOrgLaborException,
91 com.liferay.portal.kernel.exception.SystemException {
92 return getPersistence().remove(orgLaborId);
93 }
94
95 public static com.liferay.portal.model.OrgLabor updateImpl(
96 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
97 throws com.liferay.portal.kernel.exception.SystemException {
98 return getPersistence().updateImpl(orgLabor, merge);
99 }
100
101 public static com.liferay.portal.model.OrgLabor findByPrimaryKey(
102 long orgLaborId)
103 throws com.liferay.portal.NoSuchOrgLaborException,
104 com.liferay.portal.kernel.exception.SystemException {
105 return getPersistence().findByPrimaryKey(orgLaborId);
106 }
107
108 public static com.liferay.portal.model.OrgLabor fetchByPrimaryKey(
109 long orgLaborId)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getPersistence().fetchByPrimaryKey(orgLaborId);
112 }
113
114 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
115 long organizationId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().findByOrganizationId(organizationId);
118 }
119
120 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
121 long organizationId, int start, int end)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByOrganizationId(organizationId, start, end);
124 }
125
126 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
127 long organizationId, int start, int end,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getPersistence()
131 .findByOrganizationId(organizationId, start, end, obc);
132 }
133
134 public static com.liferay.portal.model.OrgLabor findByOrganizationId_First(
135 long organizationId,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.NoSuchOrgLaborException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByOrganizationId_First(organizationId, obc);
140 }
141
142 public static com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
143 long organizationId,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.NoSuchOrgLaborException,
146 com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().findByOrganizationId_Last(organizationId, obc);
148 }
149
150 public static com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
151 long orgLaborId, long organizationId,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.NoSuchOrgLaborException,
154 com.liferay.portal.kernel.exception.SystemException {
155 return getPersistence()
156 .findByOrganizationId_PrevAndNext(orgLaborId,
157 organizationId, obc);
158 }
159
160 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll()
161 throws com.liferay.portal.kernel.exception.SystemException {
162 return getPersistence().findAll();
163 }
164
165 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
166 int start, int end)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence().findAll(start, end);
169 }
170
171 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
172 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getPersistence().findAll(start, end, obc);
175 }
176
177 public static void removeByOrganizationId(long organizationId)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 getPersistence().removeByOrganizationId(organizationId);
180 }
181
182 public static void removeAll()
183 throws com.liferay.portal.kernel.exception.SystemException {
184 getPersistence().removeAll();
185 }
186
187 public static int countByOrganizationId(long organizationId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().countByOrganizationId(organizationId);
190 }
191
192 public static int countAll()
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().countAll();
195 }
196
197 public static OrgLaborPersistence getPersistence() {
198 if (_persistence == null) {
199 _persistence = (OrgLaborPersistence)PortalBeanLocatorUtil.locate(OrgLaborPersistence.class.getName());
200 }
201
202 return _persistence;
203 }
204
205 public void setPersistence(OrgLaborPersistence persistence) {
206 _persistence = persistence;
207 }
208
209 private static OrgLaborPersistence _persistence;
210 }